/* --- 0. VALORES GLOBALES (Directos) --- */
/* Colores Sólidos para evitar advertencias de variables */

/* --- 1. RESET Y ESTRUCTURA GENERAL --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #718096; /* Gris Suave */
    background: #ffffff; /* Blanco */
    position: relative;
    overflow-x: hidden;
}

/* 🚀 PATRÓN DE FONDO CON MOVIMIENTO SUAVE (Técnologico) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Degradados sutiles de color (ruido) */
        radial-gradient(circle at 20% 20%, rgba(0, 107, 143, 0.04) 0%, transparent 50%), /* Teal */
        radial-gradient(circle at 80% 80%, rgba(247, 154, 31, 0.03) 0%, transparent 50%), /* Naranja */
        /* Patrón de líneas diagonales repetitivas y transparentes */
        repeating-linear-gradient(
            45deg, 
            rgba(0, 107, 143, 0.02), 
            rgba(0, 107, 143, 0.02) 20px, 
            transparent 20px, 
            transparent 40px
        );
    background-size: 100% 100%, 100% 100%, 300px 300px;
    animation: backgroundShift 120s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes backgroundShift {
    from { background-position: 0 0, 0 0, 0 0; }
    /* Desplaza el patrón 2000px muy lentamente */
    to { background-position: 2000px 2000px, 0 0, 0 0; }
}

/* ⚙️ ELEMENTOS FLOTANTES DE GEOMETRÍA (Efecto Industrial/Tecnológico) */
.page::before,
.page::after {
    content: "";
    position: fixed;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
    filter: blur(80px); /* Muy desenfocado */
    z-index: 1;
    transition: all 0.5s ease; /* Para que no salten al cargar */
}

.page::before {
    top: 5%;
    left: 5%;
    background: #f79a1f; /* Naranja */
    animation: floatElement 15s ease-in-out infinite;
}

.page::after {
    bottom: 10%;
    right: 5%;
    background: #006b8f; /* Teal */
    animation: floatElement 18s ease-in-out infinite reverse;
}

@keyframes floatElement {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.06; }
    50% { transform: translate(30px, -30px) rotate(5deg); opacity: 0.09; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.06; }
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 2rem;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px; 
}

/* --- 2. BARRA SUPERIOR ANIMADA (Efecto Kunza) --- */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        #003a4d 0%, 
        #006b8f 30%, 
        #f79a1f 50%, 
        #26a3d0 70%, 
        #003a4d 100%);
    background-size: 300% 100%;
    z-index: 101;
    box-shadow: 0 4px 20px rgba(0, 107, 143, 0.3);
    animation: topBarShift 8s ease-in-out infinite;
}

@keyframes topBarShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- 3. HEADER & NAV --- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ffffff; 
    padding: 5px;
    border: 3px solid #f79a1f; 
    box-shadow: 0 4px 12px rgba(247, 154, 31, 0.3);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(247, 154, 31, 0.5);
}

.logo-text-main {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #003a4d; 
}

.logo-text-sub {
    font-size: 0.75rem;
    color: #f79a1f; 
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

/* Navegación Desktop */
.nav-link {
    position: relative;
    padding-block: 0.5rem;
    color: #2d3748; 
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #f79a1f; 
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #006b8f; 
}

.nav-link:hover::after {
    width: 100%;
}

.btn-secondary {
    padding: 0.4rem 1.2rem;
    border: 2px solid #006b8f; 
    border-radius: 999px; 
    font-weight: 700;
    color: #006b8f !important; 
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #006b8f; 
    color: #ffffff !important; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 107, 143, 0.3);
}

/* Menú móvil toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #003a4d; 
}

/* --- 4. ANIMACIONES (Clases de utilidad) --- */

/* Estado inicial (invisible y transformado) */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Estado final (visible y sin transformación) */
.scroll-animate.visible {
    opacity: 1;
    transform: translate(0) scale(1);
    transition-delay: var(--stagger-delay, 0s); 
}

/* Transformaciones iniciales */
.fade-in { transform: none; }
.slide-left { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }
.slide-up { transform: translateY(30px); }
.scale-up { transform: scale(0.9); }

/* --- 5. HERO SECTION --- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
    min-height: 90vh;
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f79a1f; 
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #003a4d; 
    font-weight: 800;
}

.hero-title span {
    color: #006b8f; 
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #718096; 
    max-width: 35rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Botones CTA */
.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-cta {
    border-radius: 999px; 
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.btn-cta.primary {
    background: #f79a1f; 
    color: #ffffff; 
    box-shadow: 0 10px 30px rgba(247, 154, 31, 0.4);
}

.btn-cta.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(247, 154, 31, 0.6);
}

.btn-cta.secondary {
    background: #006b8f; 
    color: #ffffff; 
    border: 2px solid #003a4d; 
}

.btn-cta.secondary:hover {
    background: #003a4d; 
    transform: scale(1.02);
}

.btn-cta.whatsapp {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cta.whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.whatsapp-logo {
    width: 14px;x;
    height: 14px;x;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.btn-cta.whatsapp:hover .whatsapp-logo {
    transform: scale(2.2);
}

/* Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 107, 143, 0.2);
    margin-top: 1.5rem;
    
}

.badge,
.badge-strong {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    background: rgba(0, 107, 143, 0.08);
    border: 1px solid rgba(0, 107, 143, 0.3);
    color: #003a4d; 
}

.badge-strong {
    background: #f79a1f; 
    color: #ffffff; 
    border: 1px solid #e67e00; 
}

.hero-note {
    border-left: 4px solid #006b8f; 
    padding-left: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* Tarjeta Hero Derecha */
.hero-card {
    border-radius: 18px; 
    background: linear-gradient(145deg, #f8fbfc, #ffffff);
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8); 
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); 
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-3deg) scale(0.98); 
    transition: all 0.5s ease;
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1);
}

.hero-photo {
    height: 300px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 12px; 
    border: 3px solid #006b8f; 
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-photo::before {
    content: "📷";
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: brightness(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.hero-photo:hover img {
    transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
    filter: brightness(1.1) saturate(1.2) hue-rotate(5deg);
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.8rem 0;
    flex: 1;
    border-radius: 12px; 
    background: rgba(0, 107, 143, 0.05);
}

.stat-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #718096; 
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #006b8f; 
}

.hero-summary p {
    font-size: 0.95rem;
    color: #2d3748; 
    line-height: 1.6;
}

/* --- 6. SECCIONES GENERALES Y DIVISORES --- */

section {
    padding: 5rem 0;
    position: relative;
}

/* Separadores animados con color */
.animated-divider {
    height: 4px;
    margin: 4rem 0;
    background: linear-gradient(90deg, #e67e00, #f79a1f); 
    box-shadow: 0 0 15px rgba(247, 154, 31, 0.4);
    border-radius: 2px;
}

.animated-divider.teal-bg {
    background: linear-gradient(90deg, #003a4d, #26a3d0); 
    box-shadow: 0 0 15px rgba(0, 107, 143, 0.4);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #f79a1f; 
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #003a4d; 
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #718096; 
}

/* --- 7. SERVICIOS (Grid de tarjetas) --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    border-radius: 18px; 
    background: #fcfdfe;
    border: 1px solid rgba(0, 107, 143, 0.2);
    box-shadow: 0 8px 20px rgba(0, 107, 143, 0.1);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card::before {
    content: "🏭";
    font-size: 3rem;
    opacity: 0.2;
    background: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image-placeholder::before {
    content: "🏭";
    font-size: 3rem;
    opacity: 0.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-image-placeholder img,
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-placeholder:hover img,
.card:hover img {
    transform: translate(-50%, -50%) scale(1.15) rotate(-3deg);
    filter: brightness(1.15) saturate(1.3) hue-rotate(-8deg);
}

.card-content {
    margin-top: 220px;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: #f79a1f; 
    box-shadow: 0 15px 40px rgba(247, 154, 31, 0.2);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: #006b8f; 
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card p {
    font-size: 0.9rem;
    color: #718096; 
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.chip {
    font-size: 0.75rem;
    border-radius: 999px; 
    padding: 0.3rem 0.8rem;
    background: rgba(247, 154, 31, 0.1);
    border: 1px solid rgba(247, 154, 31, 0.3);
    color: #e67e00; 
}

/* --- 8. OBRAS CIVILES (Lista compacta) --- */

.services-list-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.service-item {
    border-radius: 12px; 
    padding: 1.5rem;
    background: rgba(0, 107, 143, 0.05);
    border: 1px solid rgba(0, 107, 143, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, #f0f7fa 0%, #d6eaf2 100%);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-item-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7fa 0%, #d6eaf2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item-image::before {
    content: "🔧";
    font-size: 2.5rem;
    opacity: 0.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item:hover .service-item-image img {
    transform: translate(-50%, -50%) scale(1.2) rotate(3deg);
    filter: brightness(1.2) saturate(1.4) hue-rotate(10deg);
}

.service-item-content {
    margin-top: 140px;
}

.service-item:hover {
    background: rgba(0, 107, 143, 0.1);
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 107, 143, 0.2);
}

.service-item h3 {
    font-size: 1rem;
    color: #003a4d; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* --- 9. MISIÓN, VISIÓN, VALORES --- */

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mission-vision-card {
    border-radius: 18px; 
    padding: 2rem;
    background: #fcfdfe;
    border: 1px solid rgba(226, 232, 240, 0.8); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    position: relative;
    overflow: hidden;
}

.mission-vision-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mission-vision-card:nth-child(1)::before { content: "🎯"; }
.mission-vision-card:nth-child(2)::before { content: "💎"; }
.mission-vision-card:nth-child(3)::before { content: "👁️"; }

.mission-vision-card::before {
    font-size: 3rem;
    opacity: 0.3;
    background: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mission-vision-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.mission-vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-vision-card:hover .mission-vision-image img {
    transform: translate(-50%, -50%) scale(1.1) rotate(-2deg);
    filter: brightness(1.1) saturate(1.2) hue-rotate(-5deg);
}

.mission-vision-content {
    margin-top: 170px;
    position: relative;
    z-index: 2;
}

.mission-vision-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.mission-vision-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #003a4d; 
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748; 
}

.values-list li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    color: #f79a1f; 
}

/* --- 10. CLIENTES --- */

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.client-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, 0.8); 
    border-radius: 12px; 
    background: #fcfdfe;
    color: #003a4d; 
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.8);
}

.client-logo:hover img {
    transform: translate(-50%, -50%) scale(1.05) rotate(1deg);
    filter: grayscale(0) brightness(1.1) saturate(1.3) hue-rotate(3deg);
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(247, 154, 31, 0.2);
    color: #f79a1f; 
}


/* --- 11. FOOTER / CONTACTO --- */

footer {
    border-top: 5px solid #006b8f; 
    background: #003a4d; 
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.contact-info h3 {
    color: #f79a1f; 
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.contact-item {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #ffffff; 
    font-weight: 600;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: #ffffff; 
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: #f79a1f; 
}

/* --- 12. RESPONSIVE Y MÓVIL --- */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2rem;
        padding-top: 8rem;
    }
    
    .hero-right {
        order: -1;
    }
    
    .services-grid,
    .services-list-compact,
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Menú móvil expandido */
    .desktop-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(226, 232, 240, 0.8); 
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 90;
    }
    
    .desktop-nav.active a {
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8); 
    }
}

@media (max-width: 640px) {
    .wrapper {
        padding-inline: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid,
    .services-list-compact,
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info, .footer-links {
        text-align: center;
        width: 100%;
    }
    
    .footer-inner {
        align-items: center;
    }
}