/* ==========================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE (TEMA OSCURO DE LUJO)
   ========================================================== */
:root {
    --gold-primary: #d4af37;
    --gold-main: #d4af37;
    --gold-gradient: linear-gradient(135deg, #fef08a 0%, #d4af37 50%, #854d0e 100%);
    --navy-blue: #0b132b;
    --bg-card: #0d162d;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border-gold: rgba(212, 175, 55, 0.4);
    --border-dark: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #050814;
    color: var(--text-white);
    overflow-x: hidden;
}

/* ==========================================================
   BARRA SUPERIOR (TOP BAR)
   ========================================================== */
.top-bar {
    width: 100%;
    padding: 0.5rem 2rem;
    background: #070b19;
    border-bottom: 1px solid var(--border-dark);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.icon-gold {
    color: var(--gold-primary);
    width: 14px;
    height: 14px;
}

.top-social-icons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.top-social-icons a {
    color: var(--text-muted);
    font-size: 1.05rem;
    transition: var(--transition);
}

.top-social-icons a:hover {
    color: var(--gold-primary);
    transform: scale(1.1);
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
    width: 100%;
    padding: 0.8rem 3rem;
    background: rgba(5, 8, 20, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--border-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.logo-img-frame {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-main);
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070b19;
}

.logo-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text-box {
    display: flex;
    flex-direction: column;
}

.logo-title-top {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.8px;
}

.logo-title-sub {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
    margin-top: 1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212,175,55,0.4);
}

/* ==========================================================
   SECCIÓN INICIO (HERO) Y CARRUSEL DE FONDO (FADE)
   ========================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    overflow: hidden;
    /* AQUÍ FORZAMOS DIRECTAMENTE TU IMAGEN DE FONDO */
    background: linear-gradient(180deg, rgba(5,8,20,0.65) 0%, rgba(5,8,20,0.9) 100%), url('baner.png');
    background-size: cover;
    background-position: center;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5,8,20,0.65) 0%, rgba(5,8,20,0.9) 100%);
    z-index: 2;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-grid-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 3.5rem;
    align-items: center;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.badge-official {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(212,175,55,0.05));
    border: 1px solid var(--border-gold);
    color: #fef08a;
    padding: 0.45rem 1.2rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.8px;
    box-shadow: 0 0 20px rgba(212,175,55,0.15);
}

.hero-main-title {
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 0.9rem;
    font-weight: 900;
}

.title-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(212,175,55,0.4));
}

.hero-subtitle-box {
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--gold-primary);
    margin-bottom: 1.2rem;
}

.hero-subtitle-text {
    font-size: 1.15rem;
    color: #f8fafc;
    font-weight: 600;
}

.hero-dynamic-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    max-width: 720px;
}

.hero-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.98rem;
    color: #cbd5e1;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border-left: 3px solid var(--gold-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-buttons-row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-gold-pro {
    background: var(--gold-gradient);
    color: #050814;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(212,175,55,0.35);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-gold-pro:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(212,175,55,0.6);
}

.btn-wsp-pro {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.5);
    color: #25d366;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(37,211,102,0.15);
}

.btn-wsp-pro:hover {
    background: #25d366;
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37,211,102,0.4);
}

.hero-metrics-row {
    display: flex;
    gap: 3.5rem;
    border-top: 1px solid rgba(212,175,55,0.2);
    padding-top: 1.5rem;
    width: 100%;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-num {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Cinzel', serif;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================
   TARJETA DEL DIRECTOR (CON HOVER DE BRILLO Y ELEVACIÓN)
   ========================================================== */
.hero-director-col {
    display: flex;
    justify-content: center;
    align-self: center;
    width: 100%;
}

.director-card-box {
    width: 100%;
    max-width: 450px;
    padding: 2.2rem;
    background: linear-gradient(145deg, var(--bg-card), #080e1f);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.85), 0 0 35px rgba(212,175,55,0.25);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.director-card-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.director-card-box:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
    box-shadow: 0 35px 75px rgba(0,0,0,0.95), 0 0 50px rgba(212,175,55,0.45);
}

.director-avatar-box {
    position: relative;
    width: 210px;
    height: 260px;
    margin: 0 auto 1.4rem;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--gold-main);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.director-card-box:hover .director-img {
    transform: scale(1.06);
}

.director-badge-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--gold-gradient);
    color: #000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

.director-title {
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 0.8rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.director-creds-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.director-cred-item {
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #f1f5f9;
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.director-cred-item i {
    color: var(--gold-primary);
}

.director-quote {
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: 0.6rem;
}

/* ==========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================== */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37,211,102,0.5);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.float-whatsapp:hover {
    transform: scale(1.1) rotate(10deg);
    background: #20ba5a;
}

/* ==========================================================
   ADAPTABILIDAD MÓVIL Y TABLETS (RESPONSIVE)
   ========================================================== */
@media (max-width: 1024px) {
    .hero-grid-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content-left {
        align-items: center;
        text-align: center;
    }
    
    .hero-subtitle-box {
        border-left: none;
        border-bottom: 3px solid var(--gold-primary);
        padding-left: 0;
        padding-bottom: 0.5rem;
        margin: 0 auto 1.5rem auto;
    }
    
    .hero-feature-row {
        text-align: left;
    }
    
    .hero-buttons-row {
        justify-content: center;
    }
    
    .hero-metrics-row {
        justify-content: center;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .director-card-box {
        max-width: 100%;
        padding: 1.8rem;
    }
}




/* ==========================================================
   SECCIÓN NOSOTROS (MISIÓN, VISIÓN Y COMPROMISO)
   ========================================================== */
.about-section {
    position: relative;
    width: 100%;
    padding: 6rem 3rem;
    background: radial-gradient(circle at 50% 50%, #0b132b 0%, #050814 80%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.about-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 2.2rem;
    font-family: 'Cinzel', serif;
    color: var(--text-white);
    font-weight: 900;
    margin-bottom: 1rem;
}

.gold-divider {
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    width: 100%;
}

.about-card {
    background: linear-gradient(145deg, #0d162d, #070b19);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    transition: height 0.3s ease;
}

/* Efecto hover elegante con elevación y brillo */
.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 30px rgba(212,175,55,0.3);
}

.about-card:hover::before {
    height: 8px;
}

/* Tarjeta central con realce especial para la Visión */
.about-card.featured-card {
    background: linear-gradient(145deg, #121e3f, #080e1f);
    border-color: var(--gold-primary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.7), 0 0 20px rgba(212,175,55,0.15);
}

.about-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.about-card:hover .about-icon-box {
    background: var(--gold-gradient);
    color: #050814;
    transform: scale(1.05) rotate(5deg);
}

.about-card-title {
    font-size: 1.4rem;
    font-family: 'Cinzel', serif;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 900;
}

.about-card-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.about-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #fef08a;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    width: 100%;
}

/* ==========================================================
   ADAPTABILIDAD MÓVIL (RESPONSIVE) PARA LA SECCIÓN NOSOTROS
   ========================================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-section {
        padding: 4rem 1.5rem;
    }
}



/* ==========================================================
   SECCIÓN SERVICIOS ESPECIALIZADOS (DISEÑO DE LUJO)
   ========================================================== */
.services-section {
    position: relative;
    width: 100%;
    padding: 6rem 3rem;
    background: radial-gradient(circle at 50% 20%, #0e1836 0%, #050814 80%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.services-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-intro-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

.service-card {
    background: linear-gradient(145deg, #0d162d, #070b19);
    border: 2px solid var(--border-gold);
    border-radius: 18px;
    padding: 2.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    transition: height 0.3s ease;
}

/* Efectos Hover sofisticados (Elevación y brillo dorado) */
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.85), 0 0 30px rgba(212,175,55,0.3);
}

.service-card:hover::before {
    height: 8px;
}

.service-card.featured-service {
    background: linear-gradient(145deg, #132147, #070b19);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 45px rgba(0,0,0,0.7), 0 0 25px rgba(212,175,55,0.2);
}

.service-icon-frame {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: var(--transition);
}

.service-card:hover .service-icon-frame {
    background: var(--gold-gradient);
    color: #050814;
    transform: scale(1.1) rotate(6deg);
}

.service-badge-cat {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.service-title {
    font-size: 1.25rem;
    font-family: 'Cinzel', serif;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    font-weight: 900;
}

.service-desc {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

.service-list li {
    font-size: 0.84rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li i {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.service-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fef08a;
    text-decoration: none;
    transition: var(--transition);
}

.service-btn-link:hover {
    color: var(--gold-primary);
    gap: 0.8rem;
}

/* ==========================================================
   ADAPTABILIDAD MÓVIL (RESPONSIVE) PARA SERVICIOS
   ========================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-section {
        padding: 4rem 1.5rem;
    }
}



/* ==========================================================
   SERVICIOS CON EFECTO DESPLEGABLE / VOLTEO (FLIP CARD)
   ========================================================== */
.services-section {
    position: relative;
    width: 100%;
    padding: 6rem 3rem;
    background: radial-gradient(circle at 50% 20%, #0e1836 0%, #050814 80%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.services-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-intro-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
}

/* Contenedor principal de la tarjeta con perspectiva 3D */
.service-flip-card {
    background-color: transparent;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Efecto Hover en PC o toque activo en Celular */
.service-flip-card:hover .service-card-inner,
.service-flip-card.touch-active .service-card-inner {
    transform: rotateY(180deg);
}

/* Caras delantera y trasera de la tarjeta */
.service-card-front, .service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 18px;
    border: 2px solid var(--border-gold);
    padding: 2.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.service-card-front {
    background: linear-gradient(145deg, #0d162d, #070b19);
}

.service-card-back {
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 45px rgba(0,0,0,0.85), 0 0 30px rgba(212,175,55,0.3);
}

.service-icon-frame {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.service-badge-cat {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.service-title {
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    font-weight: 900;
}

.service-desc {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.5;
    flex-grow: 1;
}

.expand-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 700;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.8rem;
}

/* Estilos del Reverso (Cuando se despliega y muestra la imagen de fondo) */
.service-title-back {
    font-size: 1.15rem;
    font-family: 'Cinzel', serif;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 900;
}

.service-list-back {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list-back li {
    font-size: 0.82rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list-back li i {
    color: var(--gold-primary);
}

.service-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold-gradient);
    color: #050814;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
    transition: var(--transition);
}

.service-btn-back:hover {
    transform: scale(1.03);
}

/* ==========================================================
   RESPONSIVE PARA MÓVILES Y TABLETS
   ========================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-section {
        padding: 4rem 1.5rem;
    }
    
    .service-flip-card {
        height: 360px;
    }
}



/* ==========================================================
   SECCIÓN APARTADO / SIMULADOR DE REQUISITOS (ESTILO DE LUJO)
   ========================================================== */
.simulador-section {
    position: relative;
    width: 100%;
    padding: 6rem 3rem;
    background: radial-gradient(circle at 50% 50%, #0b132b 0%, #050814 85%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.simulador-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sim-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

/* Menú de Pestañas Superiores */
.sim-tabs-menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: linear-gradient(145deg, #0d162d, #070b19);
    border: 2px solid var(--border-gold);
    color: var(--text-muted);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.tab-btn i {
    color: var(--gold-primary);
}

.tab-btn:hover {
    border-color: var(--gold-primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: #050814;
    border-color: #fef08a;
    box-shadow: 0 10px 25px rgba(212,175,55,0.35);
}

.tab-btn.active i {
    color: #050814;
}

/* Tarjeta Principal del Simulador */
.sim-panel-card {
    background: linear-gradient(145deg, #0d162d, #080e1f);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 35px rgba(212,175,55,0.2);
    position: relative;
    overflow: hidden;
}

.sim-panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold-gradient);
}

.sim-panel-header {
    margin-bottom: 2rem;
}

.panel-tag-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: rgba(212,175,55,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(212,175,55,0.3);
}

.panel-main-title {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.panel-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Checklist Dinámico */
.sim-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.check-card-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.check-card-item:hover {
    border-color: var(--border-gold);
    background: rgba(212, 175, 55, 0.04);
}

.check-card-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.check-card-item span {
    font-size: 0.94rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Pie de Acción del Simulador */
.sim-footer-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.btn-whatsapp-sim {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37,211,102,0.4);
    transition: var(--transition);
}

.btn-whatsapp-sim:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37,211,102,0.6);
}

.sim-secure-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sim-secure-note i {
    color: var(--gold-primary);
}

/* ==========================================================
   RESPONSIVE PARA MÓVILES Y TABLETS
   ========================================================== */
@media (max-width: 900px) {
    .sim-checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .sim-panel-card {
        padding: 1.8rem;
    }
    
    .simulador-section {
        padding: 4rem 1.2rem;
    }
}



/* ==========================================================
   SECCIÓN CONTÁCTANOS (FORMULARIO EJECUTIVO DE LUJO)
   ========================================================== */
.contact-section {
    position: relative;
    width: 100%;
    padding: 6rem 3rem;
    background: radial-gradient(circle at 50% 30%, #0b132b 0%, #050814 85%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-wrapper {
    width: 100%;
    margin-top: 1.5rem;
}

.contact-form-card {
    background: linear-gradient(145deg, #0d162d, #070b19);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 30px rgba(212,175,55,0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-input, .form-select, .form-textarea {
    background: rgba(5, 8, 20, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #ffffff;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    background: rgba(13, 22, 45, 0.9);
}

.form-select option {
    background: #070b19;
    color: #ffffff;
}

.contact-form-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-gold-submit {
    background: var(--gold-gradient);
    color: #050814;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.btn-gold-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .contact-form-card {
        padding: 1.8rem;
    }
    .contact-section {
        padding: 4rem 1.2rem;
    }
}



/* ==========================================================
   SECCIÓN UBICACIÓN Y CONTACTO PROFESIONAL
   ========================================================== */
.ubicacion-section {
    position: relative;
    width: 100%;
    padding: 6rem 3rem;
    background: radial-gradient(circle at 50% 80%, #0e1836 0%, #050814 85%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.ubicacion-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    width: 100%;
    margin-top: 1rem;
    align-items: stretch;
}

/* Columna de Información */
.ubicacion-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-card-box {
    background: linear-gradient(145deg, #0d162d, #070b19);
    border: 2px solid var(--border-gold);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.info-card-box:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.7), 0 0 20px rgba(212,175,55,0.25);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.info-card-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.info-card-detail {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.4;
    font-weight: 500;
}

/* Columna del Mapa */
.ubicacion-map-col {
    display: flex;
}

.map-card-box {
    width: 100%;
    background: linear-gradient(145deg, #0d162d, #080e1f);
    border: 2px solid var(--border-gold);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 30px rgba(212,175,55,0.2);
}

.map-header-bar {
    background: #070b19;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 1rem;
}

.map-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.map-title-bar {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.map-frame-container {
    flex-grow: 1;
    width: 100%;
    min-height: 320px;
    filter: contrast(1.05) saturate(0.9);
}

.map-footer-action {
    padding: 1.2rem;
    background: #070b19;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.btn-gold-map {
    background: var(--gold-gradient);
    color: #050814;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px rgba(212,175,55,0.3);
    transition: var(--transition);
}

.btn-gold-map:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(212,175,55,0.5);
}

/* ==========================================================
   RESPONSIVE PARA MÓVILES Y TABLETS
   ========================================================== */
@media (max-width: 1024px) {
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }
    
    .ubicacion-section {
        padding: 4rem 1.5rem;
    }
}
/* Botón flotante dentro del marco del mapa */
.map-floating-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(5, 8, 20, 0.9);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.map-floating-btn:hover {
    background: var(--gold-primary);
    color: #050814;
}




/* ==========================================================
   PIE DE PÁGINA / FOOTER EJECUTIVO DE LUJO
   ========================================================== */
.footer-section {
    position: relative;
    width: 100%;
    background: #03050c;
    border-top: 2px solid var(--border-gold);
    color: var(--text-muted);
    padding: 5rem 3rem 2rem 3rem;
    overflow: hidden;
}

.footer-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-frame {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold-main);
    box-shadow: 0 0 10px rgba(212,175,55,0.3);
    flex-shrink: 0;
}

.footer-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand-title {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand-sub {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #94a3b8;
}

.footer-resolution-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #fef08a;
    font-weight: 600;
}

.footer-col-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-white);
    font-weight: 900;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--gold-primary);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links-list li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.footer-links-list li a i {
    color: var(--gold-primary);
}

.footer-links-list li a:hover {
    color: var(--gold-primary);
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.footer-contact-item i {
    color: var(--gold-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-social-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-row a:hover {
    background: var(--gold-gradient);
    color: #050814;
    transform: translateY(-3px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-dev-credit {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==========================================================
   RESPONSIVE PARA MÓVILES Y TABLETS
   ========================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}




