/* ============================================
   DENTAL SUR — Custom Styles
   Estilo: Brutalismo moderno + Fresco / Juvenil
   Tipografías: Cormorant Garamond + Karla
   Paleta: Verde claro
============================================ */

/* CSS Custom Properties */
:root {
    --verde-primary: #16a34a;
    --verde-light: #4ade80;
    --verde-pale: #dcfce7;
    --verde-dark: #14532d;
    --verde-mid: #22c55e;
    --verde-50: #f0fdf4;
    --negro: #0a0a0a;
    --blanco: #fafafa;
    --gris-light: #f8fafc;
    --gris-mid: #64748b;
    --sombra-brut: 4px 4px 0px var(--negro);
    --sombra-verde: 4px 4px 0px var(--verde-dark);
    --sombra-verde-lg: 6px 6px 0px var(--verde-dark);
    --border-brut: 2px solid var(--negro);
    --radius: 0px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ BASE RESETS ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Karla', sans-serif;
    background: var(--blanco);
    color: var(--negro);
    overflow-x: hidden;
}

img { display: block; width: 100%; }

/* ============ ANIMATIONS ============ */
@keyframes pulse-ring {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 16px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5), var(--sombra-brut); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2), var(--sombra-brut); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; }
    50% { transform: scaleY(1.5) translateY(8px); opacity: 0.5; }
}

/* Reveal animation classes */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--delay, 0s);
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ============ NAVBAR ============ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-brut);
    box-shadow: 0 2px 0 var(--negro);
}

.nav-logo-wrap {
    border: var(--border-brut);
    padding: 4px;
    box-shadow: 2px 2px 0 var(--negro);
    background: white;
}

.nav-brand-name {
    color: var(--negro);
    letter-spacing: -0.5px;
}

.nav-brand-sub {
    color: var(--verde-primary);
    letter-spacing: 2px;
}

#navbar:not(.scrolled) .nav-brand-name { color: white; }
#navbar:not(.scrolled) .nav-brand-sub { color: var(--verde-light); }

.nav-link {
    color: var(--negro);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--verde-primary); }

#navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,0.9); }
#navbar:not(.scrolled) .nav-link:hover { color: white; }

.btn-nav-cta {
    display: inline-block;
    padding: 10px 22px;
    background: var(--verde-primary);
    color: white;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--negro);
    box-shadow: var(--sombra-brut);
    transition: var(--transition);
}

.btn-nav-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--negro);
    background: var(--verde-dark);
}

/* Mobile Menu */
.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-bar {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--negro);
    transition: var(--transition);
}

#navbar:not(.scrolled) .menu-bar { background: white; }

.mobile-menu {
    background: var(--blanco);
    border-top: var(--border-brut);
}

.mobile-nav-link {
    display: block;
    font-family: 'Karla', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--negro);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.mobile-nav-link:hover { color: var(--verde-primary); }

/* ============ HERO ============ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-section:hover .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.88) 0%,
        rgba(20, 83, 45, 0.65) 50%,
        rgba(10, 10, 10, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
    padding-top: 80px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: var(--verde-light);
    font-family: 'Karla', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    margin-bottom: 28px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 28px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-title em {
    font-style: italic;
    color: var(--verde-light);
}

.hero-subtitle {
    font-family: 'Karla', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.82);
    font-weight: 400;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--verde-primary);
    color: white;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid white;
    box-shadow: 5px 5px 0 rgba(255,255,255,0.3);
    transition: var(--transition);
    animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-hero-primary:hover {
    background: var(--verde-dark);
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 rgba(255,255,255,0.4);
}

.btn-hero-secondary {
    display: inline-block;
    padding: 16px 36px;
    color: white;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px 40px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 2px solid var(--verde-light);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--verde-light);
    line-height: 1;
}

.hero-stat-label {
    font-family: 'Karla', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.2);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.4);
    transform-origin: top;
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ============ SECTIONS COMMON ============ */
.section-header { text-align: center; margin-bottom: 64px; }

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--verde-pale);
    color: var(--verde-dark);
    font-family: 'Karla', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid var(--verde-light);
    margin-bottom: 16px;
}

.section-badge--dark {
    background: rgba(74, 222, 128, 0.15);
    color: var(--verde-light);
    border-color: rgba(74, 222, 128, 0.3);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--negro);
    margin: 8px 0 20px;
}

.section-title em {
    font-style: italic;
    color: var(--verde-primary);
}

.section-title--light { color: white; }
.section-title--light em { color: var(--verde-light); }

.section-desc {
    font-size: 1.05rem;
    color: var(--gris-mid);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

.section-desc--light { color: rgba(255,255,255,0.75); }

/* ============ SECTION BG ACCENTS ============ */
.section-bg-accent {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--verde-pale) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

/* ============ SERVICES ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px 28px;
    background: white;
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    transition: var(--transition);
    cursor: default;
}

.service-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--negro);
}

.service-card--featured {
    border-color: var(--verde-primary);
    background: var(--verde-50);
    box-shadow: var(--sombra-verde);
}

.service-card--featured:hover {
    box-shadow: 7px 7px 0 var(--verde-dark);
}

.service-icon-wrap {
    width: 52px;
    height: 52px;
    color: var(--verde-primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrap { transform: scale(1.1) rotate(-3deg); }

.service-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 10px;
    line-height: 1.2;
}

.service-desc {
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    color: var(--gris-mid);
    line-height: 1.65;
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--verde-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============ ABOUT ============ */
.about-section { background: var(--gris-light); }

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

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

.about-images {
    position: relative;
}

.about-img-main {
    position: relative;
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 90px;
    height: 90px;
    background: var(--verde-primary);
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.about-badge-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.about-badge-text {
    font-family: 'Karla', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    left: -32px;
    width: 42%;
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    overflow: hidden;
    aspect-ratio: 1;
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text { padding: 20px 0; }

.about-desc {
    font-size: 1rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.about-value {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border-left: 3px solid var(--verde-primary);
    background: white;
    box-shadow: 2px 2px 0 var(--verde-light);
}

.about-value-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--verde-pale);
    border: 1px solid var(--verde-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--verde-primary);
}

.about-value strong {
    display: block;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--negro);
    margin-bottom: 2px;
}

.about-value span {
    font-size: 0.82rem;
    color: var(--gris-mid);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    overflow: hidden;
    background: white;
    transition: var(--transition);
}

.team-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--negro);
}

.team-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.team-card--main .team-img-wrap { aspect-ratio: 3/4; }

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrap img { transform: scale(1.05); }

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,83,45,0.95) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.team-card:hover .team-overlay { opacity: 1; }

.team-overlay p {
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.team-info {
    padding: 24px;
    border-top: var(--border-brut);
}

.team-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 6px;
}

.team-role {
    display: inline-block;
    padding: 4px 12px;
    background: var(--verde-pale);
    color: var(--verde-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid var(--verde-light);
}

.team-bio {
    font-size: 0.85rem;
    color: var(--gris-mid);
    line-height: 1.6;
}

/* ============ TESTIMONIOS ============ */
.testimonios-section {
    background: var(--negro);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(22,163,74,0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34,197,94,0.08) 0%, transparent 40%);
}

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

.testimonio-card {
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(4px);
    transition: var(--transition);
    position: relative;
}

.testimonio-card:hover {
    border-color: rgba(74,222,128,0.3);
    background: rgba(255,255,255,0.07);
    transform: translateY(-4px);
}

.testimonio-card--featured {
    grid-column: span 5;
    border-color: rgba(74,222,128,0.25);
    background: rgba(22,163,74,0.1);
}

.testimonio-card:not(.testimonio-card--featured) {
    grid-column: span 3;
}

@media (max-width: 1200px) {
    .testimonio-card--featured { grid-column: span 6; }
    .testimonio-card:not(.testimonio-card--featured) { grid-column: span 6; }
}

@media (max-width: 768px) {
    .testimonio-card,
    .testimonio-card--featured { grid-column: span 12; }
}

.testimonio-stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonio-text {
    font-family: 'Karla', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonio-card--featured .testimonio-text {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.9);
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonio-avatar {
    width: 42px;
    height: 42px;
    background: var(--verde-primary);
    color: white;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--verde-light);
}

.testimonio-author strong {
    display: block;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
}

.testimonio-author span {
    font-size: 0.75rem;
    color: var(--verde-light);
    opacity: 0.8;
}

/* ============ GALLERY ============ */
.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 10px 24px;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: var(--border-brut);
    background: white;
    color: var(--negro);
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--negro);
    transition: var(--transition);
}

.gallery-tab:hover,
.gallery-tab.active {
    background: var(--verde-primary);
    color: white;
    border-color: var(--verde-dark);
    box-shadow: 3px 3px 0 var(--verde-dark);
    transform: translate(-1px, -1px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--negro);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,83,45,0.95) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-icon {
    width: 52px;
    height: 52px;
    background: white;
    color: var(--verde-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.gallery-overlay span {
    font-family: 'Karla', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-align: center;
}

.gallery-item.hidden { display: none; }

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.97);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.lightbox.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    display: block;
}

.lightbox-caption {
    margin-top: 16px;
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    letter-spacing: 0.05em;
}

.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Karla', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.lightbox-close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
}

.lightbox-close:hover {
    background: rgba(239,68,68,0.8);
    border-color: rgba(239,68,68,0.8);
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-nav:hover {
    background: var(--verde-primary);
    border-color: var(--verde-primary);
    transform: translateY(-50%) scale(1.05);
}

/* ============ CONTACT ============ */
.contact-bg-shape {
    position: absolute;
    top: 0;
    left: -200px;
    width: 600px;
    height: 100%;
    background: linear-gradient(135deg, var(--verde-pale) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: var(--border-brut);
    box-shadow: 3px 3px 0 var(--negro);
    text-decoration: none;
    color: var(--negro);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--negro);
    border-color: var(--verde-primary);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--verde-pale);
    border: 1px solid var(--verde-light);
    color: var(--verde-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--verde-primary);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--negro);
    word-break: break-word;
}

/* Contact Form */
.contact-form-wrap {
    background: white;
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    padding: 40px;
}

.form-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--negro);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--gris-mid);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: var(--border-brut);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-label {
    font-family: 'Karla', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--negro);
}

.form-input {
    padding: 12px 16px;
    border: var(--border-brut);
    background: var(--gris-light);
    font-family: 'Karla', sans-serif;
    font-size: 0.95rem;
    color: var(--negro);
    outline: none;
    transition: var(--transition);
    width: 100%;
    appearance: none;
}

.form-input:focus {
    border-color: var(--verde-primary);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15), 3px 3px 0 var(--verde-primary);
    background: white;
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-textarea { resize: vertical; min-height: 100px; }

.btn-form-submit {
    width: 100%;
    padding: 16px;
    background: #25D366;
    color: white;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: 2px solid #128C7E;
    box-shadow: 4px 4px 0 #128C7E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-form-submit:hover {
    background: #128C7E;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #075E54;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: var(--verde-dark);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(74,222,128,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(22,163,74,0.2) 0%, transparent 50%);
}

.cta-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(74,222,128,0.15);
    color: var(--verde-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid rgba(74,222,128,0.3);
    margin-bottom: 24px;
}

.cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 0.95;
    color: white;
    margin-bottom: 20px;
}

.cta-title em {
    font-style: italic;
    color: var(--verde-light);
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-block;
    padding: 18px 40px;
    background: var(--verde-light);
    color: var(--negro);
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid white;
    box-shadow: 5px 5px 0 rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 rgba(255,255,255,0.4);
    background: white;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    color: white;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ============ FOOTER ============ */
.footer-section {
    background: #080e0a;
    color: rgba(255,255,255,0.75);
    padding: 80px 0 0;
}

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

@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col--brand { grid-column: span 2; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col--brand { grid-column: span 1; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img { filter: brightness(0) invert(1); }

.footer-brand-name {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.footer-brand-tag {
    display: block;
    font-size: 0.7rem;
    color: var(--verde-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-about {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--verde-primary);
    border-color: var(--verde-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-col-title {
    font-family: 'Karla', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--verde-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--verde-light); }

.footer-contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.footer-contact-list svg { flex-shrink: 0; color: var(--verde-light); margin-top: 2px; }

.footer-contact-list a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list a:hover { color: var(--verde-light); }

.footer-map {
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    filter: grayscale(0.3) brightness(0.8);
    transition: filter 0.3s;
}

.footer-map:hover { filter: none; }

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ============ CHAT WIDGET ============ */
.chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-toggle {
    width: 62px;
    height: 62px;
    background: var(--verde-primary);
    color: white;
    border: 2px solid var(--verde-dark);
    box-shadow: 4px 4px 0 var(--verde-dark);
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-ring 2.5s ease-in-out infinite;
}

.chat-toggle.is-open {
    animation: none;
    background: var(--negro);
    border-color: var(--negro);
    box-shadow: 4px 4px 0 var(--verde-dark);
}

.chat-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--verde-dark);
}

.chat-toggle-open, .chat-toggle-close { transition: opacity 0.2s, transform 0.2s; }

.hidden { display: none !important; }

.chat-panel {
    width: 340px;
    background: white;
    border: var(--border-brut);
    box-shadow: var(--sombra-brut);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 520px;
    animation: fadeInUp 0.3s ease;
}

@media (max-width: 480px) {
    .chat-widget { bottom: 16px; right: 16px; }
    .chat-panel { width: calc(100vw - 32px); }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--verde-primary);
    border-bottom: 2px solid var(--verde-dark);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-header-title {
    display: block;
    font-family: 'Karla', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: white;
    letter-spacing: 0.02em;
}

.chat-header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.8);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--verde-light);
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-in-out infinite;
}

.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.chat-close-btn:hover { color: white; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 240px;
    max-height: 320px;
    background: var(--gris-light);
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--verde-light); }

.chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    font-family: 'Karla', sans-serif;
    font-size: 0.88rem;
    line-height: 1.55;
}

.chat-bubble--bot {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-left: 3px solid var(--verde-primary);
    color: var(--negro);
    align-self: flex-start;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.06);
}

.chat-bubble--user {
    background: var(--verde-primary);
    color: white;
    align-self: flex-end;
    border: 1px solid var(--verde-dark);
}

.chat-bubble--typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: var(--gris-mid);
    border-radius: 50%;
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: white;
    border-top: var(--border-brut);
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: var(--border-brut);
    background: var(--gris-light);
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    color: var(--negro);
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--verde-primary);
    background: white;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--verde-primary);
    color: white;
    border: 2px solid var(--verde-dark);
    box-shadow: 2px 2px 0 var(--verde-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--verde-dark);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--negro);
}

/* ============ UTILITIES ============ */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .hero-stat-divider {
        width: 60px;
        height: 1px;
    }
    .hero-scroll-indicator { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .about-img-secondary { display: none; }
    .about-img-badge { bottom: 12px; right: 12px; }
    .contact-form-wrap { padding: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
