/* =====================================================
   Credent RD - Landing Implantes Dentales
   ===================================================== */

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

:root {
    /* Color Palette */
    --azul-oscuro: #049adb;
    --azul-claro: #0195c2;
    --gris: #93999a;
    --verde: #00984f;
    --verde-oscuro: #05974b;
    --teal: #019688;
    --blanco: #ffffff;
    --negro: #1a1a2e;
    --gris-claro: #f5f7fa;
    --sombra: 0 10px 40px rgba(26, 54, 93, 0.15);
    --sombra-hover: 0 15px 50px rgba(26, 54, 93, 0.25);
    --font-heading: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-main: var(--font-body);
    --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 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 {
    padding: 80px 0;
}

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

.section-subtitle {
    text-align: center;
    color: var(--gris);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========== BOTON CTA ========== */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--verde) 0%, #6ba832 100%);
    color: var(--blanco);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicion);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(56, 161, 105, 0.5);
}

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

.btn-cta:focus-visible {
    outline: 3px solid var(--azul-claro);
    outline-offset: 3px;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-claro) 100%);
    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-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.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(--verde);
    border-radius: 50%;
    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 img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== PRECIOS ========== */
.precios {
    background: var(--blanco);
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 700px;
    margin: 0 auto 40px;
}

.precio-card {
    background: var(--gris-claro);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transicion);
}

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

.precio-card .precio-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.precio-card .precio-icon svg {
    width: 34px;
    height: 34px;
    stroke: var(--blanco);
}

.precio-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--azul-oscuro);
    margin-bottom: 12px;
}

.precio-card .precio-antes {
    font-size: 1rem;
    color: var(--gris);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.precio-card .precio-ahora {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--verde);
}

.precio-card .precio-desc {
    font-size: 0.85rem;
    color: var(--gris);
    margin-top: 8px;
    line-height: 1.5;
}

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

/* ========== 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: 25px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transicion);
    box-shadow: var(--sombra);
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-hover);
}

.beneficio-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--azul-oscuro) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

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

.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;
}

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

.doctor-image img {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.doctor-info h2 {
    font-family: var(--font-heading);
    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 VIDEO ========== */
.testimonios-video {
    background: var(--blanco);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.video-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--transicion);
    background: var(--negro);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-hover);
}

.video-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

/* Vertical 9:16 (TikTok/Reels) */
.video-card .video-wrapper--vertical {
    padding-bottom: 177.78%;
}

/* Cuadrado 1:1 */
.video-card .video-wrapper--square {
    padding-bottom: 100%;
}

.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card .video-caption {
    padding: 14px 18px;
    background: var(--blanco);
}

.video-card .video-caption p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azul-oscuro);
}

.video-card .video-caption small {
    font-size: 0.8rem;
    color: var(--gris);
}

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

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

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

.faq-item {
    background: var(--blanco);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.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(26, 54, 93, 0.03);
}

.faq-question:focus-visible {
    outline: 3px solid var(--azul-claro);
    outline-offset: 3px;
}

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

.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;
}

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

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

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

.contacto-ubicacion svg {
    width: 20px;
    height: 20px;
    stroke: var(--verde);
    flex-shrink: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transicion);
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
}

.btn-whatsapp:focus-visible {
    outline: 3px solid var(--azul-claro);
    outline-offset: 3px;
}

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

/* ========== CIERRE / URGENCIA ========== */
.cierre {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, #004a7c 100%);
    color: var(--blanco);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cierre::before {
    content: '';
    position: absolute;
    inset: 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-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

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

.cupos-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 77, 77, 0.2);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    margin: 20px 0 30px;
    animation: pulse 2s infinite;
}

.cupos-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #ff4d4d;
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* ========== FORMULARIO ========== */
.formulario {
    background: var(--blanco);
    padding: 80px 0;
}

.formulario-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--gris-claro), var(--blanco));
    padding: 50px;
    border-radius: 24px;
    box-shadow: var(--sombra);
}

.formulario-container h2 {
    font-family: var(--font-heading);
    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: 2px solid #e1e5e9;
    border-radius: 12px;
    transition: var(--transicion);
    font-family: var(--font-main);
}

.form-group input:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
}

.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;
}

/* ========== WIDGET WHATSAPP NINJA ========== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: var(--font-main);
}

.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;
}

.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);
}

.whatsapp-header {
    background: #00762d;
    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;
}

.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: var(--negro);
    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;
}

.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;
}

.whatsapp-float-btn:focus-visible,
.whatsapp-option:focus-visible {
    outline: 3px solid var(--azul-claro);
    outline-offset: 3px;
}

/* ========== 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);
    }
}

@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);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

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

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

    .hero-image {
        max-width: 420px;
        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;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

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

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

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

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

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

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

    .precios-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

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

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

    .form-row {
        flex-direction: row !important;
        gap: 10px;
    }

    .formulario .btn-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        padding: 15px;
        white-space: nowrap;
    }

    .whatsapp-widget {
        bottom: 25px !important;
        right: 20px !important;
    }

    .whatsapp-box {
        bottom: 85px !important;
        width: 300px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .btn-cta {
        width: 100%;
        padding: 16px 20px;
    }

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

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

    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}