/* =============================================
   LABORATORIO DENTAL MAX — style.css
   Premium Design System v2.0
   ============================================= */

/* --- Variables --- */
:root {
    --teal:        #008080;
    --teal-light:  #20b2aa;
    --teal-dark:   #005555;
    --teal-deeper: #003d3d;
    --teal-muted:  #e6f5f5;
    --gold:        #d4af37;
    --gold-light:  #f0c040;
    --white:       #ffffff;
    --off-white:   #f4f8f8;
    --text:        #1a2e2e;
    --text-mid:    #4a6060;
    --text-light:  #7a9090;
    --border:      rgba(0,128,128,0.12);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;

    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --trans:     0.3s var(--ease);
    --trans-slow:0.7s var(--ease);

    --shadow-sm:  0 4px 12px rgba(0,128,128,0.08);
    --shadow-md:  0 10px 30px rgba(0,128,128,0.12);
    --shadow-lg:  0 20px 50px rgba(0,128,128,0.18);

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  36px;
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--off-white);
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration:none; color:inherit; transition: var(--trans); }
ul { list-style:none; }
img { max-width:100%; height:auto; display:block; }
h1,h2,h3,h4 { font-family:var(--font-head); line-height:1.15; }

/* --- Utility --- */
.container {
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 24px;
}
.section { padding:100px 0; }
.mt-2 { margin-top: 28px; }
.text-accent { color:var(--teal); }

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
    position:fixed; inset:0;
    background: var(--teal-deeper);
    display:flex; align-items:center; justify-content:center;
    z-index:9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity:0; visibility:hidden; pointer-events:none; }

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

.preloader-tooth {
    font-size:3.5rem;
    color: var(--white);
    animation: floatTooth 1.2s ease-in-out infinite alternate;
    margin-bottom:20px;
}
@keyframes floatTooth {
    from { transform:translateY(0) scale(1); }
    to   { transform:translateY(-12px) scale(1.1); }
}

.preloader-name {
    font-family: var(--font-head);
    font-size:1.3rem;
    font-weight:700;
    letter-spacing:3px;
    color:rgba(255,255,255,0.85);
    text-transform:uppercase;
    margin-bottom:24px;
}
.preloader-name span { color:var(--teal-light); }

.preloader-bar {
    width:200px;
    height:3px;
    background:rgba(255,255,255,0.15);
    border-radius:999px;
    margin:0 auto;
    overflow:hidden;
}
.preloader-progress {
    height:100%;
    width:0;
    background:var(--teal-light);
    border-radius:999px;
    animation: loadBar 1.8s var(--ease) forwards;
}
@keyframes loadBar {
    to { width:100%; }
}

/* =============================================
   WHATSAPP FAB
   ============================================= */
.whatsapp-fab {
    position:fixed;
    bottom:30px;
    right:30px;
    z-index:1000;
    width:58px;
    height:58px;
    background:#25d366;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.7rem;
    box-shadow:0 6px 20px rgba(37,211,102,0.45);
    transition: var(--trans);
    animation: fabPulse 2s ease-in-out infinite;
}
.whatsapp-fab:hover {
    transform:scale(1.12);
    box-shadow:0 10px 30px rgba(37,211,102,0.55);
    animation:none;
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.45); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.12); }
}
.fab-tooltip {
    position:absolute;
    right:68px;
    background:var(--text);
    color:white;
    font-family:var(--font-head);
    font-size:0.8rem;
    padding:6px 12px;
    border-radius:8px;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:var(--trans);
}
.fab-tooltip::after {
    content:'';
    position:absolute;
    right:-6px; top:50%;
    transform:translateY(-50%);
    border:6px solid transparent;
    border-right:none;
    border-left-color:var(--text);
}
.whatsapp-fab:hover .fab-tooltip { opacity:1; }

/* =============================================
   HEADER
   ============================================= */
.header {
    position:fixed; top:0; left:0; width:100%;
    z-index:500;
    padding:14px 0;
    background:rgba(255,255,255,0.97);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
    transition: var(--trans);
}
.header.scrolled {
    padding:10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.header-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

/* Logo */
.logo {
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}
.logo i {
    font-size:1.8rem;
    color:var(--teal);
}
.logo-main {
    font-family:var(--font-head);
    font-size:1.25rem;
    font-weight:700;
    color:var(--teal-dark);
    display:block;
}
.logo-main em {
    font-style:normal;
    color:var(--teal);
}
.footer-logo .logo-main { color:rgba(255,255,255,0.9); }
.footer-logo .logo-main em { color:var(--teal-light); }
.footer-logo i { color:var(--teal-light); }

/* Nav */
.nav { flex:1; display:flex; justify-content:center; }
.nav-links {
    display:flex;
    gap:8px;
}
.nav-link {
    font-family:var(--font-head);
    font-weight:500;
    font-size:0.95rem;
    color:var(--text-mid);
    padding:6px 14px;
    border-radius:999px;
    transition:var(--trans);
}
.nav-link:hover, .nav-link.active {
    color:var(--teal);
    background:rgba(0,128,128,0.07);
}

/* Header CTA */
.header-cta { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.nav-phone {
    font-size:0.9rem;
    padding:8px 18px;
}

/* Mobile toggle */
.mobile-toggle {
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:4px;
}
.mobile-toggle span {
    display:block;
    width:24px;
    height:2px;
    background:var(--teal-dark);
    border-radius:2px;
    transition:var(--trans);
}
.mobile-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity:0; }
.mobile-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:13px 28px;
    border-radius:999px;
    font-family:var(--font-head);
    font-weight:600;
    font-size:0.95rem;
    cursor:pointer;
    border:none;
    transition:var(--trans);
    white-space:nowrap;
}
.btn-lg { padding:16px 36px; font-size:1.05rem; }

.btn-primary {
    background:var(--teal);
    color:white;
    box-shadow:0 8px 20px rgba(0,128,128,0.25);
}
.btn-primary:hover {
    background:var(--teal-dark);
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(0,128,128,0.35);
}

.btn-whatsapp {
    background:#25d366;
    color:white;
    box-shadow:0 8px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
    background:#1ebe5b;
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(37,211,102,0.4);
}

.btn-ghost {
    background:rgba(255,255,255,0.15);
    color:var(--teal-dark);
    backdrop-filter:blur(6px);
    border:2px solid rgba(0,128,128,0.25);
}
.btn-ghost:hover {
    background:rgba(0,128,128,0.08);
    border-color:var(--teal);
    transform:translateY(-2px);
}

.btn-outline {
    background:transparent;
    color:var(--teal);
    border:2px solid var(--teal);
}
.btn-outline:hover {
    background:var(--teal);
    color:white;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    padding-top:80px;
    overflow:hidden;
}
.hero-bg {
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    z-index:0;
}
.hero-overlay {
    position:absolute;
    inset:0;
    background: linear-gradient(
        115deg,
        rgba(255,255,255,0.97) 0%,
        rgba(240,248,248,0.93) 40%,
        rgba(0,85,85,0.45) 100%
    );
    z-index:1;
}
.hero-content {
    position:relative;
    z-index:2;
    max-width:640px;
}

/* Hero floating elements */
.hero-float {
    position:absolute;
    z-index:1;
    color:rgba(0,128,128,0.06);
    font-size:4rem;
    animation: heroFloat 6s ease-in-out infinite alternate;
}
.hero-float-1 { top:15%; right:10%; font-size:5rem; animation-delay:0s; }
.hero-float-2 { bottom:25%; right:20%; font-size:3.5rem; animation-delay:1s; }
.hero-float-3 { top:30%; right:35%; font-size:2.5rem; animation-delay:2s; }
@keyframes heroFloat {
    0% { transform:translateY(0) rotate(0deg); }
    100% { transform:translateY(-20px) rotate(10deg); }
}

.hero-tag {
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(0,128,128,0.1);
    border:1px solid rgba(0,128,128,0.2);
    color:var(--teal-dark);
    padding:6px 16px;
    border-radius:999px;
    font-size:0.85rem;
    font-weight:500;
    margin-bottom:24px;
    font-family:var(--font-head);
}
.hero-tag i { color:var(--teal); }

.hero-welcome {
    display:block;
    font-family:var(--font-accent);
    font-size:clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight:400;
    color:var(--teal);
    font-style:italic;
    margin-bottom:4px;
    letter-spacing:0.5px;
}

.hero-title {
    font-size:clamp(2.8rem, 5.5vw, 5rem);
    font-weight:900;
    color:var(--teal-deeper);
    line-height:1.05;
    margin-bottom:20px;
}
.hero-title .text-accent { color:var(--teal); }

.hero-subtitle {
    font-size:1.15rem;
    color:var(--text-mid);
    margin-bottom:36px;
    max-width:500px;
    font-weight:300;
}
.hero-subtitle strong { color:var(--teal-dark); font-weight:600; }

.hero-actions { display:flex; flex-wrap:wrap; gap:14px; }

/* Hero service pills */
.hero-pills {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:32px;
}
.hero-pill {
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:rgba(0,128,128,0.07);
    border:1px solid rgba(0,128,128,0.15);
    color:var(--teal-dark);
    font-family:var(--font-head);
    font-size:0.78rem;
    font-weight:500;
    padding:5px 14px;
    border-radius:999px;
    transition:var(--trans);
}
.hero-pill:hover {
    background:rgba(0,128,128,0.13);
    transform:translateY(-2px);
}
.hero-pill i {
    color:var(--teal);
    font-size:0.7rem;
}

/* Scroll indicator */
.hero-scroll {
    position:absolute;
    bottom:30px;
    left:50%;
    transform:translateX(-50%);
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    color:var(--text-light);
    font-size:0.75rem;
    letter-spacing:2px;
    text-transform:uppercase;
    font-family:var(--font-head);
}
.scroll-indicator {
    width:22px;
    height:36px;
    border:2px solid rgba(0,128,128,0.3);
    border-radius:999px;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:5px;
}
.scroll-dot {
    width:5px;
    height:5px;
    background:var(--teal);
    border-radius:50%;
    animation: scrollBounce 1.5s ease infinite;
}
@keyframes scrollBounce {
    0%,100%{ transform:translateY(0); opacity:1; }
    50%{ transform:translateY(12px); opacity:0.4; }
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-deeper) 100%);
    padding:28px 0;
    position:relative;
}
.stats-bar::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.02'%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");
}
.stats-inner {
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:0;
    position:relative;
    z-index:1;
}
.stat-item {
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px 40px;
}
.stat-divider {
    width:1px;
    height:50px;
    background:rgba(255,255,255,0.15);
}
.stat-icon {
    width:48px;
    height:48px;
    background:rgba(255,255,255,0.1);
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.3rem;
    color:var(--teal-light);
    flex-shrink:0;
}
.stat-num {
    font-family:var(--font-head);
    font-size:2rem;
    font-weight:800;
    color:white;
    line-height:1;
}
.stat-label {
    font-size:0.8rem;
    color:rgba(255,255,255,0.65);
    margin-top:2px;
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-header {
    text-align:center;
    margin-bottom:64px;
}
.section-tag {
    display:inline-block;
    background:rgba(0,128,128,0.1);
    color:var(--teal);
    font-family:var(--font-head);
    font-size:0.8rem;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    padding:5px 16px;
    border-radius:999px;
    margin-bottom:14px;
}
.section-header h2, .about-content h2 {
    font-size:clamp(2rem, 4vw, 2.8rem);
    color:var(--teal-deeper);
    margin-bottom:12px;
}
.section-header h2 span, .about-content h2 span {
    color:var(--teal);
}
.section-header p {
    font-size:1.05rem;
    color:var(--text-light);
    max-width:550px;
    margin:0 auto;
}

/* =============================================
   VALUES SECTION (NEW)
   ============================================= */
.values-section {
    background:white;
    position:relative;
    overflow:hidden;
}
.values-section::before {
    content:'';
    position:absolute;
    top:-80px;
    right:-80px;
    width:300px;
    height:300px;
    background:radial-gradient(circle, rgba(0,128,128,0.05) 0%, transparent 70%);
    border-radius:50%;
}
.values-section::after {
    content:'';
    position:absolute;
    bottom:-60px;
    left:-60px;
    width:250px;
    height:250px;
    background:radial-gradient(circle, rgba(0,128,128,0.04) 0%, transparent 70%);
    border-radius:50%;
}

.values-grid {
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:24px;
    position:relative;
    z-index:1;
}

.value-card {
    text-align:center;
    padding:36px 20px;
    border-radius:var(--radius-lg);
    background:var(--off-white);
    border:1px solid var(--border);
    transition:var(--trans);
    position:relative;
    overflow:hidden;
}
.value-card::before {
    content:'';
    position:absolute;
    bottom:0; left:0; right:0;
    height:3px;
    background:linear-gradient(90deg, var(--teal), var(--teal-light));
    transform:scaleX(0);
    transition:transform 0.4s var(--ease);
}
.value-card:hover {
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-color:rgba(0,128,128,0.2);
}
.value-card:hover::before {
    transform:scaleX(1);
}

.value-icon-wrap {
    position:relative;
    width:72px;
    height:72px;
    margin:0 auto 20px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.value-icon-wrap i {
    font-size:1.8rem;
    color:var(--teal);
    z-index:1;
    position:relative;
    transition:var(--trans);
}
.value-card:hover .value-icon-wrap i {
    color:white;
    transform:scale(1.1);
}
.value-icon-ring {
    position:absolute;
    inset:0;
    border-radius:50%;
    border:2px solid rgba(0,128,128,0.2);
    background:rgba(0,128,128,0.08);
    transition:var(--trans);
}
.value-card:hover .value-icon-ring {
    background:var(--teal);
    border-color:var(--teal);
    transform:scale(1.05);
}

.value-card h3 {
    font-size:1.05rem;
    color:var(--teal-deeper);
    margin-bottom:10px;
    font-weight:700;
}
.value-card h3 em {
    font-style:italic;
    font-family:var(--font-accent);
    color:var(--teal);
    font-weight:400;
}
.value-card p {
    font-size:0.85rem;
    color:var(--text-mid);
    line-height:1.5;
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services-section { background:var(--off-white); }

.services-grid {
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap:28px;
}

.service-card {
    background:white;
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:var(--trans);
    border:1px solid var(--border);
    position:relative;
}
.service-card:hover {
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-color:rgba(0,128,128,0.2);
}

.service-card-img {
    height:200px;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
}
.service-card-img::after {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent 50%, rgba(0,60,60,0.15) 100%);
    transition:var(--trans);
}
.service-card:hover .service-card-img::after {
    background:linear-gradient(180deg, transparent 30%, rgba(0,60,60,0.3) 100%);
}

/* Gradient variants */
.service-img-gradient-1 {
    background:linear-gradient(135deg, #006666 0%, #20b2aa 100%);
    color:rgba(255,255,255,0.8);
}
.service-img-gradient-2 {
    background:linear-gradient(135deg, #1b4965 0%, #007a7a 100%);
    color:rgba(255,255,255,0.8);
}
.service-img-gradient-3 {
    background:linear-gradient(135deg, #004d4d 0%, #0d9488 100%);
    color:rgba(255,255,255,0.8);
}
.service-img-gradient-4 {
    background:linear-gradient(135deg, #003d3d 0%, #008080 100%);
    color:rgba(255,255,255,0.8);
}
.service-img-gold {
    background:linear-gradient(135deg, #92700a 0%, #d4af37 60%, #f0c040 100%);
    color:rgba(255,255,255,0.9);
}

.service-card-body { padding:24px 26px; display:flex; flex-direction:column; }

.service-card-cta { margin-top:20px; }
.btn-sm { padding:9px 18px; font-size:0.8rem; }

.service-icon-wrap {
    width:44px;
    height:44px;
    background:rgba(0,128,128,0.1);
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.1rem;
    color:var(--teal);
    margin-bottom:14px;
    transition:var(--trans);
}
.service-card:hover .service-icon-wrap {
    background:var(--teal);
    color:white;
    transform:scale(1.05);
}
.service-icon-wrap.gold { background:rgba(212,175,55,0.12); color:var(--gold); }
.service-card:hover .service-icon-wrap.gold {
    background:var(--gold);
    color:white;
}

.service-card h3 {
    font-size:1.25rem;
    color:var(--teal-deeper);
    margin-bottom:10px;
}
.service-card p {
    color:var(--text-mid);
    font-size:0.9rem;
    margin-bottom:16px;
}
.feature-list { display:flex; flex-direction:column; gap:6px; }
.feature-list li {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:0.88rem;
    color:var(--text);
    font-weight:500;
}
.feature-list li i { color:var(--teal); font-size:0.85rem; }

/* Featured card */
.service-card-featured {
    border:2px solid var(--gold);
    box-shadow:0 8px 24px rgba(212,175,55,0.15);
}
.service-card-featured:hover {
    box-shadow:0 16px 40px rgba(212,175,55,0.25);
}
.featured-badge {
    position:absolute;
    top:14px;
    right:14px;
    background:var(--gold);
    color:white;
    font-family:var(--font-head);
    font-size:0.75rem;
    font-weight:700;
    padding:4px 12px;
    border-radius:999px;
    z-index:2;
}
.service-card-featured .service-icon-wrap { background:rgba(212,175,55,0.12); color:var(--gold); }
.service-card-featured h3 { color:var(--gold); }
.service-card-featured .feature-list li i { color:var(--gold); }

/* =============================================
   PROCESS SECTION (NEW)
   ============================================= */
.process-section {
    background:linear-gradient(180deg, var(--off-white) 0%, white 100%);
}

.process-timeline {
    max-width:700px;
    margin:0 auto;
    position:relative;
}

.process-step {
    display:flex;
    align-items:center;
    gap:24px;
    padding:28px;
    background:white;
    border-radius:var(--radius-lg);
    border:1px solid var(--border);
    box-shadow:var(--shadow-sm);
    transition:var(--trans);
    position:relative;
}
.process-step:hover {
    transform:translateX(6px);
    box-shadow:var(--shadow-md);
    border-color:rgba(0,128,128,0.2);
}

.process-number {
    font-family:var(--font-head);
    font-size:2rem;
    font-weight:900;
    color:var(--teal);
    opacity:0.2;
    flex-shrink:0;
    min-width:50px;
    transition:var(--trans);
}
.process-step:hover .process-number {
    opacity:0.5;
}

.process-content { flex:1; }
.process-content h3 {
    font-size:1.1rem;
    color:var(--teal-deeper);
    margin-bottom:6px;
}
.process-content p {
    font-size:0.9rem;
    color:var(--text-mid);
    line-height:1.5;
}

.process-icon {
    width:48px;
    height:48px;
    background:rgba(0,128,128,0.08);
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    color:var(--teal);
    flex-shrink:0;
    transition:var(--trans);
}
.process-step:hover .process-icon {
    background:var(--teal);
    color:white;
    transform:scale(1.08);
}

.process-connector {
    width:2px;
    height:28px;
    background:linear-gradient(180deg, var(--teal-light), rgba(0,128,128,0.1));
    margin:0 auto;
    border-radius:999px;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section { background:white; }

.about-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:64px;
    align-items:center;
}

.about-image-wrap { position:relative; }
.about-img {
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    border-radius:var(--radius-xl);
    box-shadow:var(--shadow-lg);
}
.about-img-overlay {
    position:absolute;
    inset:0;
    border-radius:var(--radius-xl);
    background:linear-gradient(180deg, transparent 60%, rgba(0,60,60,0.25) 100%);
    pointer-events:none;
}
.about-badge {
    position:absolute;
    bottom:-24px;
    left:30px;
    background:var(--teal);
    color:white;
    border-radius:var(--radius-md);
    padding:16px 22px;
    display:flex;
    align-items:center;
    gap:12px;
    box-shadow:0 10px 28px rgba(0,128,128,0.35);
}
.about-badge i { font-size:1.8rem; color:var(--gold-light); }
.about-badge strong { display:block; font-family:var(--font-head); font-size:1.05rem; }
.about-badge span { font-size:0.8rem; opacity:0.8; }

.about-content { padding-left:8px; }
.about-content h2 { margin-bottom:14px; margin-top:10px; }
.about-lead {
    font-size:1.1rem;
    color:var(--teal);
    margin-bottom:16px;
    font-weight:500;
}
.about-content > p { color:var(--text-mid); margin-bottom:10px; }

/* About highlights (NEW) */
.about-highlights {
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:24px 0;
    padding:20px;
    background:var(--off-white);
    border-radius:var(--radius-md);
    border-left:3px solid var(--teal);
}
.about-highlight {
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:0.9rem;
    color:var(--text);
    font-weight:500;
}
.about-highlight i {
    color:var(--teal);
    font-size:0.85rem;
    margin-top:3px;
    flex-shrink:0;
}

.team-cards { display:flex; flex-direction:column; gap:14px; margin-top:32px; }

.team-card {
    display:flex;
    align-items:center;
    gap:16px;
    background:var(--off-white);
    border-radius:var(--radius-md);
    padding:16px 20px;
    border:1px solid var(--border);
    transition:var(--trans);
}
.team-card:hover {
    background:rgba(0,128,128,0.05);
    border-color:rgba(0,128,128,0.2);
    transform:translateX(4px);
}
.team-avatar {
    width:52px;
    height:52px;
    background:var(--teal);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.3rem;
    color:white;
    flex-shrink:0;
}
.team-info { flex:1; }
.team-info h4 { font-size:1.05rem; color:var(--teal-deeper); font-family:var(--font-head); }
.team-info span { font-size:0.85rem; color:var(--teal); font-weight:500; }
.team-badge i { font-size:1.3rem; color:var(--gold); }

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section { background:var(--off-white); }

.gallery-grid {
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr;
    grid-template-rows:auto auto;
    gap:16px;
}
.gallery-item {
    position:relative;
    border-radius:var(--radius-lg);
    overflow:hidden;
    aspect-ratio:4/3;
    cursor:pointer;
}
.gallery-large { grid-row:span 2; aspect-ratio:auto; }
.gallery-item img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform 0.5s var(--ease);
}
.gallery-item:hover img { transform:scale(1.06); }
.gallery-overlay {
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, transparent 40%, rgba(0,60,60,0.7) 100%);
    display:flex;
    align-items:flex-end;
    padding:20px;
    opacity:0;
    transition:var(--trans);
}
.gallery-item:hover .gallery-overlay { opacity:1; }
.gallery-label {
    font-family:var(--font-head);
    font-weight:700;
    color:white;
    font-size:1rem;
}
.gallery-note {
    text-align:center;
    margin-top:28px;
    color:var(--text-light);
    font-size:0.9rem;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.gallery-note i { color:var(--teal); }

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials-section {
    background:white;
    position:relative;
    overflow:hidden;
}
.testimonials-section::before {
    content:'';
    position:absolute;
    top:-100px; right:-100px;
    width:320px; height:320px;
    background:radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    border-radius:50%;
}

.testimonials-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:28px;
    position:relative;
    z-index:1;
}

.testimonial-card {
    background:var(--off-white);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:32px 30px;
    display:flex;
    flex-direction:column;
    transition:var(--trans);
}
.testimonial-card:hover {
    transform:translateY(-6px);
    box-shadow:var(--shadow-md);
    border-color:rgba(0,128,128,0.2);
}

.testimonial-quote-icon {
    width:44px; height:44px;
    border-radius:50%;
    background:var(--teal-muted);
    color:var(--teal);
    display:flex; align-items:center; justify-content:center;
    font-size:1.05rem;
    margin-bottom:18px;
}

.testimonial-stars {
    color:var(--gold);
    font-size:0.82rem;
    letter-spacing:2px;
    margin-bottom:14px;
}

.testimonial-text {
    color:var(--text-mid);
    font-size:0.95rem;
    line-height:1.7;
    flex-grow:1;
    margin-bottom:24px;
}

.testimonial-author {
    display:flex;
    align-items:center;
    gap:14px;
    padding-top:20px;
    border-top:1px solid var(--border);
}
.testimonial-avatar {
    width:46px; height:46px;
    border-radius:50%;
    background:linear-gradient(135deg, var(--teal), var(--teal-dark));
    color:white;
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-head);
    font-weight:700;
    font-size:0.95rem;
    flex-shrink:0;
}
.testimonial-author-info strong {
    display:block;
    color:var(--teal-deeper);
    font-size:0.92rem;
    font-weight:700;
}
.testimonial-author-info span {
    display:block;
    color:var(--text-light);
    font-size:0.8rem;
    margin-top:2px;
}

.testimonials-note {
    text-align:center;
    margin-top:32px;
    color:var(--text-light);
    font-size:0.85rem;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.testimonials-note i { color:var(--teal); }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
    background:linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    padding:64px 0;
    position:relative;
    overflow:hidden;
}
.cta-banner::before {
    content:'';
    position:absolute;
    top:-40%; right:-10%;
    width:400px;
    height:400px;
    background:radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius:50%;
}
.cta-inner {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
    flex-wrap:wrap;
    position:relative;
    z-index:1;
}
.cta-text h2 {
    font-size:clamp(1.6rem, 3vw, 2.3rem);
    color:white;
    margin-bottom:8px;
}
.cta-text h2 span { color:var(--gold-light); }
.cta-text p { color:rgba(255,255,255,0.75); font-size:1rem; }
.cta-actions { display:flex; gap:16px; flex-wrap:wrap; }

/* =============================================
   SÍGUENOS EN REDES SOCIALES
   ============================================= */
.social-follow-section { background:var(--off-white); }
.social-follow-grid {
    display:flex;
    justify-content:center;
    gap:24px;
    flex-wrap:wrap;
}
.social-follow-card {
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px 30px;
    border-radius:var(--radius-lg);
    background:white;
    border:1px solid var(--border);
    box-shadow:var(--shadow-md);
    color:var(--teal-deeper);
    font-family:var(--font-head);
    font-weight:700;
    font-size:1.05rem;
    transition:var(--trans);
}
.social-follow-card i {
    width:48px; height:48px;
    border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1.4rem;
    color:white;
    flex-shrink:0;
}
.social-follow-card:hover {
    transform:translateY(-4px);
    box-shadow:var(--shadow-lg);
}
.sf-facebook i { background:#1877F2; }
.sf-instagram i { background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.sf-tiktok i { background:#000000; }

@media (max-width: 480px) {
    .social-follow-card { padding:14px 20px; font-size:0.95rem; }
    .social-follow-card i { width:40px; height:40px; font-size:1.2rem; }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background:var(--teal-deeper);
    color:white;
    padding:80px 0 0;
    position:relative;
}
.footer-waves {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    overflow:hidden;
    line-height:0;
}
.footer-waves svg {
    display:block;
    width:100%;
    height:80px;
}
.footer-inner { padding-top:40px; }

.footer-grid {
    display:grid;
    grid-template-columns:1.5fr 1fr 1.2fr;
    gap:48px;
    padding-bottom:56px;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    color:rgba(255,255,255,0.6);
    font-size:0.9rem;
    margin-top:14px;
    line-height:1.7;
    max-width:300px;
}
.footer-socials { display:flex; gap:10px; margin-top:20px; }
.social-icon {
    width:40px;
    height:40px;
    background:rgba(255,255,255,0.08);
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.1rem;
    color:rgba(255,255,255,0.7);
    transition:var(--trans);
}
.social-icon:hover { background:rgba(255,255,255,0.18); color:white; }
.social-wa:hover { background:#25d366; }
.social-icon[aria-label="Facebook"]:hover { background:#1877F2; }
.social-icon[aria-label="Instagram"]:hover { background:radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon[aria-label="TikTok"]:hover { background:#000000; }

.footer-col-title {
    font-family:var(--font-head);
    font-size:1.1rem;
    font-weight:700;
    color:white;
    margin-bottom:20px;
    position:relative;
    padding-bottom:12px;
}
.footer-col-title::after {
    content:'';
    position:absolute;
    bottom:0; left:0;
    width:30px; height:2px;
    background:var(--teal-light);
    border-radius:999px;
}
.footer-list { display:flex; flex-direction:column; gap:10px; }
.footer-list li {
    display:flex;
    align-items:center;
    gap:8px;
    color:rgba(255,255,255,0.65);
    font-size:0.88rem;
    transition:var(--trans);
}
.footer-list li:hover { color:var(--teal-light); padding-left:4px; }
.footer-list li i { color:var(--teal-light); font-size:0.8rem; }

.footer-contact-list { display:flex; flex-direction:column; gap:18px; }
.footer-contact-list li { display:flex; align-items:flex-start; gap:14px; }
.fc-icon {
    width:38px;
    height:38px;
    background:rgba(32,178,170,0.15);
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1rem;
    color:var(--teal-light);
    flex-shrink:0;
    margin-top:2px;
}
.footer-contact-list strong {
    display:block;
    font-family:var(--font-head);
    font-size:0.85rem;
    color:white;
    margin-bottom:3px;
}
.footer-contact-list span, .footer-contact-list a {
    color:rgba(255,255,255,0.6);
    font-size:0.85rem;
    line-height:1.5;
}
.footer-contact-list a:hover { color:var(--teal-light); }

.footer-bottom {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
    flex-wrap:wrap;
    gap:8px;
}
.footer-bottom p { color:rgba(255,255,255,0.4); font-size:0.82rem; }
.footer-techs { color:rgba(255,255,255,0.5) !important; }

/* =============================================
   SCROLL REVEAL ANIMATION
   ============================================= */
.reveal {
    opacity:0;
    transform:translateY(28px);
    transition:opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.active {
    opacity:1;
    transform:translateY(0);
}
/* Stagger children in grids */
.services-grid .reveal:nth-child(1) { transition-delay:0.05s; }
.services-grid .reveal:nth-child(2) { transition-delay:0.12s; }
.services-grid .reveal:nth-child(3) { transition-delay:0.19s; }
.services-grid .reveal:nth-child(4) { transition-delay:0.26s; }
.services-grid .reveal:nth-child(5) { transition-delay:0.33s; }
.services-grid .reveal:nth-child(6) { transition-delay:0.40s; }
.services-grid .reveal:nth-child(7) { transition-delay:0.47s; }
.stats-inner .reveal:nth-child(1) { transition-delay:0.0s; }
.stats-inner .reveal:nth-child(2) { transition-delay:0.1s; }
.stats-inner .reveal:nth-child(3) { transition-delay:0.2s; }
.stats-inner .reveal:nth-child(4) { transition-delay:0.3s; }
.values-grid .reveal:nth-child(1) { transition-delay:0.0s; }
.values-grid .reveal:nth-child(2) { transition-delay:0.1s; }
.values-grid .reveal:nth-child(3) { transition-delay:0.2s; }
.values-grid .reveal:nth-child(4) { transition-delay:0.3s; }
.values-grid .reveal:nth-child(5) { transition-delay:0.4s; }

/* Process steps stagger */
.process-timeline .process-step.reveal:nth-child(1) { transition-delay:0.0s; }
.process-timeline .process-step.reveal:nth-child(3) { transition-delay:0.15s; }
.process-timeline .process-step.reveal:nth-child(5) { transition-delay:0.3s; }
.process-timeline .process-step.reveal:nth-child(7) { transition-delay:0.45s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .about-grid { gap:40px; }
    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-brand { grid-column:1/-1; }
    .values-grid { grid-template-columns:repeat(3, 1fr); }
}

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

    /* Header */
    .nav {
        position:fixed;
        top:0; left:-100%;
        width:80%; max-width:320px;
        height:100vh;
        background:white;
        flex-direction:column;
        align-items:flex-start;
        padding:90px 24px 40px;
        box-shadow:8px 0 30px rgba(0,0,0,0.12);
        transition:left 0.35s var(--ease);
        z-index:400;
    }
    .nav.open { left:0; }
    .nav-links { flex-direction:column; gap:4px; width:100%; }
    .nav-link { font-size:1.1rem; padding:12px 16px; border-radius:var(--radius-sm); }
    .mobile-toggle { display:flex; }
    .nav-phone { display:none; }

    /* Hero */
    .hero-title { font-size:2.8rem; }
    .hero-actions { flex-direction:column; align-items:flex-start; }
    .hero-float { display:none; }
    .hero-pills { gap:6px; }
    .hero-pill { font-size:0.72rem; padding:4px 10px; }

    /* Stats */
    .stats-inner { flex-direction:column; gap:0; }
    .stat-item { padding:14px 24px; width:100%; justify-content:center; }
    .stat-divider { width:80%; height:1px; }

    /* Values */
    .values-grid { grid-template-columns:repeat(2, 1fr); }

    /* Services */
    .services-grid { grid-template-columns:1fr; }

    /* Process */
    .process-step { padding:20px; }

    /* About */
    .about-grid { grid-template-columns:1fr; gap:48px; }
    .about-badge { bottom:-20px; }

    /* Gallery */
    .gallery-grid { grid-template-columns:1fr 1fr; }
    .gallery-large { grid-column:span 2; grid-row:span 1; aspect-ratio:16/9; }

    /* CTA */
    .cta-inner { flex-direction:column; text-align:center; }

    /* Footer */
    .footer-grid { grid-template-columns:1fr; gap:36px; }
    .footer-bottom { flex-direction:column; text-align:center; }
}

@media (max-width: 480px) {
    .hero-title { font-size:2.2rem; }
    .hero-welcome { font-size:1rem; }
    .hero-tag { font-size:0.78rem; }
    .section-header h2 { font-size:1.8rem; }
    .about-grid h2 { font-size:1.8rem; }
    .whatsapp-fab { bottom:20px; right:20px; width:52px; height:52px; font-size:1.5rem; }
    .values-grid { grid-template-columns:1fr; }
    .gallery-grid { grid-template-columns:1fr; }
    .gallery-large { grid-column:span 1; }
    .chat-fab { bottom:86px; right:20px; width:52px; height:52px; font-size:1.3rem; }
    .chat-panel { bottom:148px; right:20px; }
}

/* =============================================
   INNER PAGES (SUBPÁGINAS)
   ============================================= */
.inner-hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--teal-deeper) 0%, var(--teal-dark) 50%, var(--teal) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}
.inner-hero::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.02'%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");
    opacity: 0.35;
}
.inner-hero-content {
    position: relative;
    z-index: 2;
}
.inner-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.inner-hero-title span {
    color: var(--gold-light);
}
.inner-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- Contact Page Specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    margin-top: 20px;
}
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--trans);
}
.contact-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 128, 128, 0.2);
}
.contact-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 128, 128, 0.08);
    border-radius: 12px;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--trans);
}
.contact-card-item:hover .contact-card-icon {
    background: var(--teal);
    color: white;
}
.contact-card-info h4 {
    font-size: 1.1rem;
    color: var(--teal-deeper);
    margin-bottom: 6px;
}
.contact-card-info p, .contact-card-info a {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
}
.contact-card-info a:hover {
    color: var(--teal);
}

/* Contact Form */
.contact-form-wrap {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 {
    color: var(--teal-deeper);
    margin-bottom: 8px;
    font-size: 1.4rem;
}
.contact-form-wrap p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--teal-deeper);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(0, 128, 128, 0.2);
    background: var(--off-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--trans);
}
.form-control:focus {
    outline: none;
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 128, 128, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23008080'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 42px;
}
input.form-control[type="file"] {
    padding: 10px 14px;
    cursor: pointer;
}
.form-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* Divider entre el formulario general y el de casos para odontólogos */
.contact-section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 72px 0 40px;
}
.contact-section-divider::before,
.contact-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.contact-section-divider span {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.case-form-wrap {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-width: 760px;
    margin: 0 auto;
}
.case-form-wrap h3 {
    color: var(--teal-deeper);
    margin-bottom: 8px;
    font-size: 1.4rem;
}
.case-form-wrap > p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 28px;
}
.case-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .case-form-row { grid-template-columns: 1fr; }
    .case-form-wrap { padding: 26px; }
}

/* Map container */
.map-section {
    padding: 60px 0 0;
}
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-bottom: none;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Teaser highlights buttons */
.teaser-actions {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-form-wrap {
        padding: 24px;
    }
    .map-container {
        height: 300px;
    }
}

/* =============================================
   HERO SLIDER (CARRUSEL PREMIUM)
   ============================================= */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
    animation: kenBurns 10s ease forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

/* Puntos de navegación */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 128, 128, 0.1);
    cursor: pointer;
    transition: var(--trans);
}
.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}
.slider-dot.active {
    background: var(--teal);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 128, 128, 0.5);
    border-color: var(--teal);
}

/* Ajuste del scroll de Hero con el slider */
.hero-scroll {
    z-index: 10; /* Asegurar que quede encima del carrusel */
}

/* =============================================
   VIDEO PLAYER PREMIUM
   ============================================= */
.video-section {
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: var(--trans);
}
.video-wrapper:hover {
    box-shadow: 0 30px 60px rgba(0, 128, 128, 0.12);
    border-color: rgba(0, 128, 128, 0.2);
}
.video-player-container {
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16/9;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(0, 128, 128, 0.15);
}
.video-player-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.video-caption {
    margin-top: 20px;
    text-align: center;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-family: var(--font-head);
    font-weight: 500;
}
.video-caption i {
    color: var(--teal);
    margin-right: 6px;
}


/* =============================================
   BLOG (Fase 2)
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--trans);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.blog-card-img {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.blog-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--teal);
    color: white;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 999px;
}
.blog-card-body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-body h3 {
    font-size: 1.15rem;
    color: var(--teal-deeper);
    margin-bottom: 10px;
    line-height: 1.3;
}
.blog-card-body p {
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 18px;
}
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
}
.blog-card:hover .blog-read-more { gap: 12px; }

/* Article (post individual) */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-mid);
    font-size: 1.02rem;
    line-height: 1.85;
}
.article-content h2 {
    color: var(--teal-deeper);
    font-size: 1.5rem;
    margin: 40px 0 16px;
}
.article-content h3 {
    color: var(--teal-deeper);
    font-size: 1.2rem;
    margin: 32px 0 12px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul {
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 4px;
}
.article-content ul li i {
    color: var(--teal);
    margin-top: 5px;
    flex-shrink: 0;
}
.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-top: 14px;
}
.article-disclaimer {
    max-width: 760px;
    margin: 48px auto 0;
    padding: 18px 22px;
    background: var(--teal-muted);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}
.article-back {
    max-width: 760px;
    margin: 0 auto 24px;
}


/* =============================================
   PORTAL DE ODONTÓLOGOS (Fase 2)
   ============================================= */
.portal-wrap {
    max-width: 440px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.portal-wrap h3 {
    color: var(--teal-deeper);
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.portal-wrap > p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 24px;
}
.portal-msg {
    display: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.5;
}
.portal-msg.show { display: block; }
.portal-msg.error { background: rgba(217,83,79,0.1); color: #c0392b; border: 1px solid rgba(217,83,79,0.25); }
.portal-msg.success { background: rgba(0,128,128,0.08); color: var(--teal-dark); border: 1px solid rgba(0,128,128,0.2); }
.portal-msg.info { background: rgba(212,175,55,0.1); color: #8a6d1a; border: 1px solid rgba(212,175,55,0.3); }

.portal-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}
.portal-header-bar h2 { color: var(--teal-deeper); font-size: 1.6rem; }
.portal-user-email { color: var(--text-light); font-size: 0.85rem; }

.case-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.case-row {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}
.case-row-info strong { display: block; color: var(--teal-deeper); font-size: 1rem; margin-bottom: 4px; }
.case-row-info span { color: var(--text-light); font-size: 0.82rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
}
.status-recibido { background: rgba(122,144,144,0.15); color: var(--text-mid); }
.status-proceso { background: rgba(212,175,55,0.15); color: #8a6d1a; }
.status-calidad { background: rgba(32,178,170,0.15); color: var(--teal-dark); }
.status-enviado { background: rgba(37,211,102,0.15); color: #1a8f4a; }

.portal-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.portal-empty i { font-size: 2.5rem; color: var(--border); margin-bottom: 16px; display: block; }

/* Admin dashboard */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin-bottom: 48px;
}
.admin-stat-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #fbfdfd 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.admin-stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
    opacity: 0.9;
}
.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.admin-stat-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(32,178,170,0.35);
}
.admin-stat-number {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    color: var(--teal-deeper);
    line-height: 1;
    letter-spacing: -0.02em;
}
.admin-stat-label {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    background: #eef3f2;
    padding: 6px;
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
}
.admin-tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-mid);
    border-radius: 999px;
    transition: var(--trans);
    white-space: nowrap;
}
.admin-tab-btn:hover { color: var(--teal-dark); }
.admin-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    box-shadow: 0 6px 16px rgba(32,178,170,0.35);
}
.admin-tab-panel {
    display: none;
    animation: adminTabFade 0.35s var(--ease);
}
.admin-tab-panel.active { display: block; }

.case-filter-btn {
    background: #eef3f2;
    color: var(--text-mid);
    padding: 8px 18px;
    font-size: 0.8rem;
}
.case-filter-btn.active {
    background: var(--teal);
    color: white;
}
@keyframes adminTabFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .admin-dashboard-grid { grid-template-columns: 1fr; }
    .admin-tabs { width: 100%; border-radius: var(--radius-md); }
    .admin-tab-btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 0.78rem; }
}

/* Admin */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .admin-form-grid { grid-template-columns: 1fr; }
    .portal-wrap { padding: 26px; }
}


/* =============================================
   ASISTENTE / CHATBOT LIGERO (Fase 2)
   ============================================= */
.chat-fab {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 500;
    border: none;
    transition: var(--trans);
}
.chat-fab:hover { background: var(--teal-dark); transform: scale(1.06); }
.chat-fab i.fa-xmark { display: none; }
.chat-fab.open i.fa-comment-dots { display: none; }
.chat-fab.open i.fa-xmark { display: inline-block; }

.chat-panel {
    position: fixed;
    bottom: 172px;
    right: 32px;
    width: 340px;
    max-width: calc(100vw - 48px);
    max-height: 60vh;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: var(--trans);
}
.chat-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.chat-panel-header {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-panel-header i { font-size: 1.3rem; }
.chat-panel-header strong { display: block; font-size: 0.95rem; }
.chat-panel-header span { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.chat-panel-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-bubble {
    background: var(--off-white);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 4px;
    padding: 12px 16px;
    font-size: 0.86rem;
    color: var(--text-mid);
    line-height: 1.5;
    align-self: flex-start;
    max-width: 90%;
}
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.chat-option-btn {
    text-align: left;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.84rem;
    color: var(--teal-dark);
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--trans);
}
.chat-option-btn:hover {
    background: var(--teal-muted);
    border-color: var(--teal);
}
.chat-option-btn.chat-back {
    color: var(--text-light);
    font-size: 0.8rem;
}


/* =============================================
   ANTES / DESPUÉS (Fase 2)
   ============================================= */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.before-after-item { text-align: center; }
.before-after-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3.4;
}
.before-after-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.before-after-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 18px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    color: white;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.tag-before { background: #8a6d1a; }
.tag-after { background: var(--teal); }
.before-after-caption {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .before-after-grid { grid-template-columns: 1fr; }
}


