/* ------------------------------------------
   ESTILO CORPORATIVO / MINIMALISTA (TecNM)
------------------------------------------- */

/* Fuente general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* --------------- NAVBAR ----------------- */
.navbar {
    background-color: #0b3d91 !important; /* azul institucional */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-brand, .nav-link {
    color: #fff !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #c8defe !important;
}

/* --------------- HEADER ----------------- */
header.masthead {
    padding: 140px 0;
    background: linear-gradient(135deg, #0a2e6e, #0b3d91);
    color: #fff;
    background-size: cover;
    background-position: center;
}

/* Texto dentro del header */
.intro-text .intro-lead-in {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.intro-text .intro-heading {
    font-size: 48px;
    font-weight: bold;
}

/* Botón de inicio */
.btn-primary {
    background-color: #0b3d91 !important;
    border-color: #0b3d91 !important;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #134cab !important;
    transform: translateY(-2px);
}

/* --------------- SECCIONES ----------------- */
section {
    padding: 80px 0;
}

/* Título de sección */
.section-heading {
    font-size: 90px !important; /* ← Ajusta este tamaño */
    font-weight: 700 !important;
    margin-bottom: 40px !important;
    color: #0b3d91 !important;
}

/* Subtítulo de sección */
.section-subheading {
    font-size: 30px !important; /* ← Ajusta este tamaño */
    line-height: 1.4 !important;
}

/* Iconos */
.fa-stack {
    font-size: 60px;
    margin-bottom: 20px;
}

.service-heading {
    font-weight: 600;
    font-size: 20px;
}

/* Hover suave */
.service-item {
    transition: 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

/* Texto más suave */
.text-muted {
    color: #5c6c80 !important;
}

/* --------------- PORTAFOLIO ----------------- */
.portfolio-item {
    margin-bottom: 40px;
}

.portfolio-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.portfolio-link img {
    width: 90%;
    height: 900%;
    object-fit: cover;
}

.portfolio-link:hover img {
    transform: scale(1.07);
    opacity: 0.85;
}

/* Hover overlay */
.portfolio-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(11, 61, 145, 0.75);
    opacity: 0;
    transition: 0.3s;
}

.portfolio-link:hover .portfolio-hover {
    opacity: 1;
}

.portfolio-hover-content {
    color: #fff;
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Pie portfolio */
.portfolio-caption {
    text-align: center;
    padding: 15px;
}

.portfolio-caption h4 {
    font-weight: 700;
    color: #0b3d91;
}

/* --------------- FOOTER ----------------- */
footer {
    background-color: #0b3d91;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer img {
    margin: 10px;
    max-width: 120px;
}

footer a {
    color: #c8defe;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: white;
}

/* --------------- RESPONSIVIDAD ----------------- */
@media (max-width: 768px) {

    header.masthead {
        padding: 100px 0;
        text-align: center;
    }

    .intro-text .intro-heading {
        font-size: 32px;
    }

    .intro-text .intro-lead-in {
        font-size: 18px;
    }

    .section-heading {
        font-size: 50px;
    }

    .section-subheading {
        font-size: 22px;
    }
}
