/* --- ESTILOS GENERALES Y FULL WIDTH FIX --- */
#dokter-landing-wrapper {
    font-family: 'Quicksand', sans-serif;
    color: #223d63ff;
    line-height: 1.6;
    background-color: #fbfbfbff;
    /* Truco forzado para full width */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 100vw;
    overflow-x: hidden;
}

:root {
    --dk-primary: #203157ff;
    --dk-accent: #2563eb;
    --dk-success: #10b981;
    --dk-bg-card: #ffffff;
    --dk-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --dk-shadow-hover: 0 20px 50px -12px rgba(37, 99, 235, 0.2);
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.dk-hidden { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.dk-visible { opacity: 1; transform: translateY(0); }
.dk-step-item:nth-child(2), .dk-card:nth-child(2) { transition-delay: 0.2s; }
.dk-step-item:nth-child(3), .dk-card:nth-child(3) { transition-delay: 0.4s; }

/* --- HERO SECTION --- */
.dk-hero { 
    position: relative; 
    padding: 100px 20px 40px; 
    background: linear-gradient(180deg, #e0f2fe 0%, #fcfcfcff 70%); 
    text-align: center; 
    border-bottom-left-radius: 60px; 
    border-bottom-right-radius: 60px; 
    /* El overflow: hidden fue eliminado para permitir que salgan los modales */
    z-index: 40; /* Capa superior para la sección hero */
}
.dk-hero::before { 
    content: ''; 
    position: absolute; 
    top: -50px; 
    left: -50px; 
    width: 300px; 
    height: 300px; 
    background: rgba(37, 99, 235, 0.05); 
    border-radius: 50%; 
    z-index: 0; 
}
.dk-title { font-size: 3.8rem; font-weight: 700; color: var(--dk-primary); margin-bottom: 20px; line-height: 1.1; position: relative; z-index: 1; opacity: 0; animation: fadeInUp 0.8s ease-out 0.2s forwards; }
.dk-title span { background: linear-gradient(-45deg, #2563eb, #06b6d4, #2563eb); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: gradientFlow 3s ease infinite; }
.dk-subtitle { font-size: 1.35rem; font-weight: 500; color: #64748b; max-width: 650px; margin: 0 auto 50px; position: relative; z-index: 1; opacity: 0; animation: fadeInUp 0.8s ease-out 0.4s forwards; }

/* --- CONTENEDOR DE BÚSQUEDA (MODALES) --- */
.dk-search-container {
    position: relative;
    z-index: 999999 !important; /* Forza a los modales a estar por encima de TODO */
}

/* --- HEADERS --- */
.dk-section-wrapper { text-align: center; max-width: 1000px; margin: 40px auto 20px; padding: 0 20px; }
.dk-section-header { font-size: 2.2rem; color: var(--dk-primary); font-weight: 700; margin-bottom: 10px; position: relative; display: inline-block; }
.dk-section-header::after { content: ''; display: block; width: 60px; height: 4px; background: var(--dk-accent); margin: 10px auto 0; border-radius: 2px; }

/* --- CÓMO FUNCIONA --- */
.dk-steps-container { display: flex; justify-content: center; gap: 40px; max-width: 1400px; width: 95%; margin: 40px auto; flex-wrap: wrap; padding: 0 20px; }
.dk-step-item { flex: 1; min-width: 280px; text-align: center; position: relative; padding: 30px 20px; background: white; border-radius: 20px; border: 1px solid #f1f5f9; transition: transform 0.3s, opacity 0.6s, transform 0.6s; z-index: 10; }
.dk-step-item:hover { transform: translateY(-5px); box-shadow: var(--dk-shadow); }
.dk-step-number { width: 50px; height: 50px; background: var(--dk-accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 20px; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); }
.dk-step-title { font-size: 1.2rem; font-weight: 700; color: var(--dk-primary); margin-bottom: 10px; }
.dk-step-desc { font-size: 0.95rem; color: #64748b; }

/* --- CARDS & GRID --- */
.dk-benefits { padding: 80px 20px; max-width: 1400px; width: 95%; margin: 0 auto; position: relative; z-index: 10; }
.dk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 60px; }
.dk-card { background: var(--dk-bg-card); padding: 40px 30px; border-radius: 24px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s, transform 0.6s; border: 1px solid #f1f5f9; position: relative; overflow: hidden; }
.dk-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--dk-shadow-hover); border-color: rgba(37, 99, 235, 0.3); }
.dk-icon-box { width: 65px; height: 65px; background: #eff6ff; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--dk-accent); transition: transform 0.3s ease; }
.dk-card:hover .dk-icon-box { transform: rotate(5deg) scale(1.1); background: var(--dk-accent); color: white; }
.dk-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; color: #000000; }
.dk-card p { color: #6D7885; font-size: 1.05rem; font-weight: 500; }
.dk-trust-badge { position: absolute; top: 20px; right: 20px; color: var(--dk-success); opacity: 0.1; font-size: 80px; line-height: 0; transition: opacity 0.3s ease; }
.dk-card:hover .dk-trust-badge { opacity: 0.2; }
.dk-calif { padding: 15px 160px; border-radius: 24px; position: relative; overflow: hidden; max-width: 1400px; width: 95%; margin: 0 auto; z-index: 10; }

/* --- FAQ --- */
.dk-faq-section { padding: 60px 20px; background: #ffffff; max-width: 1000px; margin: 0 auto; width: 95%; position: relative; z-index: 10; }
.dk-faq-container { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.dk-faq-item { border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; overflow: hidden; transition: opacity 0.6s, transform 0.6s; }
.dk-faq-item summary { padding: 20px; font-weight: 700; cursor: pointer; color: var(--dk-primary); position: relative; list-style: none; padding-right: 40px; }
.dk-faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--dk-accent); }
.dk-faq-item[open] summary::after { content: '-'; }
.dk-faq-content { padding: 0 20px 20px 20px; color: #64748b; font-size: 0.95rem; line-height: 1.6; }

/* --- NEWSLETTER --- */
.dk-newsletter { padding: 40px 20px; display: flex; justify-content: center; width: 100%; position: relative; z-index: 10; }
.dk-news-content { background: var(--dk-primary); border-radius: 24px; padding: 60px 40px; text-align: center; width: 100%; max-width: 1000px; color: white; }
.dk-news-content h3 { margin-bottom: 10px; font-size: 1.8rem; color: white; }
.dk-news-content p { opacity: 0.9; margin-bottom: 25px; color: #cbd5e1; }
.dk-news-form { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; flex-wrap: wrap; }
.dk-news-form input { flex: 1; padding: 12px 20px; border-radius: 50px; border: none; font-family: 'Quicksand', sans-serif; min-width: 200px; }
.dk-news-form button { background: var(--dk-accent); color: white; border: none; padding: 12px 30px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: background 0.3s; }
.dk-news-form button:hover { background: #1d4ed8; }
#dk-news-message { margin-top: 15px; font-size: 0.9rem; font-weight: 600; min-height: 20px; }

/* --- CTA FINAL --- */
.dk-cta-final { background: linear-gradient(180deg, var(--dk-accent) 0%, #282f45ff 100%); padding: 80px 20px; margin: 40px auto; max-width: 1400px; width: 95%; text-align: center; color: white; border-radius: 60px; position: relative; z-index: 10; }
.dk-cta-final h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; color: #ffffff; }
.dk-cta-final p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto 40px; }
.dk-btn-white { background: white; color: var(--dk-accent); padding: 15px 40px; border-radius: 50px; text-decoration: none; font-weight: 800; font-size: 1.1rem; transition: transform 0.3s; display: inline-block; }
.dk-btn-white:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* --- COOKIES --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #5c5959; color: #fff; padding: 12px 20px; font-size: 14px; display: none; justify-content: space-between; align-items: center; z-index: 10000; box-shadow: 0 -2px 6px rgba(0,0,0,0.3); flex-wrap: wrap; gap: 10px; }
.cookie-banner a { color: #4da6ff; text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons button { background: #4da6ff; border: none; padding: 6px 12px; border-radius: 4px; color: #fff; cursor: pointer; font-weight: 500; transition: background 0.3s; }
.cookie-buttons button:hover { background: #3385cc; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .dk-title { font-size: 2.8rem; }
    .dk-hero { padding-bottom: 80px; border-radius: 0 0 40px 40px; }
    .dk-calif { padding: 15px 10px !important; width: 100% !important; }
    .dk-search-container input[type="submit"], .dk-search-container button, .dk-search-container .btn { min-height: 50px !important; display: flex !important; align-items: center !important; justify-content: center !important; }
    .dk-steps-container { flex-direction: column; align-items: center; }
    .dk-step-item { width: 100%; max-width: 350px; }
    .cookie-banner { flex-direction: column; align-items: flex-start; text-align: left; } 
    .cookie-buttons { width: 100%; justify-content: flex-end; }
}