/*
Theme Name: Dentalist Arica Theme
Theme URI: https://www.dentalist.cl
Author: Cristian Gómez Vega by tuclientedigital.com
Description: Tema para Wordpress, landing Page, creado por CGV, para Dentalist Arica.
Version: 1.0
Text Domain: dentalist-theme
*/

/* --- PEGA AQUÍ EL CSS QUE HICIMOS ANTERIORMENTE --- */

:root {
    /* Colores Personalizados - Celeste Dentalist */
    --primary: #38bdf8;       /* Celeste vibrante */
    --primary-dark: #0284c7;  /* Celeste oscuro para hover */
    --secondary: #0f172a;     /* Azul oscuro/gris para textos */
    --bg-light: #f0f9ff;      /* Fondo muy suave celeste */
    --white: #ffffff;
    --text-gray: #475569;
    --success: #22c55e;
    --radius: 12px;
    --shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilidades */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; gap: 30px; }
.bold { font-weight: 700; }

/* Botones Generales */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.btn:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

.btn-wsp { background-color: #25D366; }
.btn-wsp:hover { background-color: #1ebc57; }

/* --- NAVBAR & HEADER --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; text-decoration: none; display: flex; align-items: center; gap: 8px;}
.nav-logo span { color: var(--secondary); }

/* --- MENÚ HAMBURGUESA --- */
.nav-toggle {
    display: none; /* Oculto en PC */
    flex-direction: column;
    gap: 5px;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 99px;
    transition: 0.3s;
}

/* Overlay oscuro */
.overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); z-index: 1001; opacity: 0; pointer-events: none; transition: .3s; backdrop-filter: blur(2px);
}
.overlay.active { opacity: 1; pointer-events: all; }

/* Panel Lateral Móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 1002;
    border-left: 1px solid rgba(0,0,0,0.05);
    padding: 80px 24px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu.active { right: 0; }

.menu-link { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--secondary); 
    text-decoration: none;
    border-bottom: 1px solid var(--bg-light); 
    padding-bottom: 12px; 
}
.menu-link:hover { color: var(--primary); padding-left: 5px; }

.menu-contact-box {
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}
.menu-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
}
.menu-contact-link svg { width: 24px; height: 24px; fill: #25D366; }

/* --- HERO SECTION --- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}
.hero-text h1 {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--secondary);
}
.hero-text h1 span { color: var(--primary); }
.hero-text p { font-size: 18px; color: var(--text-gray); margin-bottom: 30px; max-width: 450px; }

.price-badge {
    display: inline-block;
    background: #e0f2fe;
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--primary);
}

.hero-img { position: relative; }
.hero-img img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.floating-review {
    position: absolute;
    bottom: 30px; left: -20px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* Beneficios */
.features { padding: 80px 0; background: var(--white); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature-card {
    padding: 30px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.icon-box {
    width: 50px; height: 50px;
    background: var(--bg-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Oferta */
.offer-section {
    background: var(--secondary);
    color: white;
    padding: 80px 0;
    border-radius: 0;
    position: relative;
}
.offer-box {
    background: white;
    color: var(--secondary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 4px solid var(--primary);
}
.price-big { font-size: 48px; font-weight: 800; color: var(--primary); margin: 10px 0; }
.price-sub { font-size: 18px; color: var(--text-gray); text-decoration: line-through; }

/* Testimonios */
.reviews { padding: 80px 0; background: var(--bg-light); }
.review-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review-card { background: white; padding: 25px; border-radius: var(--radius); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.stars { color: #fbbf24; margin-bottom: 10px; }

/* FAQ */
.faq { padding: 80px 0; }
.accordion { max-width: 700px; margin: 0 auto; }
.acc-item { border-bottom: 1px solid #e2e8f0; }
.acc-btn {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.acc-content { max-height: 0; overflow: hidden; transition: 0.3s; color: var(--text-gray); }
.acc-content p { padding-bottom: 20px; }

/* Footer */
footer { background: var(--secondary); color: #94a3b8; padding: 60px 0 30px; }
.footer-content { text-align: center; }
.copyright { margin-top: 40px; font-size: 14px; border-top: 1px solid #334155; padding-top: 20px; }

/* --- BOTÓN WHATSAPP FLOTANTE --- */
.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 95;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); background-color: #20bd5a; }
.wa-float svg { width: 32px; height: 32px; fill: white; }
@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); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 36px; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-img { margin-top: 30px; }
    
    /* Menú móvil logic */
    .nav-btn-desktop { display: none !important; }
    .nav-toggle { display: flex; } /* Mostrar hamburguesa */
    
    .floating-review { left: 50%; transform: translateX(-50%); width: max-content; bottom: -20px; }
    @keyframes float { 0% { transform: translate(-50%, 0px); } 50% { transform: translate(-50%, -10px); } 100% { transform: translate(-50%, 0px); } }
}