@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&family=Crimson+Pro:wght@300;400&display=swap');

/* Paleta #3: Tierra y Herencia + Neutrales Emocionales (2026 Color Trends) */
:root {
    /* Paleta Principal - Tierra y Herencia */
    --arcilla: #B66E41;           /* Primario - CTAs, highlights */
    --raiz-olivo: #A79874;        /* Secundario - Headers, badges */
    --ocre: #C59A6B;              /* Acento - Hover states */
    --taupe-cafe: #8C6C50;        /* Texto secundario, borders */
    --oxido: #9B372E;             /* Confianza, importante */

    /* Neutrales Emocionales (Paleta #1 - Minimalismo Sereno) */
    --cloud-dancer: #F0EFEB;      /* Background principal */
    --gris-nimbus: #CFD8DC;       /* Backgrounds secundarios */
    --mar-baltico: #455A64;       /* Texto principal */
    --blanco-tiza: #F5F5F0;       /* Cards y superficies elevadas */

    /* Backgrounds */
    --bg-primary: var(--cloud-dancer);
    --bg-card: var(--blanco-tiza);
    --bg-dark: #2A2420;           /* Footer, contraste */

    /* Text Colors */
    --color-text-main: var(--mar-baltico);
    --color-text-secondary: var(--taupe-cafe);
    --color-text-light: #EAEAEA;

    /* Brand Colors */
    --color-primary: var(--arcilla);
    --color-accent: var(--ocre);
    --color-highlight: var(--oxido);

    /* Tipografía */
    --font-heading: 'Crimson Pro', serif;
    --font-body: 'Open Sans', sans-serif;

    /* Layout */
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --container-max: 1200px;
    --spacing-section: 100px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    /* Backgrounds */
    --bg-primary: #1A1714;
    --bg-card: #2A2420;
    --bg-dark: #0F0D0B;

    /* Text Colors - Light tones for dark background */
    --color-text-main: #F5F2EC;
    --color-text-secondary: #D4C9A8;
    --color-text-light: #F5F5F0;

    /* Paleta - Lighter shades for dark mode contrast */
    --arcilla: #D4926C;
    --raiz-olivo: #C5B696;
    --ocre: #E0B089;
    --taupe-cafe: #A89680;
    --oxido: #C44E42;

    /* Neutrals inverted */
    --cloud-dancer: #2A2420;
    --gris-nimbus: #3A3632;
    --mar-baltico: #F5F2EC;
    --blanco-tiza: #1A1714;

    /* Brand Colors */
    --color-primary: #D4926C;
    --color-accent: #E0B089;
    --color-highlight: #C44E42;

    /* Shadows - Darker in dark mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Smooth transitions between themes */
body,
.hero,
.section,
.service-card,
.project-card,
.testimonial-card,
.contact-card-centered,
footer {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}

/* Disable transitions during initial load */
.no-transition,
.no-transition * {
    transition: none !important;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    font-weight: 300;
    letter-spacing: -0.02em;
}

p,
li,
span,
div {
    font-weight: 300;
}

p {
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* Skip Navigation Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

/* Section Title Styling */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 200;
    color: var(--color-text-main);
}

.section-title p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Header */
header {
    padding: 30px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
}

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

/* Logo takes equal space on left */
.logo {
    flex: 1;
}

/* Nav right controls take equal space */
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

/* Logo Styles */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.15em;
    font-weight: 300;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* Helper class for primary text */
.text-gold {
    color: var(--color-primary);
}

.mat-item svg {
    /* Lucide Icon */
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    opacity: 1;
}

.service-header-icon {
    /* Lucide Icon */
    margin-bottom: 24px;
    color: var(--color-primary);
    opacity: 1;
}

.burger {
    display: none;
    cursor: pointer;
    padding: 12px;
    margin: -12px;
}

.burger div {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    margin: 4px;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-text-secondary);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 12px;
}

.theme-toggle:hover {
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-color: var(--color-primary);
}

.theme-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover .theme-icon {
    color: var(--color-primary);
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-icon-light,
:root:not([data-theme]) .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-dark,
:root:not([data-theme]) .theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

/* Dark mode: hide sun, show moon */
[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg,
        var(--cloud-dancer) 0%,
        #FAF9F7 50%,
        var(--gris-nimbus) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(182, 110, 65, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 152, 116, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--taupe-cafe);
    font-weight: 500;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 32px;
    font-weight: 200;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 75px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 38px;
    border: 2px solid var(--mar-baltico);
    border-radius: 50px;
    color: var(--mar-baltico);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.btn-hero-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--color-primary);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.btn-hero-outline:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-outline:hover {
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(182, 110, 65, 0.25);
}

.btn-hero-outline i {
    position: relative;
    z-index: 1;
    margin-left: 8px;
}

.btn-hero-outline span {
    position: relative;
    z-index: 1;
}

.scroll-prompt {
    margin-top: 100px;
}

.scroll-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-text-secondary);
    border-radius: 20px;
    padding: 10px 14px;
    transition: var(--transition);
}

.scroll-link:hover {
    border-color: var(--color-primary);
    transform: translateY(4px);
}

.scroll-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
    animation: bounce 2s ease-in-out infinite;
    animation-delay: 1s;
}

.scroll-link:hover .scroll-icon {
    color: var(--color-primary);
}

/* Bounce Animation for Scroll Arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* About Section */
#about {
    background: var(--blanco-tiza);
    position: relative;
}

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

.about-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 32px;
}

.about-text h2 span {
    color: var(--color-primary);
    display: block;
    font-size: 3rem;
    font-weight: 200;
    margin-top: 5px;
}

/* Stats destacadas */
.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-item strong {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    font-weight: 300;
    line-height: 1;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-description p {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* Valores con bullets */
.about-values {
    margin-top: 32px;
}

.values-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 16px;
}

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

.values-list li {
    color: var(--color-text-main);
    font-size: 0.95rem;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
    font-weight: 300;
}

.values-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
}

.matricula-info {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.mat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mat-text {
    display: flex;
    flex-direction: column;
}

.mat-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

.mat-id {
    font-size: 0.9rem;
    color: var(--color-text-main);
    font-weight: 200;
}

.about-image {
    position: relative;
    padding-bottom: 40px;
    padding-right: 20px;
}

.about-image img {
    border-radius: 30px;
    /* Rounded corners */
    object-fit: cover;
    opacity: 1;
    /* Clear image */
}

.exp-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-primary);
    text-align: left;
    z-index: 2;
    min-width: 200px;
}

.exp-badge strong {
    display: block;
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 200;
    line-height: 1;
    margin-bottom: 5px;
}

.exp-badge span {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Services */
#services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 2px solid var(--gris-nimbus);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(182, 110, 65, 0.15),
                0 8px 16px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-number {
    opacity: 0.25;
    transform: scale(1.1);
}

.service-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    opacity: 0.3;
    font-weight: 200;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-header-icon {
    /* Lucide Icon */
    margin-bottom: 24px;
    color: var(--color-gold);
    opacity: 1;
}

.service-header-icon svg {
    width: 64px;
    height: 64px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 200;
    color: var(--color-text-main);
}

.service-desc {
    font-size: 0.95rem;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.service-list li {
    color: var(--color-text-main);
    font-size: 0.9rem;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    font-weight: 300;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '❯';
    position: absolute;
    left: 0;
    font-size: 0.7rem;
    color: var(--color-primary);
    opacity: 1;
}

/* Instagram Carousel - Promociones */
.promo-section {
    background: var(--bg-primary);
}

.instagram-carousel {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--blanco-tiza) 0%,
        var(--gris-nimbus) 100%);
}

/* Images and Videos in Carousel */
.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide video {
    background: black;
}

.placeholder-content {
    text-align: center;
    padding: 40px;
}

.placeholder-content i {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    color: var(--color-text-main);
    margin-bottom: 12px;
}

.placeholder-content p {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.placeholder-content small {
    color: var(--color-text-secondary);
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -22px;
}

.carousel-next {
    right: -22px;
}

.carousel-nav i {
    color: var(--mar-baltico);
    width: 24px;
    height: 24px;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--gris-nimbus);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: var(--color-accent);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .instagram-carousel {
        max-width: 100%;
    }

    .carousel-nav {
        display: none;
    }

    .placeholder-content {
        padding: 20px;
    }

    .placeholder-content h3 {
        font-size: 1.2rem;
    }
}

/* Educational Carousel Styling */
/* Slide Gradients */
.edu-gradient-1 {
    background: linear-gradient(135deg, #B66E41 0%, #8C6C50 50%, #6B5844 100%);
    position: relative;
    overflow: hidden;
}

.edu-gradient-1::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(80px);
    pointer-events: none;
}

.edu-gradient-2 {
    background: linear-gradient(135deg, #C59A6B 0%, #B66E41 50%, #9B372E 100%);
    position: relative;
    overflow: hidden;
}

.edu-gradient-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(60px);
    pointer-events: none;
}

.edu-gradient-3 {
    background: linear-gradient(135deg, #A79874 0%, #8C6C50 50%, #6B5844 100%);
    position: relative;
    overflow: hidden;
}

.edu-gradient-3::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(197, 154, 107, 0.15);
    filter: blur(70px);
    pointer-events: none;
}

/* Video Slide Gradient */
.video-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

/* Video Content */
.video-content {
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Botón de pantalla completa para video */
.video-fullscreen-btn {
    position: absolute;
    bottom: 60px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.video-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.video-fullscreen-btn svg {
    width: 22px;
    height: 22px;
}

.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    border-radius: 0;
}

/* Video en fullscreen - ajustar para que no se corte */
.carousel-video:fullscreen,
.carousel-video:-webkit-full-screen,
.carousel-video:-moz-full-screen,
.carousel-video:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
}

/* Estilos para controles de video */
.carousel-video::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.carousel-video::-webkit-media-controls-play-button,
.carousel-video::-webkit-media-controls-volume-slider,
.carousel-video::-webkit-media-controls-mute-button,
.carousel-video::-webkit-media-controls-timeline,
.carousel-video::-webkit-media-controls-current-time-display,
.carousel-video::-webkit-media-controls-time-remaining-display {
    filter: brightness(1.2);
}

.video-overlay {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.video-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(182, 110, 65, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 0.85rem;
    font-weight: 400;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-badge i {
    width: 20px;
    height: 20px;
    color: white;
}

/* Content Container */
.edu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    color: white;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Slide 1 - Intro */
.edu-icon-composite {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
}

.icon-house {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3.5s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.icon-house i {
    width: 56px;
    height: 56px;
}

.icon-heater {
    position: absolute;
    right: -10px;
    bottom: 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.8), rgba(255, 100, 0, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 100, 0, 0.4),
                0 8px 24px rgba(0, 0, 0, 0.2);
}

.icon-heater i {
    width: 42px;
    height: 42px;
    color: #fff;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.edu-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.2;
}

.edu-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 32px;
    opacity: 0.95;
}

.edu-steps-indicator {
    display: flex;
    gap: 16px;
}

.step-dot {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.step-dot:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Slide 2 - Steps (Improved Layout) */
.edu-steps-content-v2 {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edu-title-steps {
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    text-align: center;
}

.edu-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.edu-step-card-v2 {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 22px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    align-items: center;
    justify-items: center;
    gap: 8px;
    min-height: 340px;
    row-gap: 10px;
}

.edu-step-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.edu-step-card-v2::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.edu-step-card-v2:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.edu-step-card-v2:hover::after {
    left: 100%;
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 700;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.step-badge.step-1 {
    background: linear-gradient(135deg, rgba(255, 200, 120, 0.5), rgba(255, 150, 80, 0.5));
    border-color: rgba(255, 180, 100, 0.7);
}

.step-badge.step-2 {
    background: linear-gradient(135deg, rgba(200, 150, 120, 0.5), rgba(180, 120, 90, 0.5));
    border-color: rgba(200, 150, 100, 0.7);
}

.step-badge.step-3 {
    background: linear-gradient(135deg, rgba(255, 180, 100, 0.5), rgba(255, 120, 60, 0.5));
    border-color: rgba(255, 150, 80, 0.7);
}

.step-icon-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.step-icon-v2 i {
    width: 32px;
    height: 32px;
}

.step-title-v2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 6px auto 8px auto;
    position: relative;
    z-index: 2;
    min-height: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    width: 100%;
    max-width: 140px;
}

.step-desc {
    font-size: 0.85rem;
    opacity: 0.9;
    margin: 4px auto;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    width: 100%;
    max-width: 120px;
    text-align: center;
}

.step-calc,
.step-formula {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
    position: relative;
    z-index: 2;
    line-height: 1.5;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    text-align: center;
}

.isolation-badges-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 140px;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    align-items: center;
}

.badge-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    line-height: 1.3;
    text-align: center;
}

.badge-v2.good {
    background: rgba(100, 200, 100, 0.35);
    border-color: rgba(100, 220, 100, 0.6);
}

.badge-v2.bad {
    background: rgba(220, 100, 100, 0.35);
    border-color: rgba(220, 120, 100, 0.6);
}

/* Slide 3 - Example */
.edu-example-content {
    padding: 40px 20px;
}

.example-calculation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.calc-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-width: 100px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.calc-number:nth-of-type(3) {
    animation-delay: 0.3s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.calc-operator {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
}

.calc-result {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    min-width: 180px;
    text-align: center;
}

.example-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.95;
    font-weight: 300;
}

.example-tips {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 24px;
}

.tips-title {
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.tips-list i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Slide 4 - Professional Card */
.pro-gradient {
    background: linear-gradient(135deg, #6B5844 0%, #8C6C50 30%, #A79874 60%, #B66E41 100%);
    position: relative;
    overflow: hidden;
}

.pro-gradient::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 110, 65, 0.15), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.pro-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 152, 116, 0.12), transparent 70%);
    filter: blur(70px);
    pointer-events: none;
}

.pro-card-content {
    padding: 40px 30px;
}

.pro-card-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    padding: 32px 28px;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.pro-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pro-photo {
    position: relative;
    width: 120px;
    height: 120px;
}

.pro-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pro-status {
    position: absolute;
    bottom: 5px;
    right: -5px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pro-status i {
    width: 14px;
    height: 14px;
}

.pro-info {
    text-align: center;
    width: 100%;
}

.pro-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 6px;
    color: white;
    letter-spacing: 0.02em;
}

.pro-title {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 400;
}

.pro-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pro-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pro-badge i {
    width: 14px;
    height: 14px;
}

.pro-services {
    margin-bottom: 24px;
}

.pro-services-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    opacity: 0.9;
    text-align: center;
    font-weight: 500;
}

.pro-services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.pro-service-item:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(4px);
}

.pro-service-item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.9;
}

.pro-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pro-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #B66E41, #9B372E);
    color: white;
    padding: 14px 24px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(155, 55, 46, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pro-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pro-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(155, 55, 46, 0.5);
}

.pro-contact-btn:hover::before {
    left: 100%;
}

.pro-contact-btn i {
    width: 20px;
    height: 20px;
}

.pro-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    opacity: 0.9;
}

.pro-location i {
    width: 16px;
    height: 16px;
}

/* Responsive Professional Card */
@media (max-width: 768px) {
    .pro-card-content {
        padding: 30px 20px;
    }

    .pro-card-container {
        padding: 24px 20px;
        max-width: 100%;
    }

    .pro-photo {
        width: 100px;
        height: 100px;
    }

    .pro-name {
        font-size: 1.5rem;
    }

    .pro-title {
        font-size: 0.8rem;
    }

    .pro-services-list {
        gap: 8px;
    }

    .pro-service-item {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .pro-contact-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Slide 5 - WhatsApp Story Card */
.whatsapp-gradient {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 50%, #075E54 100%);
    position: relative;
    overflow: hidden;
}

.whatsapp-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.2), transparent 60%);
    filter: blur(100px);
    pointer-events: none;
    animation: float-wa 8s ease-in-out infinite;
}

.whatsapp-gradient::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 94, 84, 0.15), transparent 60%);
    filter: blur(90px);
    pointer-events: none;
    animation: float-wa 10s ease-in-out infinite reverse;
}

@keyframes float-wa {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.whatsapp-story-content {
    padding: 35px 25px;
}

.whatsapp-header {
    margin-bottom: 24px;
}

.wa-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wa-brand i {
    width: 18px;
    height: 18px;
}

.whatsapp-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 30px 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35),
                0 8px 20px rgba(0, 0, 0, 0.25);
    max-width: 360px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.wa-profile-section {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(37, 211, 102, 0.15);
}

.wa-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.wa-verified {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wa-verified i {
    width: 18px;
    height: 18px;
    color: white;
}

.wa-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: #075E54;
    margin-bottom: 4px;
}

.wa-role {
    font-size: 0.85rem;
    color: #128C7E;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wa-services-compact {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wa-service-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border: 1.5px solid #25D366;
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #075E54;
}

.wa-service-badge i {
    width: 16px;
    height: 16px;
    color: #25D366;
}

.wa-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(37, 211, 102, 0.15);
    border-bottom: 1px solid rgba(37, 211, 102, 0.15);
}

.wa-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wa-stat strong {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #25D366;
    font-weight: 600;
    line-height: 1;
}

.wa-stat span {
    font-size: 0.7rem;
    color: #128C7E;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.wa-cta-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.wa-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(37, 211, 102, 0.1);
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #075E54;
    letter-spacing: 0.02em;
}

.wa-phone i {
    width: 20px;
    height: 20px;
    color: #25D366;
}

.wa-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 16px 28px;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wa-chat-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.wa-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.wa-chat-btn:hover::before {
    left: 100%;
}

.wa-chat-btn i {
    width: 22px;
    height: 22px;
}

.wa-location-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #128C7E;
    font-weight: 500;
}

.wa-location-badge i {
    width: 16px;
    height: 16px;
    color: #25D366;
}

.wa-footer {
    margin-top: 28px;
    text-align: center;
}

.wa-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 400;
}

.wa-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.wa-share-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.wa-share-icon i {
    width: 22px;
    height: 22px;
    color: white;
}

/* Responsive WhatsApp Card */
@media (max-width: 768px) {
    .whatsapp-story-content {
        padding: 28px 18px;
    }

    .whatsapp-card {
        padding: 24px 18px;
        max-width: 100%;
    }

    .wa-avatar {
        width: 85px;
        height: 85px;
    }

    .wa-name {
        font-size: 1.4rem;
    }

    .wa-role {
        font-size: 0.8rem;
    }

    .wa-services-compact {
        gap: 6px;
    }

    .wa-service-badge {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .wa-stat strong {
        font-size: 1.3rem;
    }

    .wa-stat span {
        font-size: 0.65rem;
    }

    .wa-phone {
        font-size: 1rem;
        padding: 10px 16px;
    }

    .wa-chat-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .edu-steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .edu-step-card-v2 {
        min-height: auto;
        padding: 18px 14px;
    }

    .edu-title-steps {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .edu-content {
        padding: 35px 20px;
    }

    .edu-icon-composite {
        width: 140px;
        height: 140px;
        margin-bottom: 28px;
    }

    .icon-house {
        width: 95px;
        height: 95px;
    }

    .icon-house i {
        width: 48px;
        height: 48px;
    }

    .icon-heater {
        width: 65px;
        height: 65px;
        right: -8px;
        bottom: 8px;
    }

    .icon-heater i {
        width: 36px;
        height: 36px;
    }

    .edu-title {
        font-size: 1.8rem;
    }

    .edu-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .edu-steps-indicator {
        gap: 10px;
    }

    .step-dot {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .edu-steps-content-v2 {
        padding: 24px 14px;
        gap: 16px;
    }

    .edu-steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .edu-title-steps {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .edu-step-card-v2 {
        padding: 16px 12px;
        min-height: 300px;
        row-gap: 8px;
    }

    .step-badge {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .step-icon-v2 {
        width: 48px;
        height: 48px;
    }

    .step-icon-v2 i {
        width: 28px;
        height: 28px;
    }

    .step-title-v2 {
        font-size: 0.9rem;
    }

    .step-desc {
        font-size: 0.8rem;
    }

    .step-calc,
    .step-formula {
        font-size: 0.75rem;
    }

    .badge-v2 {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .calc-number {
        font-size: 2.2rem;
        padding: 12px 16px;
        min-width: 70px;
    }

    .calc-result {
        font-size: 1.8rem;
        min-width: 120px;
    }

    .calc-operator {
        font-size: 1.3rem;
    }

    .example-tips {
        padding: 14px;
    }

    .tips-title {
        font-size: 0.85rem;
    }

    .tips-list li {
        font-size: 0.85rem;
    }

    .tips-list i {
        width: 20px;
        height: 20px;
    }
}

/* Projects */
#projects {
    background: linear-gradient(to bottom,
        #FDFCFA 0%,
        var(--blanco-tiza) 100%);
}

/* Instagram-style 3x3 Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: transparent;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    opacity: 0.85;
}

.project-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--gris-nimbus);
    position: relative;
}

.project-card:hover .project-image {
    /* Sin sombra extra en hover para estilo limpio */
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 60%,
        rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-tag {
    opacity: 1;
}

.project-tag[data-type="gas"] {
    background: rgba(182, 110, 65, 0.9);
}

.project-tag[data-type="obras"] {
    background: rgba(155, 55, 46, 0.9);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Ocultar info en grid, mostrar solo en lightbox */
.project-info {
    display: none;
}

/* Testimonials Section */
#testimonials {
    background: linear-gradient(to bottom,
        var(--blanco-tiza) 0%,
        #FDFCFA 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 2px solid var(--gris-nimbus);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(182, 110, 65, 0.12),
                0 4px 8px rgba(0, 0, 0, 0.06);
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    color: var(--color-primary);
}

.testimonial-rating i {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gris-nimbus);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-weight: 400;
}

.author-location {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 300;
}

/* Responsive - Testimonials */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 24px;
    }
}

/* Contact */
.contact-card-centered {
    background: var(--bg-card);
    max-width: 600px;
    margin: 0 auto;
    border-radius: 30px;
    border: 2px solid var(--color-accent);
    padding: 40px;
}

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid var(--gris-nimbus);
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-row:last-of-type {
    border-bottom: none;
}

.contact-row:hover {
    background-color: rgba(182, 110, 65, 0.05);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

.contact-row:hover .icon-arrow {
    color: var(--color-primary);
}

.contact-row:hover .icon-small,
.contact-row:hover .icon-small svg {
    color: var(--color-primary);
}

.contact-row-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-small {
    /* Lucide icon container */
    display: flex;
    align-items: center;
    color: var(--color-primary);
}

.icon-small svg {
    width: 30px;
    height: 30px;
}

.text-group {
    display: flex;
    flex-direction: column;
}

.text-group .label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

.text-group .value {
    font-size: 1rem;
    color: var(--color-text-main);
    font-weight: 300;
}

.icon-arrow {
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
}

.icon-arrow svg {
    width: 24px;
    height: 24px;
}

.contact-card-footer {
    margin-top: 30px;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid var(--gris-nimbus);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 2px solid var(--color-accent);
    margin-top: 100px;
    background: linear-gradient(to bottom,
        #2A2420 0%,
        #1F1A17 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--color-accent);
    font-weight: 400;
}

.brand-col p {
    font-size: 0.9rem;
    max-width: 300px;
    color: #D4C7B8;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #D4C7B8;
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #A89680;
}

/* Responsive */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .projects-grid {
        /* Mantener 3x3 en tablet, reducir gap */
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--gris-nimbus);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .burger {
        display: block;
    }

    /* Reset flex for mobile nav */
    .logo {
        flex: 0 1 auto;
    }

    .nav-right {
        flex: 0 0 auto;
        gap: 8px;
    }

    .theme-toggle {
        margin: 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .stat-item strong {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid {
        /* Mantener 3x3 en mobile */
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        max-width: 100%;
    }

    /* Lightbox más grande en mobile */
    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
        border-radius: 8px;
    }

    .lightbox-caption {
        bottom: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}

/* Carousel Fullscreen Overlay (Mobile) */
.carousel-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.carousel-fullscreen-overlay img,
.carousel-fullscreen-overlay video {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.carousel-fullscreen-overlay.video-fullscreen video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
}

.carousel-image {
    cursor: pointer;
}

@media (max-width: 768px) {
    .carousel-image {
        cursor: zoom-in;
    }
}

/* Lightbox Styles */
/* Lightbox - Instagram Stories style (9:16) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    opacity: 1;
    display: flex;
}

.lightbox-content {
    display: block;
    max-height: 90vh;
    max-width: min(90vw, 50vh); /* Mantiene proporción vertical */
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    font-weight: 300;
    font-size: 0.95rem;
    max-width: 90%;
    width: max-content;
    backdrop-filter: blur(4px);
}

@media (max-width: 480px) {
    .lightbox-caption {
        bottom: 20px;
        padding: 10px 16px;
        font-size: 0.85rem;
        max-width: 95%;
        white-space: normal;
        line-height: 1.4;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 36px;
    font-weight: 100;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Cursor change for project images */
.project-image img {
    cursor: zoom-in;
}

/* Footer Legal Link */
.footer-legal-separator {
    margin: 0 8px;
    opacity: 0.4;
}

.footer-legal-link {
    color: var(--color-text-light);
    opacity: 0.6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.footer-legal-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Legal Modal */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal.active {
    display: flex;
    opacity: 1;
}

.legal-modal-content {
    background: var(--bg-card);
    max-width: 600px;
    max-height: 80vh;
    margin: 20px;
    padding: 32px;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.legal-modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 24px;
    padding-right: 40px;
}

.legal-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--color-text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.legal-modal-close:hover {
    background: var(--gris-nimbus);
    color: var(--color-text-main);
}

.legal-section {
    margin-bottom: 20px;
}

.legal-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

@media (max-width: 768px) {
    .legal-modal-content {
        padding: 24px;
        margin: 16px;
        max-height: 85vh;
    }

    .legal-modal-content h3 {
        font-size: 1.25rem;
    }

    .footer-legal-separator {
        display: none;
    }

    .footer-legal-link {
        display: block;
        margin-top: 8px;
    }
}

/* Focus Indicators */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Dark Mode Specific Adjustments */

/* Logo dark mode - make it white */
[data-theme="dark"] .logo img {
    filter: brightness(0) invert(1);
}

/* Hero dark mode */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg,
        var(--bg-primary) 0%,
        #252220 50%,
        var(--gris-nimbus) 100%);
}

[data-theme="dark"] .hero::before {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 146, 108, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(197, 182, 150, 0.12) 0%, transparent 50%);
}

/* Footer dark mode */
[data-theme="dark"] footer {
    background: linear-gradient(to bottom,
        var(--bg-dark) 0%,
        #080706 100%);
}

[data-theme="dark"] .footer-col h5 {
    color: var(--color-primary);
}

[data-theme="dark"] .brand-col p,
[data-theme="dark"] .footer-col ul li {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .footer-copyright {
    color: #8C7E6F;
}

/* Testimonials dark mode */
[data-theme="dark"] #testimonials {
    background: linear-gradient(to bottom,
        #1F1A17 0%,
        #1A1714 100%);
}

/* Projects section dark mode */
[data-theme="dark"] #projects {
    background: linear-gradient(to bottom,
        #1A1714 0%,
        #0F0D0B 100%);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .service-card:hover,
    .project-card:hover,
    .btn-hero-outline:hover {
        transform: none;
    }

    .project-image img {
        transition: none;
    }
}