/* =====================================================
   DENTÍSTICA EMMANUEL - Landing Page Prótesis Dentales
   ===================================================== */

/* ========== GOOGLE FONTS ========== */
/* ========== GOOGLE FONTS ========== */
/* Moved to HTML for performance */

/* ========== CSS RESET & VARIABLES ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Paleta Ciel Dental Center */
    --negro: #111111;
    --gris-oscuro: #333333;
    --gris-medio: #666666;
    --gris-claro: #F4F4F4;
    /* Fondo secciones alternas */
    --blanco: #FFFFFF;
    --dorado: #D4AF37;
    /* Acento principal */
    --dorado-oscuro: #B4942B;
    /* Hover */

    /* Mapeo a variables funcionales del template */
    --color-principal: var(--negro);
    --color-texto: var(--gris-oscuro);
    --color-acento: var(--dorado);
    --fondo-alterno: var(--gris-claro);

    /* Compatibilidad con nombres anteriores donde sea posible */
    --azul-oscuro: var(--negro);
    --azul-claro: var(--dorado);
    --verde: var(--dorado);
    /* Botones */

    /* Diseño */
    --borde-radio: 2px;
    /* Cuadrado/Bordes ligeros */
    --sombra: 0 4px 12px rgba(0, 0, 0, 0.08);
    --sombra-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transiciones */
    --transicion: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--negro);
    background: var(--blanco);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== UTILIDADES ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    min-height: 100vh;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--azul-oscuro);
}

/* ========== BOTÓN CTA ========== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-oscuro) 100%);
    color: var(--negro);
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 36px;
    border: none;
    border-radius: var(--borde-radio);
    cursor: pointer;
    transition: var(--transicion);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: var(--negro);
}

.btn-cta:active {
    transform: translateY(-1px);
}

/* ========== SECCIÓN HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
    /* Fondo oscuro elegante */
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    color: var(--blanco);
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    /* Dorado muy suave */
    border: 1px solid var(--dorado);
    color: var(--dorado);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: var(--borde-radio);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.hero-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-price .old-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-weight: 400;
}

.hero-price .new-price {
    color: var(--dorado);
    font-size: 2rem;
}

.hero-checklist {
    margin-bottom: 20px;
}

.hero-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.hero-checklist .check-icon {
    width: 24px;
    height: 24px;
    background: var(--dorado);
    border-radius: var(--borde-radio);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-checklist .check-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--blanco);
}

.hero-note {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 12px;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image .image-placeholder {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border-radius: var(--borde-radio);
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image .image-placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 15px;
    max-width: 250px;
}

/* Hero con imagen real */
.hero-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: var(--borde-radio);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== SECCIÓN TIPOS DE PRÓTESIS ========== */
.tipos-protesis {
    background: var(--blanco);
}

.tipos-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    /* Corrección responsive */
}

.tipo-card {
    text-align: center;
    width: 280px;
    /* Ancho fijo para forzar wrap */
    max-width: 100%;
}

.tipo-imagen {
    width: 220px;
    height: 220px;
    border-radius: var(--borde-radio);
    /* Cuadrado */
    margin: 0 auto 20px;
    overflow: hidden;
    border: 2px solid var(--gris-claro);
    box-shadow: var(--sombra);
    transition: var(--transicion);
    position: relative;
}

.tipo-imagen::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--borde-radio);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.tipo-imagen:hover {
    transform: translateY(-5px);
    border-color: var(--dorado);
}

.tipo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tipo-card h3 {
    font-size: 1.2rem;
    color: var(--azul-oscuro);
    margin-bottom: 8px;
}

.tipo-card p {
    font-size: 0.9rem;
    color: var(--gris);
}

.tipos-protesis .btn-cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* ========== SECCIÓN BENEFICIOS ========== */
.beneficios {
    background: var(--gris-claro);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.beneficio-card {
    background: var(--blanco);
    padding: 30px 25px;
    border-radius: var(--borde-radio);
    text-align: center;
    transition: var(--transicion);
    box-shadow: var(--sombra);
    border: 1px solid transparent;
}

.beneficio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
    border-color: var(--dorado);
}

.beneficio-icon {
    width: 60px;
    height: 60px;
    background: var(--negro);
    border-radius: var(--borde-radio);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.beneficio-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--dorado);
}

.beneficio-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 8px;
}

.beneficio-card p {
    color: var(--gris);
    font-size: 0.85rem;
    line-height: 1.5;
}

.beneficios .btn-cta {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

/* ========== SECCIÓN AUTORIDAD ========== */
.autoridad .container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
}

.doctor-image {
    position: relative;
}

.doctor-image .image-placeholder {
    background: var(--blanco);
    border-radius: var(--borde-radio);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--gris-claro);
    box-shadow: var(--sombra);
}

.doctor-image .image-placeholder p {
    font-size: 0.85rem;
    color: var(--gris);
    margin-top: 10px;
}

.doctor-info h2 {
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    margin-bottom: 15px;
}

.doctor-info p {
    font-size: 1rem;
    color: var(--gris);
    margin-bottom: 10px;
    line-height: 1.7;
}

.doctor-info .highlight {
    color: var(--azul-oscuro);
    font-weight: 600;
}

.testimonios {
    margin-top: 25px;
}

.testimonios h3 {
    font-size: 1.1rem;
    color: var(--azul-oscuro);
    margin-bottom: 15px;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.testimonio-card {
    background: var(--blanco);
    padding: 25px;
    border-radius: var(--borde-radio);
    border-left: 3px solid var(--dorado);
    box-shadow: var(--sombra);
}

.testimonio-card p {
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonio-card .autor {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--azul-oscuro);
}

.autoridad .btn-cta {
    margin-top: 40px;
}

/* ========== SECCIÓN FAQ ========== */
.faq {
    background: var(--gris-claro);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--blanco);
    border-radius: var(--borde-radio);
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--gris-claro);
    box-shadow: none;
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transicion);
    font-family: var(--font-main);
}

.faq-question:hover {
    background: rgba(0, 114, 187, 0.03);
}

.faq-question .icon {
    width: 24px;
    height: 24px;
    transition: var(--transicion);
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--gris);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-contacto {
    background: var(--blanco);
    padding: 40px;
    border-radius: 16px;
    margin-top: 50px;
    text-align: center;
    box-shadow: var(--sombra);
}

.faq-contacto h3 {
    font-size: 1.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 15px;
}

.faq-ubicacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gris);
    margin-bottom: 20px;
}

.faq-ubicacion svg {
    width: 20px;
    height: 20px;
    stroke: var(--dorado);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111111;
    /* Negro para elegancia, o el verde de whatsapp si prefieren funcionalidad */
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: var(--borde-radio);
    font-weight: 600;
    transition: var(--transicion);
}

.btn-whatsapp:hover {
    background: #333333;
    transform: translateY(-2px);
    color: var(--dorado);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: var(--blanco);
}

.faq .btn-cta {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
}

/* ========== SECCIÓN CIERRE ========== */
.cierre {
    background: #000000;
    color: var(--blanco);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cierre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cierre .container {
    position: relative;
    z-index: 1;
}

.cierre h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cierre p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.contador-container {
    margin: 40px 0;
}

.contador {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contador-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: var(--borde-radio);
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contador-numero {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.contador-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

.cupos-limitados {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.2);
    padding: 10px 25px;
    border-radius: var(--borde-radio);
    font-weight: 600;
    margin-top: 20px;
    animation: pulse 2s infinite;
    color: var(--dorado);
    border: 1px solid var(--dorado);
}

.cupos-limitados::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--dorado);
    border-radius: 0;
    /* Cuadrado */
    animation: blink 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.cierre .btn-cta {
    margin-top: 30px;
}

/* ========== SECCIÓN FORMULARIO ========== */
.formulario {
    background: var(--blanco);
}

.formulario-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--blanco);
    padding: 50px;
    border-radius: var(--borde-radio);
    box-shadow: var(--sombra);
    border: 1px solid var(--gris-claro);
}

.formulario-container h2 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.formulario-container .subtitle {
    text-align: center;
    color: var(--gris);
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 1px solid #e1e5e9;
    border-radius: var(--borde-radio);
    transition: var(--transicion);
    font-family: var(--font-main);
    background: var(--gris-claro);
}

.form-group input:focus {
    outline: none;
    border-color: var(--dorado);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: var(--blanco);
}

.form-group input.error {
    border-color: #ff4d4d;
}

.form-group .error-message {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group input.error+.error-message {
    display: block;
}

.formulario .btn-cta {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gris);
    margin-top: 20px;
}

.form-note svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-checklist {
        display: inline-block;
        text-align: left;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .autoridad .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctor-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .contador {
        gap: 10px;
    }

    .contador-item {
        padding: 20px 15px;
        min-width: 75px;
    }

    .contador-numero {
        font-size: 2rem;
    }

    .formulario-container {
        padding: 30px 20px;
    }

    .cierre h2 {
        font-size: 1.8rem;
    }

    /* FIX: Mantener Nombre y Apellido en línea */
    .form-row {
        flex-direction: row !important;
        gap: 10px;
    }

    .form-row .form-group {
        flex: 1;
        /* Esto asegura 50% cada uno */
    }

    /* FIX: Botón submit refinado */
    .formulario .btn-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        /* Reducir letra */
        padding: 15px;
        white-space: nowrap;
        /* Evitar que salte de línea */
    }

    .formulario .btn-cta svg {
        flex-shrink: 0;
        /* Evitar que el icono se aplaste */
    }
}

@media (max-width: 480px) {
    .btn-cta {
        width: 100%;
        padding: 16px 20px;
        /* Reducir padding lateral un poco */
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-price .new-price {
        font-size: 1.6rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px;
    }

    .faq-contacto {
        padding: 25px 20px;
    }
}

/* ========== PÁGINA DE GRACIAS ========== */
.gracias-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gracias-hero {
    background: linear-gradient(135deg, var(--verde) 0%, #6ba832 100%);
    color: var(--blanco);
    text-align: center;
    padding: 80px 20px;
}

.gracias-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease-out;
}

.gracias-icon svg {
    width: 50px;
    height: 50px;
    stroke: var(--blanco);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.gracias-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.gracias-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.bono-section {
    background: var(--blanco);
    padding: 60px 20px;
    text-align: center;
}

.bono-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #fff9e6, #fff5d6);
    border: 3px solid #ffc107;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.bono-card::before {
    content: '🎁';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 100px;
    opacity: 0.1;
}

.bono-card h2 {
    color: #b8860b;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bono-premio {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: var(--negro);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.bono-premio h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.bono-premio .valor {
    font-size: 0.95rem;
    opacity: 0.8;
}

.bono-contador {
    margin: 30px 0;
}

.bono-contador p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.bono-timer {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d32f2f;
}

.bono-condiciones {
    text-align: left;
    margin: 30px 0;
}

.bono-condiciones h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--azul-oscuro);
}

.bono-condiciones ol {
    padding-left: 20px;
}

.bono-condiciones li {
    font-size: 0.95rem;
    color: var(--gris);
    margin-bottom: 10px;
    list-style: decimal;
}

.btn-whatsapp-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #25D366;
    color: var(--blanco);
    padding: 25px 40px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: var(--transicion);
    margin-top: 30px;
}

.btn-whatsapp-grande:hover {
    background: #1ebe5a;
    transform: scale(1.02);
}

.btn-whatsapp-grande svg {
    width: 32px;
    height: 32px;
    fill: var(--blanco);
}

.mapa-section {
    padding: 60px 20px;
    background: var(--gris-claro);
}

.mapa-section h2 {
    text-align: center;
    color: var(--azul-oscuro);
    margin-bottom: 30px;
}

.mapa-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.mapa-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.direccion-texto {
    text-align: center;
    margin-top: 20px;
    color: var(--gris);
}

/* ========== WIDGET WHATSAPP FLOTANTE ========== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: 'Inter', sans-serif;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #1ebe5a;
}

.whatsapp-float-btn svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Caja de Chat */
.whatsapp-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: bottom right;
}

.whatsapp-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header Caja */
.whatsapp-header {
    background: #00762d;
    /* Verde WhatsApp oscuro */
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.whatsapp-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-header-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.whatsapp-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.whatsapp-subtitle {
    font-size: 0.85rem;
    margin: 3px 0 0;
    opacity: 0.9;
}

.whatsapp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.whatsapp-close:hover {
    color: #fff;
}

/* Cuerpo Caja */
.whatsapp-body {
    padding: 20px;
    background: #f0f2f5;
}

.whatsapp-option {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a2e;
    margin-bottom: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.whatsapp-option:last-child {
    margin-bottom: 0;
}

.whatsapp-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #25D366;
}

.whatsapp-option-icon {
    font-size: 1.5rem;
}

.whatsapp-option-text span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.whatsapp-option-text small {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Footer Caja */
.whatsapp-footer {
    background: #fff;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #eee;
}

.whatsapp-footer p {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

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

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 25px !important;
        right: 20px !important;
    }

    .whatsapp-box {
        bottom: 85px !important;
        width: 300px;
        /* Slightly wider for better readability on mobile */
        right: 10px;
        /* Slight offset from right edge */
    }
}