/* ==============================================================================
   Opus Magna Constructions - Premium Design System & Styles
   ============================================================================== */

:root {
    /* Color Palette */
    --navy-deep: #061827;        /* Azul noche profundo */
    --navy-dark: #0A2342;        /* Azul arquitectónico principal */
    --navy-light: #102B4C;       /* Azul claro para contrastes */
    --navy-glass: rgba(6, 24, 39, 0.6);
    --gold: #D4AF37;             /* Oro noble */
    --gold-light: #F2D265;       /* Oro claro */
    --gold-dark: #BFA46A;        /* Oro mate */
    --gold-glow: rgba(212, 175, 55, 0.2);
    --gold-glow-strong: rgba(212, 175, 55, 0.4);
    --white: #F8F9FA;
    --white-muted: rgba(248, 249, 250, 0.7);
    --gray-light: #E2E8F0;
    --gray: #C9C3B8;             /* Gris piedra */
    
    /* Nuevas variables de la versión 2 */
    --ivory: #F7F3EA;            /* Blanco marfil */
    --black-editorial: #111111;   /* Negro editorial */
    
    /* Typography */
    --font-serif: 'Cinzel', Georgia, serif;
    --font-sans: 'Montserrat', 'Inter', sans-serif;
    
    /* Design Tokens */
    --transition-smooth: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-quick: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
}

/* --- Base & Scrollbar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--navy-deep);
}

body {
    font-family: var(--font-sans);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    
    /* Bloqueo de selección de texto disuasorio */
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE10+ */
    user-select: none;          /* Estándar */
}

/* Permitir la selección e introducción de texto en campos de formulario */
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* --- Helper Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-medium {
    max-width: 960px;
}

.container-narrow {
    max-width: 720px;
}

.section-padding {
    padding: 8rem 0;
}

.accent-gold {
    color: var(--gold);
    font-weight: 500;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.divider-gold {
    width: 80px;
    height: 1px;
    background-color: var(--gold);
    margin: 2rem auto;
    position: relative;
}

.divider-gold::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* --- Scroll Down / CTA Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-submit {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--gold);
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.1);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
    transform: translateY(-2px);
}

/* --- Fixed Video Background --- */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    background-color: var(--navy-deep);
}

.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Filtro cinematográfico: escala de grises, oscurecido y contraste elegante */
    filter: grayscale(100%) brightness(0.3) contrast(1.1) blur(1px);
    transform: scale(1.02); /* Evita bordes blancos causados por el difuminado */
    transition: var(--transition-smooth);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Doble degradado: viñeta radial para centrar y degradado lineal a azul noche al final */
    background: radial-gradient(circle at center, rgba(6, 24, 39, 0.2) 0%, rgba(6, 24, 39, 0.85) 80%),
                linear-gradient(to bottom, transparent 40%, var(--navy-deep) 100%);
    z-index: 2;
}

/* --- Main Page Layout --- */
.page-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* --- SECTION 1: Hero Principal --- */
.hero-section {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    background-color: transparent;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.brand-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    color: var(--gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    color: var(--white-muted);
    max-width: 720px;
    margin: 0 auto 4rem;
    letter-spacing: 0.05em;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Scroll down indicator */
.scroll-down-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition-smooth);
}

.scroll-down-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.scroll-arrow-box {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(5, 12, 26, 0.35);
    backdrop-filter: blur(4px);
    transition: var(--transition-smooth);
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    color: var(--gold);
    animation: bounce 2s infinite;
}

.scroll-down-btn:hover .scroll-arrow-box {
    border-color: var(--gold);
    background-color: var(--gold);
}

.scroll-down-btn:hover .scroll-arrow {
    color: var(--navy-deep);
}

/* --- Parallax Content Curtain --- */
.content-curtain {
    position: relative;
    z-index: 3;
    background-color: var(--navy-deep);
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.6);
    width: 100%;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.section-subtitle-dark {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--white-muted);
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SECTION 2: Nuestra Filosofía --- */
.philosophy-section {
    background-color: var(--navy-deep);
    border-bottom: 1px solid rgba(197, 168, 128, 0.08);
}

.philosophy-text {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--white);
    max-width: 800px;
    margin: 3rem auto;
}

.philosophy-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--gold-light);
    line-height: 1.5;
    max-width: 750px;
    margin: 4rem auto 0;
    position: relative;
    padding: 0 2rem;
    font-style: italic;
}

.quote-mark {
    color: var(--gold-dark);
    font-size: 3rem;
    line-height: 0;
    vertical-align: middle;
}

/* --- SECTION 3: El ADN Opus Magna --- */
.adn-section {
    background-color: var(--navy-dark);
    border-bottom: 1px solid rgba(197, 168, 128, 0.08);
}

/* --- Hero Actions & Buttons --- */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.06);
    color: var(--gold-light);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* --- Contrast / Clear Sections (Blanco Marfil) --- */
.clear-section {
    background-color: var(--ivory) !important;
    border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.dark-eyebrow {
    color: var(--gold-dark) !important;
    font-weight: 600;
}

.dark-title {
    color: var(--black-editorial) !important;
}

/* --- SECTION 3: Qué Construimos (Servicios) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2.2rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    background-color: #ffffff;
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(191, 164, 106, 0.12);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(191, 164, 106, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    background-color: rgba(191, 164, 106, 0.04);
    color: var(--gold-dark);
    transition: var(--transition-smooth);
}

.service-card:hover .service-card-icon {
    background-color: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow-strong);
}

.srv-icon {
    width: 26px;
    height: 26px;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--black-editorial);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.service-desc {
    font-size: 0.9rem;
    color: rgba(17, 17, 17, 0.7);
    font-weight: 300;
    line-height: 1.62;
}

/* --- SECTION 4: El Método (Ajustes de Detalles) --- */
.method-section {
    background-color: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.timeline {
    position: relative;
    max-width: 850px;
    margin: 5rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.3) 15%, rgba(212, 175, 55, 0.3) 85%, transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    background-color: var(--navy-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gold);
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--gold);
    color: var(--navy-deep);
    box-shadow: 0 0 15px var(--gold-glow-strong);
}

.timeline-content {
    background-color: var(--navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(212, 175, 55, 0.2);
    background-color: rgba(10, 35, 66, 0.35);
    transform: translateX(5px);
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 0.75rem;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.method-detail-row {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0;
}

.method-detail-row strong {
    color: var(--gold-light);
    font-weight: 500;
    margin-right: 0.3rem;
}

/* --- SECTION 5: Diferenciación (Fondo Claro) --- */
.differentiation-section {
    border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.differentiation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.diff-card {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(191, 164, 106, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    transition: var(--transition-smooth);
}

.diff-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.95);
}

.diff-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.diff-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.6rem;
}

.diff-tag-avoid {
    background-color: rgba(239, 68, 68, 0.08);
    color: #DC2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.diff-tag-solve {
    background-color: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.diff-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--black-editorial);
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.diff-card-text {
    font-size: 0.86rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

.diff-card-divider {
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    margin: 0.2rem 0;
}

.diff-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.diff-card-solution {
    font-size: 0.88rem;
    color: var(--black-editorial);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .differentiation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .diff-card {
        padding: 1.8rem 1.5rem;
    }
}

/* --- SECTION 6: Materiales y Acabados --- */
.materials-section {
    background-color: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.material-card {
    border: 1px solid rgba(212, 175, 55, 0.1);
    background-color: rgba(10, 35, 66, 0.25);
    border-radius: var(--border-radius-md);
    padding: 3.5rem 2.2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.material-card:hover {
    border-color: var(--gold);
    background-color: rgba(10, 35, 66, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.material-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.material-desc {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.6;
}

/* --- SECTION 7: Proyectos destacados --- */
.projects-section {
    background-color: var(--navy-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background-color: var(--navy-dark);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.project-image-box {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-image {
    transform: scale(1.04);
}

.project-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(6, 24, 39, 0.95) 100%);
    z-index: 2;
}

.project-info {
    padding: 2.2rem;
}

.project-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.55;
}

/* --- SECTION 8: Confianza y Control Técnico (Fondo Claro) --- */
.confidence-section {
    border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

@media (max-width: 767px) {
    .confidence-grid {
        grid-template-columns: 1fr;
    }
}

.confidence-card {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-radius: var(--border-radius-md);
    padding: 3.5rem 2.2rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.confidence-card:hover {
    background-color: #ffffff;
    border-color: var(--gold-dark);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(17, 17, 17, 0.06);
}

.confidence-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--black-editorial);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.confidence-desc {
    font-size: 0.9rem;
    color: rgba(17, 17, 17, 0.75);
    font-weight: 300;
    line-height: 1.6;
}n: 0 auto;
}

/* --- SECTION 8: Cierre Emocional & Formulario --- */
.leads-section {
    background-color: var(--navy-deep);
}

.emotional-closing {
    margin-bottom: 5rem;
}

.closing-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
}

.closing-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.closing-text {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    font-weight: 300;
    color: var(--white-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Glassmorphism Form Card */
.glass-form-card {
    background: var(--navy-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-radius: var(--border-radius-lg);
    padding: 4rem 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.glass-form-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.form-header {
    margin-bottom: 3rem;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 300;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background-color: rgba(5, 12, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 1.1rem 1.3rem;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
    transition: var(--transition-quick);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: rgba(197, 168, 128, 0.4);
    background-color: rgba(5, 12, 26, 0.8);
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.form-input:focus ~ .input-focus-line {
    width: 100%;
}

/* Form Submit State */
.btn-submit.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.btn-submit.loading .btn-spinner {
    display: block;
}

.btn-spinner {
    display: none;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success & Error State Messages */
.form-message {
    display: none;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    animation: fadeIn 0.4s ease-out forwards;
}

.success-message {
    background-color: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.error-message {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.message-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.success-message .message-icon-box {
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.error-message .message-icon-box {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.message-icon {
    width: 18px;
    height: 18px;
}

.message-text {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

.success-message .message-text {
    color: #c9f5d9;
}

.error-message .message-text {
    color: #fcd5d5;
}

/* --- SECTION 9: Footer --- */
.main-footer {
    padding: 5rem 0 4rem;
    background-color: var(--navy-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-logo-box {
    margin-bottom: 2rem;
}

.footer-logo {
    height: 105px; /* Más del doble de grande para darle fuerte presencia (antes 45px) */
    width: auto;
    filter: brightness(0.95) drop-shadow(0 2px 10px rgba(212, 175, 55, 0.15));
    transition: var(--transition-smooth);
}

.footer-logo:hover {
    filter: brightness(1.15) drop-shadow(0 4px 18px rgba(212, 175, 55, 0.3));
    transform: scale(1.02);
}

.footer-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 2rem auto;
}

.footer-links-row {
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-link-item {
    font-size: 0.75rem;
    color: var(--gray);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-link-item:hover {
    color: var(--gold);
}

.footer-link-separator {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.15);
}

.copyright {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.1em;
    font-weight: 300;
    text-align: center;
}

.footer-bottom-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
    min-height: 44px;
}

.footer-col-left {
    display: none;
}

.footer-col-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.social-icon {
    width: 16px;
    height: 16px;
    color: var(--gray);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--gold);
}

.social-link:hover .social-icon {
    color: var(--gold);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .footer-bottom-row {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        min-height: auto;
    }
    
    .footer-col-left {
        display: none;
    }
    
    .footer-col-right {
        position: static;
        transform: none;
        justify-content: center;
        width: 100%;
    }
}

/* --- Scroll Reveal Animations CSS --- */
.reveal-fade,
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers for elements */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Keyframe Animations --- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Media Queries (Responsive Mobile-First Design) --- */

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        margin-bottom: 5rem;
    }

    /* Odd items to the left, even items to the right */
    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 40px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-dot {
        left: auto;
        right: -20px;
        top: 20px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        right: auto;
        left: -20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        transition: var(--transition-smooth);
    }

    .timeline-item:nth-child(odd):hover .timeline-content {
        transform: translateX(-5px);
    }
}

/* Small Devices (Phones, less than 768px) */
@media (max-width: 767px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.1rem;
        margin-bottom: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 3rem;
    }

    .glass-form-card {
        padding: 2.5rem 1.8rem;
    }

    .comparison-table th, 
    .comparison-table td {
        padding: 1.2rem 1rem;
        font-size: 0.85rem;
    }
    
    .table-criteria {
        width: 30%;
    }
}

/* --- Intro Preloader --- */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--navy-deep);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
    overflow: hidden;
}

.preloader-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--navy-deep);
}

.skip-intro-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-quick);
    z-index: 10000;
}

.skip-intro-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background-color: rgba(197, 168, 128, 0.05);
}

.preloader-container.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Hero Logo Styling --- */
.hero-logo-box {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    height: clamp(100px, 15vw, 150px); /* Aumento notable del logo principal en hero */
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.2));
    transition: var(--transition-smooth);
}

.hero-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.35));
}

/* --- Botón Volver Arriba (Estático en Footer) --- */
.back-to-top-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--navy-dark);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    outline: none;
    flex-shrink: 0;
}

.back-to-top-btn:hover {
    background-color: var(--gold);
    color: var(--navy-deep);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow-strong);
    transform: translateY(-3px);
}

.back-to-top-btn:active {
    transform: translateY(-1px);
}

.back-to-top-icon {
    width: 16px;
    height: 16px;
    transition: var(--transition-quick);
}

.back-to-top-btn:hover .back-to-top-icon {
    transform: translateY(-2px);
}

/* ==============================================================================
   Opus Magna - Luxury Project Gallery & Lightbox Styles
   ============================================================================== */

/* Image Box hover extensions */
.project-image-box {
    cursor: pointer;
}

/* Luxury gold border drawing on image box hover */
.project-image-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 0px var(--gold);
    transition: var(--transition-smooth);
    z-index: 4;
    pointer-events: none;
}

.project-card:hover .project-image-box::after {
    box-shadow: inset 0 0 0 1px var(--gold);
}

/* Glassmorphism float indicator */
.project-zoom-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(6, 24, 39, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 0.7rem 1.4rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 5;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zoom-icon {
    color: var(--gold-light);
    transition: transform 0.3s ease;
}

.project-image-box:hover .project-zoom-indicator,
.project-card:hover .project-zoom-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-image-box:hover .zoom-icon {
    transform: scale(1.1) rotate(15deg);
}

/* Lightbox de Lujo */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(4, 14, 23, 0.96); /* Deep navy black translation */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10100;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(6, 24, 39, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    outline: none;
}

.lightbox-close:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: rotate(90deg);
    background-color: rgba(6, 24, 39, 0.8);
    box-shadow: 0 0 20px var(--gold-glow-strong);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    perspective: 1200px; /* Perspective for 3D tilt */
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1) translateY(0);
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(212, 175, 55, 0.08);
    border-radius: var(--border-radius-sm);
    background-color: var(--navy-deep);
    transition: transform 0.1s ease-out; /* Smooth hover-tracking */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.lightbox-caption {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

.lightbox-modal.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.lightbox-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar locks while lightbox is open */
body.lightbox-open {
    overflow: hidden !important;
}

/* ==============================================================================
   Opus Magna - Luxury Cookie Consent Banner
   ============================================================================= */
.cookie-banner-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 150%);
    width: 90%;
    max-width: 900px;
    background: rgba(8, 20, 36, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
}

.cookie-banner-container.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text-box {
    flex: 1;
}

.cookie-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.cookie-text {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: var(--gold);
    text-decoration: underline;
    transition: var(--transition-quick);
}

.cookie-link:hover {
    color: var(--gold-light);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Botones de Cookie */
.btn-cookie-primary,
.btn-cookie-secondary {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cookie-primary {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    color: var(--navy-deep);
}

.btn-cookie-primary:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

.btn-cookie-secondary {
    background-color: transparent;
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: var(--gold);
}

.btn-cookie-secondary:hover {
    background-color: rgba(197, 168, 128, 0.08);
    border-color: var(--gold);
    transform: translateY(-1px);
}

/* Panel de Configuración Detallada */
.cookie-settings-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.5s ease;
    margin-top: 0;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
}

.cookie-settings-panel.open {
    max-height: 350px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.cookie-settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.cookie-setting-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 1rem;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.setting-title {
    font-size: 0.8rem;
    color: var(--white);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.badge-required {
    font-size: 0.6rem;
    color: var(--gold);
    background: rgba(197, 168, 128, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    margin-left: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.setting-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    margin: 0;
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
}

/* Interruptor Deslizante (Toggles) */
.switch-container {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: var(--gray);
    transition: .3s;
    border-radius: 50%;
}

.switch-container input:checked + .switch-slider {
    background-color: var(--gold);
}

.switch-container input:checked + .switch-slider:before {
    transform: translateX(14px);
    background-color: var(--navy-deep);
}

.switch-container input:disabled + .switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsividad */
@media (max-width: 767px) {
    .cookie-banner-container {
        bottom: 1rem;
        padding: 1.2rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cookie-actions button {
        width: 100%;
    }

    .cookie-settings-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .cookie-settings-panel.open {
        max-height: 500px;
    }
}

/* ==============================================================================
   Opus Magna - WhatsApp Widget & Luxury Technical Chatbot
   ============================================================================== */

/* WhatsApp Floating Widget Container */
.whatsapp-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 990; /* Keep it below Lightbox/Cookies */
    pointer-events: none;
}

.whatsapp-widget-container * {
    pointer-events: auto;
}

/* Tooltip message */
.whatsapp-tooltip {
    background: rgba(6, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.whatsapp-widget-container:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* WhatsApp Trigger Button */
.whatsapp-trigger-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-deep) 100%);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    outline: none;
}

.whatsapp-trigger-btn:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow-strong), 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px) scale(1.05);
    color: var(--gold-light);
}

.whatsapp-trigger-btn:active {
    transform: translateY(-1px) scale(1);
}

.whatsapp-svg-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition-quick);
}

/* Chatbot Modal Container */
.chatbot-container {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 520px;
    max-height: calc(100vh - 9rem);
    border-radius: var(--border-radius-lg);
    background: rgba(6, 24, 39, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gold);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    z-index: 988;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.chatbot-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chatbot Header */
.chatbot-header {
    background: rgba(10, 35, 66, 0.8);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-header-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.3));
}

.chatbot-header-text {
    display: flex;
    flex-direction: column;
}

.chatbot-header-title {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.1em;
}

.chatbot-header-status {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981; /* Nice emerald green */
    box-shadow: 0 0 8px #10B981;
    display: inline-block;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-quick);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    outline: none;
}

.chatbot-close-btn:hover {
    color: var(--gold);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Chat Messages Panel */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 0.2) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: rgba(197, 168, 128, 0.2);
    border-radius: 2px;
}

/* Message Bubbles */
.chat-msg {
    max-width: 82%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    font-family: var(--font-sans);
    word-break: break-word;
    animation: chatBubbleReveal 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes chatBubbleReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot {
    align-self: flex-start;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 128, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    align-self: flex-end;
    background-color: var(--gold);
    color: var(--navy-deep);
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

/* Typing loader */
.chat-typing-loader {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.2rem;
}

.chat-typing-loader span {
    width: 6px;
    height: 6px;
    background-color: var(--gold-dark);
    border-radius: 50%;
    animation: typingBounce 1s infinite ease-in-out;
}

.chat-typing-loader span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Quick Options Container */
.chatbot-options-container {
    padding: 0.5rem 1.25rem 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: transparent;
    max-height: 120px;
    overflow-y: auto;
}

.chat-opt-btn {
    background-color: rgba(197, 168, 128, 0.06);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--gold-light);
    font-family: var(--font-sans);
    font-size: 0.74rem;
    padding: 0.4rem 0.8rem;
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition-quick);
    outline: none;
}

.chat-opt-btn:hover {
    background-color: rgba(197, 168, 128, 0.15);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-1px);
}

.chat-opt-btn:active {
    transform: translateY(0);
}

/* Chat Input Bar */
.chatbot-input-area {
    display: flex;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    background-color: rgba(6, 18, 30, 0.98);
    padding: 0.75rem 1rem;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-text-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition-quick);
}

.chatbot-text-input:focus {
    border-color: var(--gold);
    background-color: rgba(255, 255, 255, 0.04);
}

.chatbot-text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-send-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition-quick);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    outline: none;
}

.chatbot-send-btn:hover:not(:disabled) {
    color: var(--gold-light);
    background-color: rgba(255, 255, 255, 0.04);
}

.chatbot-send-btn:disabled {
    color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
}

.send-icon {
    width: 16px;
    height: 16px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 2rem);
        height: 480px;
        right: 1rem;
        bottom: 5.5rem;
    }
    
    .whatsapp-widget-container {
        bottom: 1.5rem;
        right: 1rem;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hide tooltips on small mobiles to save space */
    }
}



