:root {
    --onyx: #121212;
    --onyx-light: #1e1e1e;
    --gold: #c5a059;
    --gold-dark: #8c6d32;
    --gold-light: #e8d09f;
    --ivory: #faf9f6;
    --text-muted: #888888;
    --glass-bg: rgba(30, 30, 30, 0.7);
    --glass-border: rgba(197, 160, 89, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--ivory);
    color: var(--onyx);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .section-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

.highlight {
    color: var(--gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* NAVBAR */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.5); /* Semitransparente al incio */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(18, 18, 18, 0.98);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

#navbar.scrolled .nav-content {
    padding: 0.8rem 0;
}

.logo .dr-name {
    display: block;
    color: var(--gold);
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.logo .specialty {
    font-size: 0.75rem;
    color: var(--ivory);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-nav a {
    color: var(--ivory);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    color: var(--onyx) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
}

/* HERO */
#hero {
    min-height: 100vh;
    background-color: var(--onyx);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px; /* Evita que el navbar lo pise */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--onyx-light) 0%, var(--onyx) 100%);
    overflow: hidden;
    z-index: 0;
}

.bg-svg {
    position: absolute;
    width: 600px;
    height: 600px;
    animation: float 20s infinite ease-in-out alternate;
}

.bg-svg.top-left {
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-svg.bottom-right {
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        transform: translate(50px, 50px) rotate(15deg) scale(1.1);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-image-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.featured-case-card {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    position: relative;
    width: 100%;
    transition: transform 0.3s ease;
}

.featured-case-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.featured-case-img {
    width: 100%;
    object-fit: contain;
    background: #1a1a1a;
    border-radius: 12px;
    max-height: 520px;
    display: block;
}

.case-label {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
    color: var(--ivory);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(197, 160, 89, 0.5);
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.case-label .dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.experience-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--onyx-light);
    border: 1px solid var(--gold);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    z-index: 3;
}

.experience-badge.gold-glow {
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.3);
}

.experience-badge .number {
    color: var(--gold);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    color: var(--ivory);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* PROCEDURE INFO STRIP */
.procedure-info-strip {
    background: rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: left;
}

.proc-title {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.proc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.proc-tag {
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--gold-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.proc-result {
    color: #cccccc;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.5;
}

.badge {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    display: inline-block;
    margin-bottom: 1.5rem;
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--ivory);
    margin-bottom: 1.5rem;
}

#hero p {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

/* BOTONES */
.btn-primary {
    background: var(--gold);
    color: var(--onyx);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--onyx);
}

/* SECTIONS */
.section-dark {
    background: var(--onyx);
    color: var(--ivory);
    padding: 6rem 0;
}

.section-light {
    background: var(--ivory);
    padding: 6rem 0;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.section-title.dark {
    color: var(--onyx);
}

/* TÉCNICA */
.tecnica-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.benefits-list {
    list-style: none;
    margin-top: 2.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.icon-svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* ANIMACIÓN SVG DEEP PLANE */
.svg-container {
    background: var(--onyx-light);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    text-align: center;
}

.deep-plane-anim {
    width: 100%;
    max-width: 350px;
    margin-bottom: 1rem;
}

.layer {
    transition: transform 1.5s ease-in-out;
}

.svg-container:hover .smas {
    transform: translateY(-20px) translateX(10px);
}
.svg-container:hover .skin {
    transform: translateY(-20px) translateX(10px);
}
.svg-caption {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* DR REVELO */
#dr-revelo {
    padding: 8rem 0;
    background: #181818;
    color: white;
}

.dr-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.doctor-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 40px rgba(197, 160, 89, 0.2);
}

.dr-titles p {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dr-desc {
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
}

.badge-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    background: rgba(197, 160, 89, 0.08);
    border-color: var(--gold);
    transform: translateX(5px);
}

.badge-item svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
    margin-right: 1rem;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 0.95rem;
    color: var(--ivory);
    font-weight: 500;
}

.badge-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dr-location {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--ivory);
}

/* PRECIOS */
.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.glass-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.glass-card.accent {
    background: var(--onyx);
    color: var(--ivory);
    border: 1px solid var(--gold);
}

.glass-card.accent h3 {
    color: var(--ivory);
}

.glass-card h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--onyx);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.price-range {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.currency {
    font-size: 1.2rem;
    vertical-align: super;
}

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

/* RESULTADOS */
#resultados {
    padding: 8rem 0;
}

/* CASO DESTACADO */
.caso-featured-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
    text-align: left;
}

.caso-featured-img {
    padding: 8px;
    aspect-ratio: 3/4;
}

.caso-featured-info {
    background: var(--onyx-light) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 2.5rem;
    color: var(--ivory);
}

.caso-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.caso-info-desc {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.caso-instagram-cta {
    background: rgba(197, 160, 89, 0.06);
    border-left: 3px solid #E1306C; /* Instagram color */
    padding: 1.2rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.instagram-cta-title {
    color: #E1306C;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.instagram-cta-desc {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.caso-resultado-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.caso-resultado-box .diamond { font-size: 1.5rem; flex-shrink: 0; }
.caso-resultado-box p { color: #e0e0e0; font-size: 0.95rem; line-height: 1.6; }

.caso-doctor-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.caso-doc-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    flex-shrink: 0;
}

.caso-doctor-tag strong {
    display: block;
    color: var(--ivory);
    font-size: 0.95rem;
}

.caso-doctor-tag span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.caso-disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.5;
}

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

.resultado-item {
    perspective: 1000px;
}

.resultado-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid var(--glass-border);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
}

.resultado-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
}

.resultado-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9), transparent);
    color: var(--gold-light);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.resultado-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.resultado-card:hover .resultado-img {
    transform: scale(1.1);
}

.resultado-card:hover .resultado-overlay {
    transform: translateY(0);
}

/* VIDEO INSTAGRAM */
.video-container {
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subsection-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gold);
}

.instagram-embed-wrapper {
    width: 100%;
    max-width: 540px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
}

.testimonios-frases {
    margin-top: 4rem;
}

.cita-premium {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--ivory);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
    opacity: 0.8;
}

/* CONTACTO */
#contacto {
    padding: 6rem 0;
    background: url('form-bg-pattern.png') var(--ivory); /* Opcional */
}

.glass-form {
    background: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--onyx);
}

input[type="text"], input[type="tel"] {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fdfdfd;
}

input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,160,89,0.1);
}

.radio-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-item {
    cursor: pointer;
}

.radio-item input {
    display: none;
}

.radio-content {
    border: 2px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.radio-item input:checked + .radio-content {
    border-color: var(--gold);
    background: rgba(197,160,89,0.05);
}

.radio-content .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.btn-submit {
    width: 100%;
    background: var(--onyx);
    color: var(--gold);
    border: none;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #000;
}

footer {
    background: var(--onyx);
    color: var(--text-muted);
    padding: 3rem 0;
}

/* SIMPLE ANIMATIONS CLASSES */
.animate-up { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.animate-left { opacity: 0; transform: translateX(-30px); transition: all 1s ease; }
.animate-right { opacity: 0; transform: translateX(30px); transition: all 1s ease; }

.in-view { opacity: 1; transform: translate(0,0); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .tecnica-grid, .dr-grid, .glass-form { grid-template-columns: 1fr; }
    .caso-featured-wrapper { grid-template-columns: 1fr; }
    .resultados-grid { grid-template-columns: 1fr 1fr; }
    #hero h1 { font-size: 3rem; }
    .hero-content-wrapper { display: flex; flex-direction: column-reverse; margin-top: 5rem; gap: 3rem; }
    .desktop-nav { display: none; }
}

@media (max-width: 768px) {
    .pricing-cards { grid-template-columns: 1fr; }
    .cta-group { flex-direction: column; }
    .glass-form { padding: 2rem; }
    .resultados-grid { grid-template-columns: 1fr; }
}

/* STICKY CTA MOBILE */
.sticky-mobile-cta { display: none; }
@media (max-width: 992px) {
    .sticky-mobile-cta {
        display: block;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: var(--gold);
        color: #000;
        text-align: center;
        padding: 1rem;
        font-family: 'Outfit', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        z-index: 9999;
        text-transform: uppercase;
        text-decoration: none;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    }
    .floating-whatsapp { bottom: 70px !important; right: 20px !important; }
}

/* FLOATING WHATSAPP BUTTON - JoinChat Style */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp::before {
    content: '¿Hablamos?';
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.floating-whatsapp:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
}

/* WEB CHAT UX */
.hidden {
    display: none !important;
}

#web-chat-overlay {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease-out forwards;
}

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

.web-chat-box {
    display: flex;
    flex-direction: column;
    height: 500px;
    max-height: 70vh;
    overflow: hidden;
    padding: 0;
}

.chat-header {
    background: var(--onyx);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--gold);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.chat-title h4 {
    color: var(--ivory);
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Outfit', sans-serif;
}

.chat-title span {
    color: var(--gold);
    font-size: 0.85rem;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: rgba(250, 249, 246, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg-bubble {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.msg-ai {
    background: var(--ivory);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.msg-user {
    background: var(--gold);
    color: var(--onyx);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--gold);
}

#chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}
/* SECCIÓN SEGURIDAD Y TECNOLOGÍA */
.section-security {
    background: #0f172a; /* Azul muy oscuro para denotar tecnología y seriedad */
    color: white;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-tag {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.tech-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    transform: translateX(10px);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 89, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.tech-info h3 {
    color: var(--gold-light);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.tech-info p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.security-visual {
    position: relative;
}

.security-shield-anim {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* MAPA DE RESULTADOS */
.section-map {
    padding: 8rem 0;
    background: var(--ivory);
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.results-map-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.results-map-img {
    width: 100%;
    display: block;
}

.map-hotspot {
    position: absolute;
    background: var(--gold);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.3);
    cursor: pointer;
}

.map-hotspot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: hotspot-pulse 2s infinite;
}

@keyframes hotspot-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.hotspot-label {
    position: absolute;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.map-hotspot:hover .hotspot-label {
    opacity: 1;
    transform: translateY(-10px);
}

.map-legend {
    display: grid;
    gap: 2rem;
}

.legend-item {
    padding-left: 1.5rem;
    border-left: 3px solid var(--gold);
}

.legend-item h4 {
    color: var(--onyx);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.legend-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* NUEVAS INTEGRACIONES DE IMAGENES Y CASOS REALES */
.tech-img-actual { width: 100%; border-radius: 8px; display: block; filter: brightness(0.9); transition: filter 0.3s; }
.tech-real-capture:hover .tech-img-actual { filter: brightness(1.1); }
.tech-overlay-tag { position: absolute; bottom: 15px; right: 15px; background: rgba(197, 160, 89, 0.9); color: #000; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.case-comparison-block { margin: 4rem auto; max-width: 1000px; }
.comparison-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 15px !important; background: rgba(255, 255, 255, 0.03) !important; }
.comparison-item { position: relative; border-radius: 8px; overflow: hidden; }
.comparison-item img { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.comparison-item:hover img { transform: scale(1.05); }
.comp-label { position: absolute; top: 15px; left: 15px; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 500; backdrop-filter: blur(4px); }
.comparison-caption { grid-column: 1 / span 2; padding: 1.5rem 0.5rem 0.5rem; text-align: left; }
.comparison-caption h4 { color: var(--gold); margin-bottom: 0.5rem; font-family: Playfair Display, serif; font-size: 1.4rem; }
.comparison-caption p { color: #aaa; font-size: 0.95rem; }

.recovery-transparency { width: 100%; text-align: left; }
.transparency-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; padding: 2rem !important; background: rgba(255, 255, 255, 0.02) !important; border-left: 4px solid var(--gold) !important; }
.transparency-img { position: relative; border-radius: 12px; overflow: hidden; }
.transparency-img img { width: 100%; display: block; filter: saturate(0.8); }
.transparency-tag { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.7); color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.transparency-text h3 { margin-bottom: 1rem; font-size: 1.8rem; }
.transparency-text p { color: #ccc; margin-bottom: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
    .comparison-container { grid-template-columns: 1fr; }
    .comparison-caption { grid-column: 1; }
    .transparency-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ESTILOS PARA EVOLUCION Y GRAFICOS TECNICOS ACTUALIZADOS */
.tech-graphic-container { padding: 3rem; text-align: center; position: relative; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tech-icon-svg { width: 150px; height: 150px; margin-bottom: 1rem; }

.evolution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 2.5rem !important; background: #fff !important; }
.evo-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.evo-item img { width: 100%; height: auto; display: block; aspect-ratio: 3/4; object-fit: contain; background: #f9f9f9; }
.evo-item span { position: absolute; bottom: 10px; left: 10px; background: rgba(0,0,0,0.7); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.label-warn { background: #c5a059 !important; color: #000 !important; }
.label-success { background: #25D366 !important; color: #fff !important; }
.evo-text { grid-column: 1 / span 3; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; text-align: left; }
.evo-text p { color: var(--onyx); font-size: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
    .evolution-grid { grid-template-columns: 1fr; padding: 1rem 0 !important; gap: 1rem; }
    .evo-text { grid-column: 1; padding-top: 1rem; }
    .comparison-container { grid-template-columns: 1fr; padding: 1rem !important; }
    .comparison-caption { grid-column: 1; }
    .transparency-grid { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem !important; }
}
