/* =========================================
   1. VARIABLES Y GENERALES
   ========================================= */
:root {
    --primary-color: #0f172a; 
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;  
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #f1f5f9;
}

/* --- FIX FOOTER: Aseguramos que el cuerpo ocupe toda la altura --- */
html {
    min-height: 100%; height: auto;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-dark); 
    background-color: #fff; 
    
    /* --- FIXES MÓVIL Y BORDE BLANCO --- */
    width: 100%; 
    max-width: 100vw; 
    overflow-x: hidden; /* Evita desplazamiento horizontal */
    margin: 0; /* Elimina borde blanco nativo */
    padding: 0; /* Elimina padding nativo */
    padding-top: 90px; /* Espacio para el menú fijo */
    /* Configuración Flexbox para el Footer Pegajoso */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .nav-link, .btn { font-family: 'Kanit', sans-serif; }

/* Espaciado general */
.section-padding { padding: 90px 0; }
.section-title { position: relative; margin-bottom: 60px; font-weight: 800; color: var(--primary-color); text-transform: uppercase; letter-spacing: -0.5px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.section-title::before { content: ''; display: block; width: 10px; height: 10px; background: var(--accent-color); border-radius: 50%; }

/* AJUSTE MENÚ FIJO (Responsivo) */
@media (max-width: 1199px) { 
    body { padding-top: 80px; } 
}

/* =========================================
   2. PRELOADER
   ========================================= */
.preloader { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: #ffffff; z-index: 99999999; 
    display: flex; justify-content: center; align-items: center; flex-direction: column; 
    transition: opacity 0.5s ease, visibility 0.5s ease; 
}
.spinner { 
    width: 60px; height: 60px; border: 5px solid #e2e8f0; 
    border-top: 5px solid var(--accent-color); border-radius: 50%; 
    animation: spin 0.8s linear infinite; margin: auto; 
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* =========================================
   3. NAVBAR (MENÚ)
   ========================================= */
.navbar { 
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); 
    box-shadow: 0 1px 15px rgba(0,0,0,0.05); padding: 15px 0; 
}
.nav-link { 
    color: var(--primary-color) !important; font-weight: 500; text-transform: uppercase; 
    font-size: 0.9rem; letter-spacing: 0.5px; margin: 0 5px; position: relative; 
    transition: color 0.3s, background-color 0.3s; 
}
@media (min-width: 1200px) {
    .nav-link::after { 
        content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; 
        background: var(--accent-color); transition: width 0.3s; border-radius: 2px; 
    }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
}
.btn-cotizar { 
    background: var(--accent-color); color: white !important; border: none; 
    padding: 8px 25px; border-radius: 4px; font-weight: 600; 
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); transition: all 0.3s ease; 
}
.btn-cotizar:hover { 
    background-color: #d97706 !important; transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4); 
}

/* Menú Móvil */
@media (max-width: 1199px) {

    /* 1. REDUCE EL GROSOR DE LA BARRA SUPERIOR */
    .navbar {
        padding: 8px 0 !important; /* Reduce el espacio arriba y abajo a la mitad */
    }

    /* Opcional: Si tienes un logo muy alto, esto también ayuda a que la barra se haga más delgada */
    .navbar-brand img {
        max-height: 40px !important; /* Ajusta este valor al tamaño de tu logo */
    }

    .offcanvas {
        width: 85% !important; max-width: 85% !important; height: 100dvh !important; 
        background-color: #ffffff !important; border-left: 5px solid var(--accent-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1) !important; display: flex; flex-direction: column; transition: none; 
    }
    .offcanvas.show { transition: transform 0.3s ease-in-out; }
    .offcanvas-body { background-color: #ffffff !important; padding: 20px; overflow-y: auto; flex-grow: 1; }
    .navbar-nav { width: 100%; padding-bottom: 40px; }
    .nav-item { width: 100%; border-bottom: 1px solid #f1f5f9; }
    .nav-link { display: block; padding: 15px 10px; font-size: 1.1rem; width: 100%; margin: 0; }
    .nav-link:hover { background-color: #f8fafc; color: var(--accent-color) !important; padding-left: 15px; }
    .btn-cotizar { display: block; width: 100%; margin-top: 25px; text-align: center; padding: 15px; font-size: 1.1rem; }
}

/* =========================================
   4. HEADER INTERNO
   ========================================= */
.page-header {
    background-size: cover; background-position: center; 
    padding: 130px 0 80px; color: white; text-align: center; position: relative; 
    background-color: var(--primary-color);
    /* Flex-shrink: 0 asegura que el header no se aplaste en flexbox */
    flex-shrink: 0; 
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)); z-index: 0;
}
.page-header .container { position: relative; z-index: 1; }
.page-header::after { 
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; background: var(--accent-color); z-index: 2;
}

/* FIX TEXTO MÓVIL: Esto arregla que el texto se corte */
@media (max-width: 768px) {
    .page-header h1 { font-size: 2.2rem; word-wrap: break-word; }
    .page-header { padding: 80px 0 60px; }
}

/* Clases específicas para fondos */
.header-blog { background-image: url('../upload/portada/slider1.jpg'); }
.header-proyecto { background-image: url('../upload/portada/slider2.jpg'); }
.header-galeria { background-image: url('../upload/portada/slider1.jpg'); }
.header-contacto { background-image: url('../upload/portada/slider1.jpg'); }
.header-nosotros { background-image: url('../upload/portada/slider1.jpg'); }
.header-clientes { background-image: url('../upload/portada/slider3.jpg'); }
.header-servicios { background-image: url('../upload/portada/slider2.jpg'); }
.header-unete { background-image: url('../upload/portada/slider3.jpg'); }

/* Breadcrumbs */
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }
.breadcrumb-custom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-custom a:hover { color: var(--accent-color); }
.breadcrumb-custom .active { color: var(--accent-color); font-weight: 600; }

/* =========================================
   5. ESTILOS DE CLIENTES
   ========================================= */
.sector-title {
    color: var(--primary-color); font-weight: 800; text-transform: uppercase; margin-bottom: 30px;
    position: relative; display: inline-block; padding-bottom: 10px;
}
.sector-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--accent-color);
}
.client-card {
    background: white; border: 1px solid #f1f5f9; border-radius: 8px;
    padding: 30px; height: 180px; display: flex; align-items: center; justify-content: center; 
    transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.client-card:hover { border-color: var(--accent-color); box-shadow: 0 10px 25px rgba(0,0,0,0.08); transform: translateY(-5px); }
.client-card img { max-width: 100%; max-height: 100%; object-fit: contain; transition: all 0.4s ease; }
.client-card:hover img { transform: scale(1.1); }

/* =========================================
   6. ESTILOS DE SERVICIOS Y TARJETAS (FIXED BUTTON LEFT)
   ========================================= */

/* 1. ESTRUCTURA BASE */
.service-card {
    position: relative;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    height: 420px;      /* Altura fija aumentada para evitar cortes */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    cursor: default;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

/* 2. IMÁGENES */
.img-container {
    width: 100%;
    height: 220px; 
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img-bg, 
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
}

.service-card:hover .card-img-bg,
.service-card:hover .img-container img { transform: scale(1.1); }

/* 3. PANELES DE CONTENIDO (FLEXBOX PARA ALINEAR BOTÓN) */

/* Panel Flotante (Servicios) */
.card-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    height: auto;
    background: #ffffff;
    padding: 20px 25px;
    z-index: 2;
    transition: transform 0.4s ease;
    transform: translateY(calc(100% - 72px)); /* Calculado para ver solo título */
    border-top: 4px solid var(--accent-color);
    
    /* Lógica Flex para el botón */
    display: flex; 
    flex-direction: column;
    max-height: 80%;
}
.service-card:hover .card-content { transform: translateY(0); }

/* Cuerpo Normal (Blog / Index) */
.service-card .card-body {
    padding: 25px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ocupa todo el espacio disponible */
    z-index: 2;
    position: relative;
}

/* 4. CONTENEDOR DE INFO OCULTA (Servicios) */
.card-hidden-info {
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Esto permite que el botón baje */
}
.service-card:hover .card-hidden-info { opacity: 1; }

/* 5. TEXTOS */
.card-title, .service-card h5 {
    color: var(--primary-color) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-shrink: 0;
}

.card-text, .service-card p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    
    /* Configuración para cortar texto en 3 líneas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;            /* <--- Agregado para quitar la advertencia */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. BOTONES FIJOS ABAJO Y A LA IZQUIERDA */
.btn-read-more, 
.btn-service-outline,
.btn-link-custom, /* Botón del Index */
.service-card a:not(.card-title) {
    margin-top: auto !important; /* MAGIA: Esto empuja el botón al fondo siempre */
    align-self: flex-start;      /* MAGIA: Esto lo pega a la IZQUIERDA siempre */
    display: inline-block;
    width: fit-content;
}

/* Estilos visuales de botones */
.service-card a { text-decoration: none; transition: 0.3s; }

.btn-read-more {
    color: var(--accent-color) !important;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}
.btn-read-more:hover { color: var(--primary-color) !important; border-bottom-color: var(--primary-color); }

.btn-service-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color) !important;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.btn-service-outline:hover { background-color: var(--accent-color); color: white !important; }

/* Enlace del Index */
.btn-link-custom {
    color: var(--accent-color) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.btn-link-custom:hover { color: var(--primary-color) !important; }

/* Tabs */
.nav-pills { gap: 10px; padding: 10px; background: #fff; border-radius: 50px; display: inline-flex; justify-content: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; }
.nav-pills .nav-link { color: var(--primary-color); background-color: transparent; border-radius: 50px; padding: 12px 30px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; transition: all 0.3s ease; margin: 0; }
.nav-pills .nav-link::after { display: none !important; }
.nav-pills .nav-link:hover { background-color: #fff7ed; color: var(--accent-color); }
.nav-pills .nav-link.active { background-color: var(--accent-color) !important; color: white !important; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); transform: scale(1.05); }
.tab-pane { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
/* =========================================
   OPTIMIZACIÓN MÓVIL (ALINEACIÓN IZQUIERDA Y ALTURA FIJA)
   ========================================= */
@media (max-width: 991px) {
    .nav-pills { flex-direction: column; width: 100%; border-radius: 15px; }
    .nav-pills .nav-link { width: 100%; text-align: center; border-radius: 10px; }

    /* 1. Tarjetas con altura FIJA en celular también */
    .service-card {
        height: 520px !important; /* Altura fija para que todos sean iguales */
        min-height: 520px !important;
        display: flex; 
        flex-direction: column;
    }

    /* 2. Imagen fija */
    .card-img-bg, 
    .img-container,
    .img-container img {
        position: relative !important;
        width: 100%; 
        height: 220px !important;
        flex-shrink: 0;
    }

    /* 3. Panel llena el resto */
    .card-content, 
    .service-card .card-body {
        position: relative !important; 
        transform: none !important;
        padding: 25px 20px;
        flex-grow: 1; /* Ocupa todo el hueco */
        border-top: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Contenido empieza arriba */
        align-items: flex-start;     /* ALINEACIÓN IZQUIERDA */
    }

    .card-hidden-info {
        opacity: 1 !important;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        align-items: flex-start;     /* ALINEACIÓN IZQUIERDA */
    }

    /* 4. Texto limitado */
    .card-text, .service-card p { 
        display: -webkit-box;
        -webkit-line-clamp: 5;
        line-clamp: 5;           /* <--- Agregado para quitar la advertencia */
        -webkit-box-orient: vertical;
        overflow: hidden; 
        margin-bottom: 15px;
        text-align: left;            /* Texto a la izquierda */
    }
    
    /* 5. BOTÓN: SIEMPRE AL FONDO Y A LA IZQUIERDA */
    .btn-service-outline, 
    .service-card a,
    .btn-read-more,
    .btn-link-custom,
    .service-card button {
        margin-top: auto !important; /* Pegado al fondo */
        align-self: flex-start !important; /* Pegado a la izquierda */
        width: auto !important;      /* Ancho automático (no estirado) */
        text-align: left;
    }
    
    .service-card:hover { transform: none !important; }
}
/* =========================================
   7. FOOTER & WHATSAPP
   ========================================= */
footer { 
    background: #0b1120; color: #cbd5e1; padding: 30px 0 20px; border-top: 4px solid var(--accent-color); font-size: 0.9rem;
    
    /* --- FIX FOOTER: Esto empuja el footer siempre al fondo --- */
    margin-top: auto; 
    flex-shrink: 0;
}

.footer-logo-img { max-width: 100%; height: auto; max-height: 70px; margin-bottom: 10px; }
.footer-ariba-img { max-width: 100%; height: auto; max-height: 50px; margin-bottom: 10px; }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { margin-bottom: 6px; display: flex; align-items: flex-start; font-size: 0.85rem; }
.footer-contact-list li i { color: var(--accent-color); margin-top: 4px; margin-right: 10px; min-width: 15px; }
.footer-social a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: white; border-radius: 4px; margin-left: 5px; text-decoration: none; transition: 0.3s; }
.footer-social a:hover { background: var(--accent-color); }
@media (max-width: 1199px) { 
    footer { text-align: center; } 
    .footer-contact-list li { justify-content: center; text-align: center; } 
    .footer-logo-img { margin: 0 auto 15px auto; display: block; } /* Centra el logo */
}

/* =========================================
   ANIMACIÓN BOTÓN WHATSAPP (FINAL)
   ========================================= */

/* 1. Animación "Latido" (Estado Normal - Lento) */
@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 2. NUEVA Animación "Vibración/Timbre" (Estado Hover - Rápido) */
@keyframes wiggle {
    0% { transform: scale(1.15) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-10deg); }
    50% { transform: scale(1.15) rotate(10deg); }
    75% { transform: scale(1.15) rotate(-10deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}

/* Estilos Base del Botón */
.whatsapp-btn { 
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 40px; 
    right: 40px; 
    background-color: #25d366; 
    color: #FFF; 
    border-radius: 50%; 
    text-align: center; 
    font-size: 35px; 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    
    /* AQUI ESTÁ LA MAGIA 1 (Latido infinito suave) */
    animation: pulse-green 2s infinite; 
    transition: all 0.3s ease; 
}

/* Estado Hover (Cuando pones el mouse encima) */
.whatsapp-btn:hover { 
    background-color: #1ebe57; /* Un verde un poco más oscuro */
    color: #fff; 
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.4);
    
    /* AQUI ESTÁ LA MAGIA 2 (Vibración rápida tipo teléfono) */
    /* Mantenemos el botón grande (scale 1.15) dentro de la animación */
    animation: wiggle 0.4s ease-in-out infinite; 
}

/* Ajuste para celulares */
@media (max-width: 768px) { 
    .whatsapp-btn { 
        width: 50px; 
        height: 50px; 
        bottom: 20px; 
        right: 20px; 
        font-size: 28px; 
    } 
}

/* =========================================
   8. ESTILOS DEL INDEX (HOME)
   ========================================= */
#heroSlider .carousel-item { height: 85vh; min-height: 500px; background-color: #000; }
#heroSlider .carousel-item img { height: 100%; width: 100%; object-fit: cover; opacity: 0.7; }
#heroSlider .carousel-caption { bottom: 35%; left: 10%; right: 10%; text-align: left; }
#heroSlider .carousel-caption h2 { font-size: 3.5rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
#heroSlider .carousel-caption p { font-size: 1.2rem; background: var(--accent-color); display: inline-block; padding: 5px 15px; font-weight: 600; letter-spacing: 2px; }
@media (max-width: 768px) { #heroSlider .carousel-item { height: 60vh; } #heroSlider .carousel-caption h2 { font-size: 2rem; } }

/* ----------------------------------------------------
   BARRA DE INFORMACIÓN (INFO BAR) - DISEÑO VERTICAL 
   ---------------------------------------------------- */
.info-bar-wrapper {
    position: relative;
    margin-top: -60px;
    z-index: 20;
    padding: 0 15px;
}

.info-bar {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Tarjeta Individual (Vertical y Centrada) */
.info-item {
    display: flex;
    flex-direction: column;    /* Ícono arriba, texto abajo */
    align-items: center;       /* Centrado horizontalmente */
    justify-content: flex-start;
    text-align: center;        /* Texto centrado */
    height: 100%;
    padding: 10px;             /* Un poco de aire interno */
}

/* Iconos */
.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 8px;       /* Espacio entre ícono y título */
}

/* Contenedor de texto interno */
.info-item div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Títulos (H6) */
.info-item h6 {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Texto de párrafo */
.info-item p {
    margin-bottom: 0;
    color: #64748b;
    font-size: 0.85rem;
}

/* Clase especial para que el email no se salga */
.email-text {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Ajuste para Móvil */
@media (max-width: 991px) {
    .info-bar-wrapper { margin-top: -30px; }
    /* Separación entre tarjetas en móvil */
    .col-6 { margin-bottom: 20px; } 
    /* Quitamos margen a los dos últimos para que no quede espacio vacío abajo */
    .col-6:nth-last-child(-n+2) { margin-bottom: 0; }
}

/* --- OTROS ESTILOS DEL HOME --- */
.blurb-item { background: white; padding: 20px; border-radius: 12px; display: flex; align-items: center; border: 1px solid #f1f5f9; transition: transform 0.3s; }
.blurb-item:hover { transform: translateY(-5px); }
.welcome-img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.news-date { top: 15px; left: 15px; background: var(--accent-color); color: white; padding: 5px 10px; font-size: 0.8rem; font-weight: 700; }
.news-title a { color: var(--primary-color); transition: 0.3s; }
.news-title a:hover { color: var(--accent-color); }

.client-logo { max-height: 70px; margin: 15px 30px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; }
.client-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.custom-carousel-btn { background: var(--primary-color); width: 40px; height: 40px; border-radius: 50%; top: 50%; transform: translateY(-50%); opacity: 1; }
.custom-carousel-btn:hover { background: var(--accent-color); }


/* =========================================
   ESTILOS DE TESTIMONIOS
   ========================================= */

/* Tarjetas de Testimonios */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), #d97706);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.author-info h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3px;
    font-size: 1rem;
}

.author-position {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 2px;
}

.author-company {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Responsive para Testimonios */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 30px 25px;
    }

    .quote-icon {
        font-size: 2rem;
        top: 15px;
        right: 20px;
    }
}
.contact-section { background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('../upload/portada/slider1.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.form-box { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }

/* =========================================
   9. ESTILOS COMUNES (BENEFICIOS)
   ========================================= */
.benefit-card {
    background: white; border: 1px solid #f1f5f9; border-radius: 12px;
    padding: 30px; transition: 0.3s; height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); text-align: center;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--accent-color); }
.benefit-icon {
    font-size: 2.5rem; color: var(--accent-color); margin-bottom: 20px;
    background: rgba(245, 158, 11, 0.1); width: 80px; height: 80px;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.benefit-title { font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }

/* =========================================
   10. ESTILOS DE ÚNETE
   ========================================= */
.cv-info-box {
    background: white; padding: 50px; border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); border-top: 5px solid var(--accent-color);
    text-align: center;
}
.mail-icon { font-size: 4rem; color: var(--accent-color); margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.email-highlight {
    background: #fff7ed; color: var(--primary-color); 
    padding: 15px 30px; border-radius: 8px; font-weight: 700; font-size: 1.2rem;
    display: inline-block; margin: 20px 0; border: 1px dashed var(--accent-color);
    word-break: break-all; /* Evita que el correo largo rompa el diseño */
}

/* =========================================
   11. ESTILOS DE NOSOTROS
   ========================================= */
.trajectory-container { background: var(--primary-color); border-radius: 40px; overflow: hidden; color: white; box-shadow: 0 25px 60px rgba(0,0,0,0.2); display: flex; align-items: stretch; }
.trajectory-content { padding: 60px; flex: 1; }
.text-invisible { font-size: 4.5rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.15); line-height: 1; display: block; margin-top: 0px; margin-bottom: 5px; text-transform: uppercase; }
.img-side-box { flex: 1; min-height: 100%; }
.img-side { object-fit: cover; width: 100%; height: 100%; min-height: 550px; display: block; }

.modern-pillar-card { background: white; border-radius: 25px; padding: 40px; box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05); border: 1px solid #f1f5f9; transition: 0.4s; height: 100%; position: relative; overflow: hidden; }
.modern-pillar-card:hover { transform: translateY(-10px); border-color: var(--accent-color); }
.pillar-icon-box { width: 65px; height: 65px; background: var(--primary-color); color: var(--accent-color); border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 25px; }

.insignia-card { background: #fff; border-radius: 22px; padding: 25px; margin-bottom: 20px; border: 1px solid #edf2f7; transition: 0.3s; display: flex; align-items: center; gap: 20px; }
.insignia-card:hover { transform: translateX(10px); border-color: var(--accent-color); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.1); }
.insignia-seal { min-width: 85px; height: 85px; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; border: 4px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.insignia-seal .value { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.insignia-seal .label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; }
.insignia-text h5 { font-weight: 800; color: var(--primary-color); margin-bottom: 3px; font-size: 1.1rem; }
.insignia-text p { font-size: 0.85rem; margin: 0; color: #64748b; line-height: 1.5; }

@media (max-width: 991px) {
    .trajectory-container { flex-direction: column; border-radius: 30px; }
    .trajectory-content { padding: 40px 30px; }
    .img-side { min-height: 350px; }
    .text-invisible { font-size: 2rem; margin-top: 0; }
}

/* =========================================
   12. ESTILOS DE CONTACTO
   ========================================= */
.contact-card {
    background: white; padding: 30px 20px; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; height: 100%;
    transition: 0.3s; border: 1px solid #f1f5f9;
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--accent-color); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.contact-icon {
    width: 70px; height: 70px; background: #fff7ed; color: var(--accent-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 20px; transition: 0.3s;
}
.contact-card:hover .contact-icon { background: var(--accent-color); color: white; }
.contact-title { font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.contact-text { color: #64748b; font-size: 0.95rem; margin-bottom: 0; line-height: 1.6; }

/* FAQ Accordion */
.accordion-button:not(.collapsed) { background-color: #fff7ed; color: var(--primary-color); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: rgba(0,0,0,.125); }
.accordion-button { font-weight: 600; color: var(--secondary-color); }
.accordion-item { border: none; border-bottom: 1px solid #e2e8f0; }

/* Formulario Contacto */
.form-control { background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px; border-radius: 6px; }
.form-control:focus { background: white; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }
.map-container { border-radius: 12px; overflow: hidden; height: 100%; min-height: 450px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* =========================================
   13. ESTILOS DE GALERÍA
   ========================================= */
.gallery-date {
    position: absolute; top: 15px; right: 15px;
    background: var(--accent-color); color: white;
    padding: 5px 12px; font-size: 0.75rem; font-weight: 600;
    border-radius: 4px; z-index: 2;
}

/* =========================================
   14. ESTILOS DE PORTAFOLIO (PROYECTOS)
   ========================================= */
.project-card {
    border: none; border-radius: 8px; overflow: hidden; background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.4s; position: relative;
    height: 100%;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 30px rgba(0,0,0,0.1); }
.project-img-wrapper { position: relative; height: 250px; overflow: hidden; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover .project-img-wrapper img { transform: scale(1.1); }
.project-overlay {
    position: absolute; inset: 0; background: rgba(15, 23, 42, 0.7); display: flex;
    align-items: center; justify-content: center; opacity: 0; transition: 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-card .card-body { padding: 25px; border-bottom: 3px solid transparent; transition: 0.3s; }
.project-card:hover .card-body { border-bottom-color: var(--accent-color); }
.project-category { color: var(--accent-color); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.project-title { font-weight: 700; color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; }
.project-desc { font-size: 0.9rem; color: #64748b; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================
   15. ESTILOS DE BLOG (NOTICIAS)
   ========================================= */
.news-date-badge {
    position: absolute; top: 20px; left: 20px;
    background: var(--accent-color); color: white;
    padding: 6px 15px; font-size: 0.8rem; font-weight: 700;
    border-radius: 50px; z-index: 2; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}
.btn-read-more {
    margin-top: 25px; color: var(--accent-color); font-weight: 700;
    text-decoration: none; text-transform: uppercase; font-size: 0.85rem;
    letter-spacing: 1px; display: inline-flex; align-items: center;
    transition: 0.3s; border-bottom: 2px solid transparent; width: fit-content;
}
.btn-read-more:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }
/* =========================================
   16. ESTILOS DE PESTAÑAS (TABS SERVICIOS) - CORREGIDO
   ========================================= */
.nav-pills {
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 50px;
    
    /* CENTRADO: Usamos flexbox para asegurar que esté al centro */
    display: inline-flex; 
    justify-content: center;
    
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.nav-pills .nav-link {
    color: var(--primary-color);
    background-color: transparent;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    /* IMPORTANTE: Esto elimina cualquier borde o posición extraña */
    margin: 0; 
}

/* --- SOLUCIÓN: QUITAR LA RAYITA NARANJA --- */
/* Esto sobreescribe el estilo del menú principal para que NO salga la línea */
.nav-pills .nav-link::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

/* Efecto Hover */
.nav-pills .nav-link:hover {
    background-color: #fff7ed;
    color: var(--accent-color);
}

/* ESTADO ACTIVO (Naranja) */
.nav-pills .nav-link.active {
    background-color: var(--accent-color) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transform: scale(1.05);
}

.tab-pane { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Móvil */
@media (max-width: 768px) {
    .nav-pills { flex-direction: column; width: 100%; border-radius: 15px; }
    .nav-pills .nav-link { width: 100%; text-align: center; border-radius: 10px; }
}

/* =========================================
   17. LÓGICA DE CARGA (PRELOADER)
   ========================================= */

/* 1. Congelar animaciones */
body.is-loading .animate__animated {
    visibility: hidden;
    animation-play-state: paused !important;
}

/* 2. Bloquear el scroll (que no puedan bajar) mientras carga */
body.is-loading {
    overflow: hidden;
}
/* =========================================
   18. ESTILOS DE GALERÍA (MODAL / LIGHTBOX /PANEL FLOTANTE ALBUM) - MEJORADO
   ========================================= */

/* 1. Personalización de la Ventana (Modal) */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 2. Encabezado Corporativo (Azul con línea Naranja) */
.modal-header {
    background-color: var(--primary-color);
    border-bottom: 4px solid var(--accent-color);
    padding: 20px 25px;
}

.modal-title {
    color: #ffffff !important;
    font-family: 'Kanit', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* =========================================
   3. BOTÓN DE CERRAR (X) – ANIMACIÓN GLOBAL
   ========================================= */

/* Animación para TODAS las X */
.btn-close {
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* X BLANCA SOLO EN MODALES (fondos oscuros) */
.modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Asegura X visible en menú móvil / navbar */
.navbar .btn-close,
.offcanvas .btn-close {
    filter: none !important;
}

/* 4. Imagen dentro del carrusel */
.carousel-album-img {
    height: 500px;
    object-fit: contain;
    background-color: #020617;
    width: 100%;
}

/* =========================================
   5. FLECHAS DE NAVEGACIÓN – SOLO >< (SIN CÍRCULO)
   ========================================= */

.modal .carousel-control-prev,
.modal .carousel-control-next {
    width: auto;
    height: auto;
    background: none !important;
    border-radius: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    margin: 0 20px;
    box-shadow: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Apagar iconos por defecto de Bootstrap SOLO en el modal */
.modal .carousel-control-prev-icon,
.modal .carousel-control-next-icon {
    background-image: none !important;
    width: 0;
    height: 0;
}

/* Flecha izquierda */
.modal .carousel-control-prev::after {
    content: "<";
    font-size: 42px;
    font-weight: 600;
    color: var(--accent-color);
    font-family: Arial, sans-serif;
}

/* Flecha derecha */
.modal .carousel-control-next::after {
    content: ">";
    font-size: 42px;
    font-weight: 600;
    color: var(--accent-color);
    font-family: Arial, sans-serif;
}

/* Hover flechas */
.modal .carousel-control-prev:hover,
.modal .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

/* 6. Indicadores (Puntitos abajo) */
.carousel-indicators [data-bs-target] {
    background-color: var(--accent-color);
    height: 4px;
}

/* =========================================
   AJUSTE PARA MÓVILES
   ========================================= */
@media (max-width: 768px) {
    .carousel-album-img {
        height: 300px;
        background-color: #000;
    }

    .carousel-control-prev,
    .carousel-control-next {
        margin: 0 5px;
    }

    .carousel-control-prev::after,
    .carousel-control-next::after {
        font-size: 30px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 0.9rem;
    }
}
/* =========================================
   19. ZOOM EN GALERÍA (INTERACTIVO)
   ========================================= */

/* Contenedor de la imagen */
.carousel-item {
    overflow: hidden; /* Evita que la imagen se salga del cuadro al hacer zoom */
}

/* Estado Normal */
.carousel-album-img {
    cursor: zoom-in; /* Cursor de Lupa (+) */
    transition: transform 0.4s ease; /* Suavidad al entrar/salir del zoom */
    transform-origin: center center;
}

/* Estado con Zoom Activado (Clase controlada por JS) */
.carousel-album-img.zoomed {
    cursor: zoom-out; /* Cursor de Lupa (-) */
    transform: scale(2.5); /* Nivel de Aumento (2.5 veces su tamaño) */
}

/* =========================================
   ESTILOS ESPECÍFICOS PARA EL MODAL DEL BLOG
   ========================================= */

/* 1. Fondo MUY oscuro para que el panel sobresalga */
.modal-backdrop.show {
    opacity: 0.92 !important; /* Casi negro */
    background-color: #0f172a;
}

/* 2. Panel del Modal */
.modal-content {
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 3. Texto Gigante y legible */
.modal-text-giant {
    font-size: 1.25rem; /* Letra grande */
    line-height: 1.8;
    color: #475569;
}

.modal-title-custom {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

/* 4. Imagen superior */
.modal-top-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* =========================================
   PARCHE FINAL: CORRECCIÓN DE COLORES DE ENLACES (ANTI-AZUL)
   Pega esto al final de tu CSS para forzar los colores de marca
   ========================================= */

/* 1. Enlaces en Noticias (Index y Blog) */
.news-title a {
    color: var(--primary-color) !important; /* Título negro/azul oscuro */
    text-decoration: none;
    transition: 0.3s;
}
.news-title a:hover {
    color: var(--accent-color) !important; /* Naranja al pasar el mouse */
}

/* 2. Enlaces "Descubrir Más" en Servicios (Index) */
.btn-link-custom {
    color: var(--accent-color) !important; /* Naranja */
    font-weight: 700 !important;
}
.btn-link-custom:hover {
    color: var(--primary-color) !important; /* Oscuro al pasar el mouse */
}

/* 3. Cualquier enlace suelto dentro de una tarjeta */
.service-card a:not(.btn) {
    color: var(--accent-color); /* Naranja por defecto */
    text-decoration: none;
}
.service-card a:not(.btn):hover {
    color: var(--primary-color);
}

/* 4. Enlaces en Galería (si los hay) */
.gallery-item a, 
.page-header a {
    text-decoration: none;
}
/* Miga de pan (Breadcrumb) en gris/blanco, no azul */
.breadcrumb-item a {
    color: rgba(255,255,255,0.7) !important;
}
.breadcrumb-item.active {
    color: var(--accent-color) !important;
}

/* =========================================
   FIX FINAL: BOTONES DE MAPA (ESTÁTICOS)
   ========================================= */

/* Estilo para los botones de mapa */
.btn-mapa {
    flex: 1;                 /* Obliga a que ambos midan 50% y 50% */
    width: 100%;             /* Asegura que llenen su hueco */
    height: 50px !important; /* Altura fija: NO SE MUEVE */
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;     /* Texto en una sola línea */
    overflow: hidden;        /* Si sobra texto, lo corta */
    text-overflow: ellipsis;
    margin-top: 0 !important; /* Evita conflictos con otras reglas */
    border: 1px solid transparent; /* Reserva espacio para el borde */
}

/* Estado inactivo (Borde gris para que ocupe lo mismo que el activo) */
.btn-mapa.btn-outline-secondary {
    border-color: #cbd5e1;
}

/* Evitar que salten al pasar el mouse */
.btn-mapa:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* MODO CELULAR: Letra pequeña y botón compacto */
@media (max-width: 576px) {
    .btn-mapa {
        font-size: 0.7rem !important; /* Letra pequeña (11px) para que entre todo */
        height: 40px !important;      /* Botón más bajito */
        padding: 0 5px !important;    /* Menos relleno */
    }
    
    /* Ajuste para la etiqueta "VER SEDE" en móvil */
    .map-label-container {
        font-size: 0.8rem;
        margin-bottom: 5px;
        text-align: center;
        display: block;
        width: 100%;
    }
}

/* =========================================
   MEJORA PARA CART DE PROYECTOS
   ========================================= */
/* 1. Fondo Oscuro Principal (Fuera del panel) */
.modal-backdrop.show {
    opacity: 0.95 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: rgba(5, 5, 5, 0.95) !important;
}
/* 2. Contenedor del Modal (El Panel Grande) */
.premium-modal .modal-content {
    background-color: #000000; /* Fondo negro puro para fundirse con las fotos */
    border: none;
    border-radius: 12px; /* Bordes un poco menos redondeados, más corporativo */
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    color: #f8fafc;
}
/* 3. Botón Cerrar (X) - BLANCO PURO Y GIRO ORIGINAL */
.premium-modal .modal-header {
    position: absolute;
    top: 0; right: 0;
    z-index: 9999;
    border: none;
    padding: 1.5rem;
    background: transparent !important;
}
        

.premium-modal .btn-close {
    background-color: transparent !important; 
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") !important;
    opacity: 1 !important; /* X blanca original pura y visible */
    transition: transform 0.4s ease, opacity 0.3s ease;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    padding: 1.2rem;
    width: 1em;
    height: 1em;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); /* Sombra para que se vea sobre fondos blancos */
}
        

.premium-modal .btn-close:focus, 
.premium-modal .btn-close:active {
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}
        

.premium-modal .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.2); /* GIRO ORIGINAL QUE TE GUSTA */
    background-color: transparent !important; 
}
/* 4. Área del Carrusel (Sin bloques azules) */
.premium-carousel {
    height: 100%;
    background-color: #000000; 
}
.premium-carousel .carousel-inner {
    height: 100%;
    display: flex;
    align-items: center; 
}
.premium-carousel .carousel-item {
    background-color: #000000;
}
.premium-carousel .carousel-item img {
    height: 75vh;
    min-height: 450px;
    object-fit: contain; 
    width: 100%;
}
/* 5. Flechas Direccionales - Pegadas a los lados y limpias */
.premium-arrow {
    width: 12%; 
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    background: transparent !important; 
    border: none;
}
.premium-carousel:hover .premium-arrow {
    opacity: 1;
}
        

.premium-arrow-left { 
    justify-content: flex-start; 
    padding-left: 2rem; 
}
.premium-arrow-right { 
    justify-content: flex-end; 
    padding-right: 2rem; 
}
.premium-arrow i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, color 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8)); 
}
        

.premium-arrow:hover i {
    transform: scale(1.3);
    color: #ffffff; 
}
/* 6. Panel de Información (Lado Derecho) - Limpio y Oscuro */
.premium-modal-info {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    background-color: #111827; 
}
.premium-client {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.premium-client i {
    margin-right: 8px;
}
.premium-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}
.premium-desc {
    font-size: 1.05rem;
    color: #9ca3af; 
    line-height: 1.7;
    font-weight: 300;
}
/* NUEVO: Botón "VER PROYECTO" compacto solo para estas tarjetas */
.project-overlay .btn-cotizar {
    background: var(--accent-color);
    color: white !important;
    border: none;
    padding: 10px 20px;   /* más compacto */
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;      /* usa px en vez de rem */
    display: inline-block; /* quita el 100% */
    width: auto;           /* que no ocupe todo */
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}
/* 7. Responsivo (Se activa temprano para soportar el Zoom 150%) */
@media (max-width: 1199px) {
    .premium-carousel .carousel-item img { height: 40vh; min-height: 300px; }
    .premium-modal-info { padding: 2.5rem 1.5rem; }
    .premium-title { font-size: 1.6rem; }
    .premium-arrow { opacity: 1; width: 15%; } 
    .premium-arrow i { font-size: 2rem; }
    .premium-arrow-left { padding-left: 1rem; }
    .premium-arrow-right { padding-right: 1rem; }
}
/* FIX: IGUALAR ALTURA DE TARJETAS (Evita que la línea naranja flote en títulos cortos) */
.project-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.project-card .card-body {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* PARA COPYRIGHT */
#dyn-copyright p {
    display: inline; /* Quita el salto de línea del <p> que viene de Cockpit */
    margin: 0;
}

#dyn-copyright {
    display: inline; /* Asegura que el contenedor también sea en línea */
}

/* botones de fotter movibles solo en zoom de 125% y 150% */
@media screen and (min-resolution: 1.51dppx) and (max-resolution: 2.00dppx) {
    
    /* REEMPLAZA ESTO POR LA CLASE EXACTA DE TU BOTÓN DE WHATSAPP */

    .footer-ariba-img {
        transform: translateX(-65px) !important; /* Si también quieres mover la imagen de izquierda */
    }
    .footer-social {
        transform: translateX(-65px) !important; /* Si quieres mover los íconos sociales hacia la derecha */
    }
    
}

#dyn-direccion p,
#dyn-telefonos p,
#dyn-correos p,
#dyn-tarjeta-ubi p,
#dyn-tarjeta-tel p,
#dyn-tarjeta-cor p {
    margin: 0 !important;
    display: inline;
}
/* =========================================
   FIX PARA CAMPOS WYSIWYG (TÍTULOS DEL SLIDER HOME)
   ========================================= */
#dyn-s1-tit p,
#dyn-s2-tit p,
#dyn-s3-tit p {
    margin: 0 !important;
    display: inline;
}

/* =========================================
   FIX DEFINITIVO: TÍTULOS WYSIWYG EN SLIDER (HOME)
   ========================================= */
#heroSlider .carousel-caption .titulo-slider {
    margin-bottom: 20px;
}

/* Forzamos que cualquier texto o etiqueta que venga de Cockpit tome el estilo del título */
#heroSlider .carousel-caption .titulo-slider,
#heroSlider .carousel-caption .titulo-slider * {
    font-family: 'Kanit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: #fff; /* Si usas colores en Cockpit, se respetarán */
}

/* Matamos el margen y el estilo de subtítulo de los párrafos Wysiwyg */
#heroSlider .carousel-caption .titulo-slider p {
    margin: 0 !important;
    padding: 0 !important; /* Quitamos el relleno extra */
    background: transparent !important; /* Quitamos el fondo naranja */
    letter-spacing: normal !important; /* Evitamos que las letras se separen demasiado */
    display: inline-block;
}

/* Ajuste original para celulares */
@media (max-width: 768px) {
    #heroSlider .carousel-caption .titulo-slider,
    #heroSlider .carousel-caption .titulo-slider * {
        font-size: 2rem !important;
    }
}

.service-card {
    /* clip evita cualquier tipo de desplazamiento interno forzado por el navegador */
    overflow: clip !important; 
}

/* =========================================
   FIX RENDIMIENTO: ACELERACIÓN DE HARDWARE EN GALERÍA (LAG EN WINDOWS)
   ========================================= */
.carousel-album-img {
    /* 1. Fuerza al navegador a usar la Tarjeta Gráfica (GPU) en 3D */
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    
    /* 2. Le avisa al navegador qué propiedades van a cambiar constantemente */
    will-change: transform, transform-origin;
    
    /* 3. Suaviza el renderizado de la imagen para que no parpadee al escalar */
    image-rendering: -webkit-optimize-contrast;
}

/* =========================================
   FIX RENDIMIENTO: ACELERACIÓN DE HARDWARE PARA TODOS LOS SLIDERS
   ========================================= */
.carousel-item {
    /* Mueve el contenedor del slide a la GPU */
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    perspective: 1000px;
    
    /* Le avisa al navegador que la opacidad y posición van a cambiar */
    will-change: transform, opacity;
}

.carousel-item img {
    /* Evita que la imagen gigante parpadee o tartamudee al moverse */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    
    /* Le da prioridad de carga visual */
    content-visibility: auto;
}