/* =========================================
   FORWARD ASCENSORES - HOJA DE ESTILOS MAESTRA
   Manual: #333366 (Violeta) + Nasalization/Orbitron
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&family=Orbitron:wght@500;700;900&display=swap');

:root {
    --brand-violet: #333366;
    --brand-dark: #050a15; /* Ajustado al tono del pie de página */
    --text-main: #333;
    --white: #fff;
    --bg-light: #F5F5F5;
    --font-brand: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--text-main);
    padding-top: 90px;
    overflow-x: hidden;
}

/* ================= HEADER Y NAVEGACIÓN ================= */
.header-main {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 90px;
    background: var(--white); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 9999; 
    display: flex; 
    align-items: center;
}

.header-container {
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.logo-wrapper { 
    display: block; 
    height: 55px; 
    width: 200px; 
}

.logo-img { 
    height: 100%; 
    width: auto; 
    object-fit: contain; 
    display: block; 
}

.nav-link {
    font-family: var(--font-brand); 
    color: var(--brand-violet);
    text-decoration: none;
    font-size: 0.95rem; 
    margin-left: 30px; 
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #555599; /* Un tono más claro al pasar el mouse */
}

/* ================= BOTONES Y ETIQUETAS ================= */
.btn {
    padding: 12px 30px; 
    font-weight: 600;
    font-size: 0.95rem; 
    text-decoration: none; 
    border-radius: 4px;
    display: inline-block; 
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary { 
    background: var(--brand-violet); 
    color: var(--white); 
    border: 2px solid var(--brand-violet);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--brand-violet);
}

.btn-outline { 
    border: 2px solid var(--white); 
    color: var(--white); 
}

.btn-outline:hover {
    background: var(--white);
    color: var(--text-main);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1rem;
}

.badge-brand {
    background: var(--brand-violet);
    color: var(--white);
    padding: 8px 20px;
    font-family: var(--font-brand);
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Botón flotante WhatsApp */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ================= HERO SECTION ================= */
.hero {
    min-height: 80vh; 
    position: relative; 
    display: flex; 
    align-items: center;
    background: #000; 
    overflow: hidden;
}

.video-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    opacity: 0.6; /* Un poco más oscuro para que el texto resalte mejor */
    z-index: 0;
}

.overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); 
    z-index: 1;
}

.hero-content {
    position: relative; 
    z-index: 2; 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto;
    color: var(--white); 
    text-align: left;
    padding: 60px 0;
}

.hero h1 { 
    font-family: var(--font-brand); 
    font-size: clamp(2.5rem, 5vw, 4rem); /* Escala fluidamente en móviles */
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 650px;
    margin: 20px 0 40px 0;
    line-height: 1.6;
}

/* ================= ESTRUCTURA GENERAL Y COMPONENTES ================= */
.section-pad { 
    padding: 80px 0; 
}

.bg-gray { 
    background: var(--bg-light); 
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex-split {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.flex-split > div {
    flex: 1;
    min-width: 350px;
}

/* Tarjetas (Servicios) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card { 
    background: var(--white); 
    padding: 40px; 
    border: 1px solid #eee; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card i { 
    font-size: 2.5rem; 
    color: var(--brand-violet); 
    margin-bottom: 20px; 
    display: block; 
}

.card h3 { 
    font-family: var(--font-brand); 
    color: var(--text-main); 
    margin-bottom: 15px; 
    font-size: 1.3rem;
}

.card-list {
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    padding-top: 20px;
    list-style: none;
}

.card-list li {
    margin-bottom: 8px;
}

/* Valor Agregado */
.value-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.value-icon {
    font-size: 1.5rem;
    color: var(--brand-violet);
    margin-top: 3px;
}

.image-framed {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.image-framed img {
    width: 100%;
    border-radius: 6px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-framed::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 3px solid var(--brand-violet);
    z-index: 1;
    border-radius: 6px;
}

.cert-seal {
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--brand-violet);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cert-seal img {
    max-width: 70px;
    height: auto;
    border-radius: 4px;
}

/* ================= CONFIGURADOR DE CABINA ================= */
.config-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.preview-container {
    background: #000;
    position: sticky;
    top: 110px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.cabin-view {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    border-radius: 4px;
}

.cabin-view img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.layer-base { z-index: 10; }
.layer-overlay { z-index: 20; }

.price-display {
    background: var(--brand-violet);
    color: var(--white);
    padding: 18px;
    margin-top: 0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: center;
    font-family: var(--font-brand);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.selection-panel {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.option-section { margin-bottom: 35px; }

.option-section h4 { 
    font-family: var(--font-brand); 
    color: var(--brand-violet);
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swatch-group { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.swatch {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    border: 3px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.swatch.active, .swatch:hover {
    border-color: var(--brand-violet);
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(51, 51, 102, 0.3);
}

/* ================= PIE DE PÁGINA (FOOTER) ================= */
.footer-main {
    background: var(--brand-dark);
    color: #a0a0a0;
    padding: 70px 0 20px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-heading {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-family: var(--font-brand);
    letter-spacing: 1px;
}

.footer-text {
    font-size: 0.95rem;
    margin-top: 15px;
    line-height: 1.7;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact i {
    font-size: 1.2rem;
    color: var(--brand-violet);
}

.norms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.iso-badge {
    border: 1px solid rgba(160, 160, 160, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.footer-seal {
    max-width: 100px;
    height: auto;
    border-radius: 6px;
    background: var(--white); 
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.footer-copyright {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

/* ================= MEDIA QUERIES (RESPONSIVE) ================= */
@media (max-width: 992px) {
    .config-grid { grid-template-columns: 1fr; }
    .preview-container { position: relative; top: 0; margin-bottom: 30px; }
    .flex-split { gap: 40px; }
    .image-framed { padding-right: 0; padding-bottom: 0; margin-top: 20px;}
    .image-framed::after { display: none; } /* Oculta el marco desfasado en móviles para evitar problemas de ancho */
}

@media (max-width: 768px) {
    .header-main { height: 75px; }
    body { padding-top: 75px; }
    .nav-link { display: none; } /* Idealmente aquí activarías un menú hamburguesa */
    .hero-content { text-align: center; padding: 40px 0; }
    .hero-subtitle { margin: 20px auto 40px auto; }
    .btn-large { display: block; margin: 0 auto 15px auto; width: 100%; max-width: 300px; }
    .btn-outline { margin-left: auto !important; margin-right: auto !important; }
}