/* =========================================
   VARIABLES Y ESTILOS GLOBALES
   ========================================= */
:root {
    --blue-dark: #003366;
    --blue-accent: #00509e;
    --white: #ffffff;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --transition: all 0.4s ease;
    --header-height: 80px;
    --anim-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, .navbar a {
    font-family: 'Outfit', sans-serif;
}

/* Estilos para enlaces dentro de párrafos */
.text-link {
    color: var(--blue-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--blue-accent);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.text-link:hover {
    color: var(--blue-dark);
    border-color: var(--blue-dark);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 70px 0;
    scroll-margin-top: var(--header-height);
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    color: var(--blue-dark);
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--blue-accent);
}

.box-shadow {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Animaciones de Aparición */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--anim-timing), transform 1.2s var(--anim-timing);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1.2s var(--anim-timing), transform 1.2s var(--anim-timing);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s var(--anim-timing), transform 1.2s var(--anim-timing);
}

.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* =========================================
   HEADER Y NAVEGACIÓN (PC)
   ========================================= */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 51, 102, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 50px;
    border-radius: 4px;
}

/* Menú oculto por defecto en PC */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--blue-dark);
    cursor: pointer;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.navbar a:hover {
    color: var(--blue-accent);
    transform: translateY(-2px);
}

/* =========================================
   SLIDER HERO
   ========================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    background: var(--blue-dark);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 60px;
    left: 50px;
    background: rgba(0, 51, 102, 0.85);
    color: var(--white);
    padding: 20px 30px;
    border-left: 6px solid var(--white);
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 51, 102, 0.6);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: 0.3s;
}

.prev:hover,
.next:hover {
    background: var(--blue-dark);
}

.next {
    right: 0;
}

.prev {
    left: 0;
}

/* =========================================
   SECCIÓN: NOSOTROS
   ========================================= */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--blue-accent);
}

.stat-item .stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blue-dark);
    margin-bottom: 0;
}

.stat-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.who-we-are h3,
.values-box h3 {
    color: var(--blue-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.who-we-are h3 i,
.values-box h3 i {
    color: var(--blue-accent);
}

.who-we-are p {
    margin-bottom: 15px;
    text-align: justify;
}

.who-we-are hr {
    border: none;
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.mission-vision-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--blue-accent);
}

.mission-vision-item:last-child {
    margin-bottom: 0;
}

.mission-vision-item .mv-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-vision-item h4 i {
    color: var(--blue-accent);
}

.mission-vision-item p {
    text-align: justify;
}

/* =========================================
   SECCIÓN: SERVICIOS CON IMÁGENES
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-img-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 320px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-img-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
}

.service-img-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 51, 102, 0.85);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    opacity: 0;
    /* Oculto por defecto en PC */
    transition: var(--transition);
}

.service-img-content i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-img-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.service-img-content p {
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-img-card:hover .service-img-content {
    opacity: 1;
}

.service-img-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.certifications {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--blue-dark);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    font-weight: bold;
}

/* =========================================
   SECCIÓN: EXPERIENCIA / PROYECTOS
   ========================================= */
.exp-category {
    margin-bottom: 50px;
}

.category-title {
    color: var(--blue-accent);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.85);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.overlay-text {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.overlay-text .project-title-card {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.saber-mas-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.saber-mas-btn:hover {
    background-color: var(--white);
    color: var(--blue-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .overlay-text {
    transform: translateY(0);
}

/* =========================================
   FOOTER
   ========================================= */
.footer-separator {
    border: none;
    height: 4px;
    background-color: var(--blue-dark);
    margin: 0;
}

.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-company-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    margin-top: 15px;
    line-height: 1.4;
}

.logo-img-footer {
    height: auto;
    max-width: 200px;
    border-radius: 4px;
    background: white;
    padding: 5px;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--blue-accent);
    display: inline-block;
    padding-bottom: 5px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: #cccccc;
    text-decoration: underline;
}

.footer i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--white);
    font-size: 1.2rem;
}

/* Social icons footer */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-icons a i {
    margin: 0; /* Reset margin for centering */
    width: auto;
}

.social-icons a:hover {
    background: var(--blue-accent);
    transform: translateY(-3px);
}



/* =========================================
   DISEÑO RESPONSIVE (SOLO PARA CELULARES)
   ========================================= */
@media (max-width: 900px) {

    /* Ajustes generales y de contenedor */
    :root {
        --header-height: 70px;
    }
    
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 40px;
    }

    /* Header y Menú Hamburguesa */
    .header-flex {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
        padding: 20px 0;
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Slider y controles */
    .hero-slider {
        height: 400px;
    }

    .slide-caption {
        bottom: 20px;
        left: 10px;
        right: 10px;
        padding: 15px;
        border-left: 4px solid var(--white);
    }

    .slide-caption h1,
    .slide-caption h2 {
        font-size: 1.3rem;
    }

    .prev, .next {
        padding: 10px 15px;
        font-size: 18px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Grids a una sola columna */
    .stats-row {
        flex-direction: column;
        gap: 15px;
    }

    .about-grid, 
    .services-grid, 
    .project-grid {
        grid-template-columns: 1fr;
    }

    /* Altura de tarjetas adaptada */
    .service-img-card, 
    .project-card {
        height: 280px;
    }

    /* Certificaciones en columna */
    .certifications {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    /* Muestra el texto siempre en servicios (sin hover) */
    .service-img-content {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.4) 100%);
    }

    .overlay {
        opacity: 1;
        background: rgba(0, 51, 102, 0.75);
    }

    .overlay-text {
        transform: translateY(0);
    }

    /* Optimización de botones para touch */
    .saber-mas-btn {
        padding: 10px 20px;
        font-size: 1rem;
        display: inline-block;
        width: auto;
    }

    /* Footer a una sola columna y centrado */
    .footer {
        padding: 40px 0;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer h4 {
        margin: 0 auto 15px auto;
    }

    .logo-img-footer {
        max-width: 150px;
        margin: 0 auto 10px auto;
    }
}

/* =========================================
   SECCIÓN: PREGUNTAS FRECUENTES (FAQ)
   ========================================= */
.faq-section {
    background-color: var(--white);
    padding: 70px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #edf2f7;
    padding: 15px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--blue-dark);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--blue-accent);
}

.faq-question i {
    font-size: 1rem;
    color: var(--blue-accent);
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 10px;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: justify;
}

/* =========================================
   COMPARTIR REDES (PROYECTO)
   ========================================= */
.share-box {
    margin-top: 15px;
}

.share-box h4 {
    font-size: 1.1rem;
    color: var(--blue-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-buttons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.share-buttons a.facebook { background-color: #1877f2; }
.share-buttons a.linkedin { background-color: #0077b5; }
.share-buttons a.whatsapp { background-color: #25d366; }