/* --- VARIABLES DE COLOR --- */
:root {
    --primary-dark: #0d253f; /* Azul Marino Oscuro (Seriedad) */
    --primary-blue: #0056b3; /* Azul Corporativo */
    --accent-blue: #007bff;  /* Azul Brillante (Botones) */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
    --whatsapp-green: #25d366;
}

/* --- RESET Y ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f4f7f6;
    width: 100%;
    min-height: 100%;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
} 

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- HEADER & NAV --- */
header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 900;
    height: 80px;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Icono del logo */
header .logo .logo-icon {
  font-size: 1.6rem;         /* ajusta tamaño del icono */
  color: var(--primary-blue);
  margin-right: 8px;
  line-height: 1;
}

/* Asegurar align vertical */
header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 80px;
  overflow: hidden;
}
/* Enlace del logo (navegación al inicio) */
header .logo .logo-link,
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
header .logo .logo-link:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
  border-radius: 4px;
}
/* --- Logo (imagen) — estilos separados para poder editar el logo independientemente --- */
header .logo .logo-img,
.logo-img {
  height: 80px;       /* altura base del logo en el header */
  max-height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  header .logo .logo-img,
  .logo-img {
    height: 80px;
    max-height: 80px;
  }

  header .logo {
    flex: 1;
    justify-content: center;
  }

  nav {
    justify-content: space-between;
  }

  .mobile-menu-btn {
    order: 3;
  }
}

@media (max-width: 420px) {
  header .logo .logo-img,
  .logo-img {
    height: 80px;
    max-height: 80px;
  }

  header .logo {
    flex: 1;
    justify-content: center;
  }
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Enlaces normales en el navbar */
.nav-links a:not(.nav-contact-btn) {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--primary-dark);
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:not(.nav-contact-btn):hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.nav-links a:not(.nav-contact-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-contact-btn):hover::after {
    width: 100%;
}

/* --- BOTÓN DE CONTACTO (ÓVALO) del navbar --- */
.nav-links .nav-contact-btn {
    background-color: var(--accent-blue);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 20px; /* Hace el óvalo */
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-links .nav-contact-btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-dark);
}

/* --- HERO SECTION (CON SLIDER) --- */
.hero {
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 70px;
    padding-bottom: 40px;
    overflow: hidden;
}

/* Slider Contenedor */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Cada diapositiva (Slide) */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1); /* Estado base */
    will-change: opacity, transform;

    /* TRUCO PARA EVITAR EL REBOTE:
        1. opacity 1.5s: Desvanecimiento suave.
        2. transform 5s: El zoom dura 5 segundos tanto al entrar como al salir.
            Al salir, la imagen vuelve a tamaño normal MUY lento, pero como ya
            se hizo invisible en 1.5s, no se nota el retroceso.
    */
    transition: opacity 1.5s ease-in-out, transform 5s linear;
}

.slide.active {
    opacity: 1;
    transform: scale(1.05); /* Efecto Ken Burns (Zoom suave) */
}

/* Capa oscura (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* En la edicion del color de fondo */
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(13, 37, 63, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

/* Botonera del hero */
.hero-content > div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* --- Logo dentro del hero (banner) --- */
.logo-slider {
    display: block;
    margin: 0 auto 18px; /* separa el logo del título */
    max-width: 260px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}

@media (max-width: 1024px) {
    .logo-slider {
        max-width: 220px;
        margin-bottom: 14px;
    }

    .hero {
        min-height: 90vh;
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .logo-slider {
        max-width: 160px;
        margin-bottom: 12px;
    }

    .hero {
        min-height: 95vh;
        padding-top: 70px;
        padding-bottom: 25px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-content > div {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }

    .btn-outline {
        margin-left: 10px;
    }
}

@media (max-width: 420px) {
    .logo-slider {
        max-width: 120px;
        margin-bottom: 10px;
    }

    .hero {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 20px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 18px;
        padding: 0 5px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-content > div {
        width: 100%;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.85rem;
        display: block;
        margin: 0 auto 10px;
        max-width: 200px;
    }

    .btn-outline {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--accent-blue);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-blue);
}

.btn:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

/* --- ESTADÍSTICAS --- */
.statistics {
    background-color: var(--light-gray);
    padding: 30px 0 30px;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 30px 20px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

/* --- SECCIONES COMUNES --- */
section {
    padding: 70px 0;
    scroll-margin-top: 100px; /* Evita que el header fijo cubra la parte superior al navegar por anclas */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--accent-blue);
    margin: 10px auto 0;
}

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- SERVICIOS --- */
.services {
    background-color: var(--white);
}

/* --- NUESTRA DIFERENCIACIÓN --- */
.differentiation {
    background-color: var(--white);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.diff-grid .service-card {
    padding: 30px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .diff-grid {
        gap: 18px;
    }
}

/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 45px;
}

/* Tarjeta de servicio */
.service-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: 30px;
    box-shadow: 0 40px 35px rgba(0,0,0,0.01);
    text-align: center;
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
}

/* Efecto hover en tarjeta de servicio */
.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-blue);
}

/* Icono del servicio */
.service-icon {
    font-size: 3.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 5px;
    font-size: 1.35rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- QUIÉNES SOMOS --- */
.about {
    background-color: var(--light-gray);
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: nowrap;
    flex-direction: row;
}

.about-img-wrapper {
    order: 0;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-header {
    text-align: center;
    margin-bottom: 20px;
}

.about-header h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.about-header h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--accent-blue);
    margin: 10px auto 0;
}

.about-img-wrapper {
    flex: 0 0 800px;
    max-width: 550px;
    min-width: 200px;
    align-self: flex-start;
    height: 400px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background-color: #f0f0f0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.about-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.6s ease;
    display: block;
}

.about-img-wrapper img.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.about-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--primary-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.about-nav:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.about-nav.prev-btn {
    left: 5px;
}

.about-nav.next-btn {
    right: 5px;
}

.about-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.about-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-dot.active {
    background-color: var(--accent-blue);
}

/* Ajustes intermedios para pantallas medianas */
@media (max-width: 1024px) {
    .about-img-wrapper {
        flex: 0 0 400px;
        max-width: 400px;
    }
}

/* En móvil, que la imagen ocupe todo el ancho (apilado) */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .about-img-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        height: 280px;
        min-height: 280px;
        margin: 0 auto;
    }

    /* Forzar visibilidad correcta en móvil */
    .about-img-wrapper img {
        opacity: 0 !important;
        z-index: 0 !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .about-img-wrapper img.active {
        opacity: 1 !important;
        z-index: 2 !important;
    }
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: var(--primary-dark);
    font-weight: 600;
}

.check-list i {
    color: var(--accent-blue);
    margin-right: 10px;
}

/* --- Acordeón (Quiénes Somos) — Tickets apilados y animación mejorada --- */
.accordion {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr; /* Apilado: uno debajo del otro */
    gap: 12px;
}


.accordion-button.ticket {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,86,179,0.12);
    transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s ease;
    text-align: left;
}

.accordion-button.ticket:hover {
    /* No vertical movement on hover to avoid cursor-induced issues */
    box-shadow: 0 18px 45px rgba(0,86,179,0.18);
}

.ticket-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-icon {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.95);
}

.accordion-icon {
    /* No animation for now to avoid buggy behavior */
    transition: none;
    color: rgba(255,255,255,0.95);
}

/* Panel display without transitions (instant open/close) */
.accordion-panel {
    display: none; /* hidden by default */
    padding: 0 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-top: 8px;
}

/* Use class .open to show the panel instantly */
.accordion-item.open .accordion-panel {
    display: block;
    padding: 14px 16px;
}

.accordion-panel p {
    text-align: justify;
    line-height: 1.6;
}

/* Responsivo: mantiene apilado en móvil, menos gap */
@media (max-width: 768px) {
    .accordion {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .accordion-button.ticket {
        padding: 14px;
    }
}
/* --- PROYECTOS (ESTILO ALTERNADO) --- */
.projects {
    background-color: var(--light-gray);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.project-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.project-section-title-right {
    text-align: right;
}

.project-section-title-right::after {
    left: auto;
    right: 0;
}

.project-card-alt {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    border: none;
}

.project-card-alt.project-card-reverse {
    flex-direction: row-reverse;
}

.project-img-wrapper {
    height: 350px;
    width: 100%;
    overflow: hidden;
    position: relative;
    flex: 1;
    min-width: 280px;
    border-radius: 20px;
    background-color: #f0f0f0;
}

/* Todas las imágenes */
.project-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.6s ease;
    display: block;
}

/* Imagen activa visible */
.project-img-wrapper img.active {
    opacity: 1 !important;
    z-index: 2 !important;
}

.project-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex: 1;
    min-width: 0;
}

.project-category {
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.project-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.project-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* --- CONTROLES DE NAVEGACIÓN DE PROYECTOS --- */
.project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--primary-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-nav:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.project-nav.prev-btn {
    left: 5px;
}

.project-nav.next-btn {
    right: 5px;
}

/* Puntos indicadores (dots) */
.project-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.project-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-dot.active {
    background-color: rgb(59, 130, 238);
    width: 12px;
    height: 12px;
}

.project-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/*.project-link {
    margin-top: auto;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


.project-link:hover {
    color: var(--accent-blue);
}
*/


/* --- CONTACTO --- */
.contact {
    background-color: var(--primary-dark);
    color: var(--white);
    position: relative;
    padding: 80px 0;
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .section-header p {
    color: #ccc;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
}

.info-box i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-right: 20px;
    margin-top: 0px;
}

.info-box h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.info-box p {
    color: #ccc;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-family: inherit;
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    background-color: var(--white);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 7px;
    font-weight:  700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-blue);
}

/* --- FOOTER --- */
footer {
    background-color: #081b2e;
    color: #8892b0;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
}

/* Sección de marca (Logo y eslogan) */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer .footer-logo {
    display: block;
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-eslogan {
    color: #a0a8b8;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 200px;
}

/* Sección de menú */
.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #a0a8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--accent-blue);
}

/* Sección de contacto */
.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.contact-item i {
    color: var(--accent-blue);
    margin-top: 3px;
    min-width: 20px;
}

.contact-item p {
    margin: 0;
    color: #a0a8b8;
    font-size: 0.9rem;
}

.contact-item p strong {
    color: var(--white);
}

/* Sección de redes sociales */
.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Línea divisoria */
.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

/* Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: #6b7280;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        order: -1;
    }

    .footer-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-menu li {
        margin-bottom: 0;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        gap: 20px;
    }

    footer {
        padding: 40px 0 20px;
    }
}

/* Ajuste en móvil */
@media (max-width: 600px) {
  footer .footer-logo {
    height: 100px;
    max-height: 100px;
  }
}

/* --- MEDIA QUERIES (Móvil) --- */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        left: 0;
    }

    /* Ajuste botón contacto en móvil */
    .nav-links .nav-contact-btn {
        margin-top: 20px;
        width: 80%;
        text-align: center;
    }

    .hero {
        padding-top: 80px;
        min-height: 100vh;
        height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 30px;
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }

    /* --- PROYECTOS RESPONSIVE --- */
    .project-card-alt {
        flex-direction: column;
        gap: 30px;
    }

    .project-card-alt.project-card-reverse {
        flex-direction: column;
    }

    .project-img-wrapper {
        height: 280px !important;
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
        order: 2;
    }

    .project-content {
        order: 1;
    }

    .project-img-wrapper img {
        opacity: 0 !important;
        z-index: 0 !important;
    }

    .project-img-wrapper img.active {
        opacity: 1 !important;
        z-index: 2 !important;
    }

    .project-content {
        width: 100%;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-desc {
        font-size: 0.95rem;
    }
    
    .project-section {
        gap: 20px !important;
    }

    .project-section-title {
        text-align: left !important;
        font-size: 1.8rem;
        order: -1;
        margin-bottom: 0 !important;
    }

    .project-section-title-right {
        text-align: left !important;
    }

    .project-section-title::after,
    .project-section-title-right::after {
        left: 0 !important;
        right: auto !important;
    }
}