/* ===============================================
   SEA DECO - Premium Wall Covers
   Punta del Este, Uruguay
   =============================================== */

/* ===============================================
   CSS VARIABLES / DESIGN TOKENS
   =============================================== */
:root {
    /* Colors */
    --color-primary: #0e2643;
    /* Azul petróleo oscuro */
    --color-secondary: #f3ede0;
    /* Arena */
    --color-white: #ffffff;
    /* Blanco pleno */
    --color-dark: #0a1a2e;
    /* Más oscuro para gradientes */
    --color-accent: #1a3a5c;
    /* Azul intermedio */

    /* Typography */
    --font-family: 'DM Sans', sans-serif;
    --font-family-serif: 'Playfair Display', Georgia, serif;
    --font-weight-thin: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Performance */
    --gpu-accelerate: translateZ(0);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(14, 38, 67, 0.1);
    --shadow-md: 0 4px 20px rgba(14, 38, 67, 0.15);
    --shadow-lg: 0 8px 40px rgba(14, 38, 67, 0.2);

    /* Header */
    --header-height: 80px;
}

/* ===============================================
   RESET & BASE STYLES
   =============================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SOLUCIÓN DEFINITIVA: Sin scrollbars en ningún elemento excepto body */
html {
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    width: 100%;
    max-width: 100%;
}

/* Forzar que NO haya scrollbars en ningún elemento interno */
section,
.section,
.container,
.hero,
.footer,
#header,
.gallery-section,
.gallery-slider,
.split-container,
.split-content,
.split-image,
.benefits-grid,
.services-grid,
.steps-grid,
.contacto-grid,
article,
aside,
nav,
main {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* Elementos que necesitan overflow hidden solo para efectos visuales */
.hero-background,
.gallery-slide,
.service-image,
.benefit-card {
    overflow: hidden !important;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
    position: relative;
    min-height: 100vh;
}

/* Bloquear scroll cuando menú está abierto */
body.menu-open {
    overflow: hidden !important;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy loading deshabilitado para evitar conflictos */
img {
    opacity: 1 !important;
    visibility: visible !important;
}

ul,
ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===============================================
   PRELOADER
   =============================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.wave-icon {
    width: 140px;
    /* Agrandado un 40% (antes 100px) */
    margin: 0 auto var(--spacing-md);
    animation: wave-float 2s ease-in-out infinite;
}

.wave-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes wave-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.preloader-text {
    color: var(--color-secondary);
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.3em;
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-primary);
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
    will-change: background-color, box-shadow;
    transform: translateZ(0);
    overflow: visible;
    overflow-x: hidden;
}

#header.scrolled {
    background: rgba(14, 38, 67, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-lg);
    max-width: 1440px;
    margin: 0 auto;
}

.nav-logo-left a {
    display: flex;
    align-items: center;
}

/* Logo de la ola a la izquierda */
.logo-ola {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo-ola:hover {
    transform: scale(1.05);
}

/* Texto SEA DECO centrado */
.nav-logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text-center {
    color: var(--color-secondary);
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

/* Imagen de letras "SEA DECO" centrada */
.logo-letras {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo-letras:hover {
    transform: scale(1.02);
}

/* Mantener compatibilidad con logo-icon si existe */
.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: var(--transition-fast);
}

.logo-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.hamburger {
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 99999;
    box-sizing: border-box;
    background: transparent;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: var(--transition-normal);
    transform-origin: center;
    pointer-events: none;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ===============================================
   MOBILE MENU - REESCRITO COMPLETAMENTE
   =============================================== */

/* Overlay oscuro detrás del menú */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menú lateral */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-primary);
    padding: 100px 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    transform: translateX(0) !important;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-links li {
    list-style: none;
}

.menu-link {
    color: var(--color-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(243, 237, 224, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.menu-link:hover {
    color: #fff;
    padding-left: 10px;
}

.menu-footer {
    border-top: 1px solid rgba(243, 237, 224, 0.2);
    padding-top: var(--spacing-lg);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.social-link:hover {
    opacity: 1;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Menu Overlay */
/* Overlay ahora es un elemento separado en el HTML */

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: visible;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}



.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: -1;
    overflow: visible;
    overflow-x: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ken Burns Effect */
    animation: kenBurns 25s ease-out infinite alternate;
    transform-origin: center center;
}

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

    100% {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay negro sutil para legibilidad sin tapar la imagen */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.35) 40%,
            rgba(0, 0, 0, 0.15) 70%,
            rgba(0, 0, 0, 0) 100%);
}

.hero-content {
    max-width: 700px;
    padding: var(--spacing-xl);
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    position: relative;
    z-index: 2;
}

/* Animaciones de entrada escalonadas */
.hero-title {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Más pequeño como solicitó el cliente */
    font-family: var(--font-family);
    /* DM Sans como solicitó */
    font-weight: var(--font-weight-medium);
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeUp 1s ease-out 0.5s forwards;
    letter-spacing: -0.01em;
}

/* Título con tipografía serif elegante (opcional) */
.hero-title-serif {
    font-family: var(--font-family-serif);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.hero-subtitle {
    color: var(--color-secondary);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: var(--font-weight-thin);
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeUp 1s ease-out 0.8s forwards;
    padding-left: 2px;
    /* Alineación óptica */
    max-width: 90%;
    line-height: 1.6;
}

.hero-btn-wrapper {
    opacity: 0;
    animation: fadeUp 1s ease-out 1.1s forwards;
    text-align: left;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
    z-index: 5;
    cursor: pointer;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(243, 237, 224, 0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--color-secondary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-text {
    color: rgba(243, 237, 224, 0.8);
    font-size: 0.75rem;
    font-weight: var(--font-weight-thin);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===============================================
   SECTIONS
   =============================================== */
.section {
    padding: var(--spacing-xxl) 0;
    overflow: visible;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Evitar scrollbars en contenedores */
.container {
    overflow: visible;
}

/* Solo el body puede tener scroll vertical - ya está definido arriba */

/* Las secciones no deben tener scroll */
section,
.section {
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

.section-light {
    background: var(--color-secondary);
}

.section-white {
    background: var(--color-white);
}

.section-dark {
    background: var(--color-primary);
}

.section-dark .section-title,
.section-dark .section-text {
    color: var(--color-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    overflow: visible;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-regular);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.section-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: var(--font-weight-thin);
    line-height: 1.8;
    color: var(--color-primary);
    max-width: 800px;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================================
   DISEÑO QUE TRANSFORMA (PREMIUM SPLIT)
   =============================================== */
.section-split {
    padding: 0;
    overflow: visible;
    overflow-x: hidden;
    background: var(--color-secondary);
    width: 100%;
    max-width: 100%;
}

.split-container {
    display: flex;
    min-height: 600px;
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.split-image,
.split-content {
    flex: 1;
}

.split-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.split-image:hover img {
    transform: scale(1.05);
    /* Zoom sutil al pasar el mouse */
}

.split-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    background: var(--color-secondary);
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.content-wrapper {
    max-width: 500px;
}

.eyebrow {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: 0.6;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
}

.section-split .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-split .section-text {
    font-size: 1.1rem;
    max-width: none;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    opacity: 0.9;
}

/* Ajuste móvil para split */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
    }

    .split-image {
        min-height: 300px;
    }
}

/* ===============================================
   GALLERY SLIDER (Carrusel)
   =============================================== */
.gallery-section {
    padding-top: 0;
    padding-bottom: var(--spacing-xxl);
    padding-left: 0;
    padding-right: 0;
    background: var(--color-white);
}

.gallery-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 0 var(--spacing-lg);
    overflow: hidden;
    border-radius: 0;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-slide {
    min-width: 100%;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.gallery-arrow:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.gallery-arrow svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.gallery-prev {
    left: var(--spacing-md);
}

.gallery-next {
    right: var(--spacing-md);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    padding: 0 var(--spacing-md);
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(14, 38, 67, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.gallery-dot.active {
    background: var(--color-primary);
    width: 30px;
}

.gallery-cta {
    text-align: center;
    padding-top: var(--spacing-md);
}

/* ===============================================
   BENEFITS (Rediseñado - Más limpio y alineado)
   =============================================== */
#beneficios {
    background: var(--color-secondary);
}

#beneficios .section-title {
    margin-bottom: var(--spacing-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.benefit-card {
    background: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: 0 4px 20px rgba(14, 38, 67, 0.08);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 320px;
    will-change: transform;
    transform: translateZ(0);
}

.benefit-card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 12px 40px rgba(14, 38, 67, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin-bottom: var(--spacing-sm);
    background: rgba(14, 38, 67, 0.04);
    border: 1px solid rgba(14, 38, 67, 0.08);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    stroke-width: 1.5;
}

.benefit-title {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0;
    color: var(--color-primary);
    line-height: 1.3;
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    min-height: 1.3em;
}

.benefit-text {
    font-size: 0.9rem;
    font-weight: var(--font-weight-thin);
    color: var(--color-primary);
    opacity: 0.75;
    line-height: 1.5;
    flex-grow: 0;
    position: relative;
    margin-top: 0;
    text-align: left;
    min-height: 4.5em;
}

/* Línea azul leve separadora entre título y descripción */
.benefit-text::before {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background-color: var(--color-accent);
    opacity: 0.5;
    margin-bottom: 0.5rem;
    margin-top: 0.15rem;
    margin-left: 0;
    /* Alinear a la izquierda */
}

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

    /* Galería tablet - 3 columnas */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .benefit-card {
        height: auto;
        min-height: auto;
        padding: var(--spacing-md);
    }

    .benefit-title {
        white-space: normal;
    }

    .benefit-text {
        min-height: auto;
    }
}

/* ===============================================
   SERVICES
   =============================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: visible;
    overflow-x: hidden;
    transition: transform var(--transition-normal), background var(--transition-normal);
    will-change: transform;
    transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-5px) translateZ(0);
    background: rgba(255, 255, 255, 0.1);
}

.service-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.service-content {
    padding: var(--spacing-lg);
}

.service-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.service-text {
    font-size: 0.95rem;
    font-weight: var(--font-weight-thin);
    color: var(--color-secondary);
    opacity: 0.85;
    line-height: 1.7;
}

/* ===============================================
   HOW IT WORKS (STEPS)
   =============================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.step-card {
    text-align: center;
    padding: var(--spacing-lg);
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-size: 2rem;
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.step-text {
    font-size: 0.95rem;
    font-weight: var(--font-weight-thin);
    color: var(--color-primary);
    opacity: 0.8;
}

/* Línea conectora para los pasos en Desktop */
@media (min-width: 900px) {
    .step-card::after {
        content: '';
        position: absolute;
        top: 35px;
        /* Mitad de 70px (altura del círculo) */
        right: -50%;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        z-index: -1;
        opacity: 0.2;
    }

    .step-card:last-child::after {
        display: none;
    }
}

/* Línea conectora vertical para móvil */
@media (max-width: 899px) {
    .steps-grid {
        position: relative;
        gap: 0;
    }

    .step-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-bottom: var(--spacing-xl);
        position: relative;
        z-index: 1;
    }
}

/* ===============================================
   PERSONALIZACION - TEXTO SOBRE IMAGEN
   =============================================== */
.personalizacion-section-overlay {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.personalizacion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.personalizacion-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personalizacion-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(14, 38, 67, 0.85) 0%,
            rgba(14, 38, 67, 0.7) 50%,
            rgba(14, 38, 67, 0.5) 100%);
}

.personalizacion-section-overlay .container {
    position: relative;
    z-index: 2;
}

.personalizacion-overlay-content {
    max-width: 600px;
    padding: var(--spacing-xxl) 0;
    text-align: left;
}

.personalizacion-overlay-content .section-title {
    color: var(--color-secondary);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.personalizacion-overlay-content .section-text {
    color: var(--color-secondary);
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Mantener estilos antiguos para compatibilidad */
.personalizacion-section {
    overflow: hidden;
}

.personalizacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.personalizacion-content {
    max-width: 500px;
}

.personalizacion-content .section-title {
    color: var(--color-secondary);
}

.personalizacion-content .section-text {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
}

.personalizacion-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.personalizacion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================================
   CONTACT
   =============================================== */
.contacto-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.contacto-info {
    text-align: left;
}

.contacto-info .section-title {
    color: var(--color-secondary);
    text-align: left;
}

.contacto-info .section-text {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    text-align: left;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-secondary);
    font-size: 1rem;
    transition: var(--transition-fast);
    justify-content: flex-start;
}

.contact-link:hover {
    color: var(--color-white);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(243, 237, 224, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-secondary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(243, 237, 224, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.15);
}

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

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background: var(--color-dark);
    padding: var(--spacing-lg) 0;
    overflow: visible;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-logo-img {
    width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    /* Sin filtro para mostrar el imagotipo con sus colores originales */
    opacity: 0.95;
}

.footer-text p {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: var(--font-weight-thin);
    opacity: 0.7;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(243, 237, 224, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--color-secondary);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    transition: var(--transition-fast);
}

.footer-social-link:hover svg {
    color: var(--color-primary);
}

.footer-credit {
    text-align: left;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(243, 237, 224, 0.1);
}

.footer-credit p {
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: var(--font-weight-thin);
    opacity: 0.6;
    margin: 0;
}

.footer-credit a {
    color: var(--color-secondary);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.footer-credit a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===============================================
   SCROLL TO TOP
   =============================================== */
.scroll-top {
    position: fixed;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) translateZ(0);
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
    will-change: transform, opacity;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-accent);
    transform: translateY(-3px) translateZ(0);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Tablets */
@media (max-width: 1024px) {

    .personalizacion-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .personalizacion-content {
        max-width: none;
        text-align: center;
    }

    .personalizacion-content .section-text {
        text-align: center;
    }

    .personalizacion-content .btn {
        width: 100%;
        justify-content: center;
    }

    .contacto-info {
        text-align: left;
    }

    .contact-links {
        align-items: flex-start;
    }
}

/* Mobile - Miniaturización para parecerse a Web */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        /* Header más compacto */
        --spacing-md: 0.75rem;
        --spacing-lg: 1.25rem;
        /* Menos aire entre elementos */
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
        /* Secciones más pegadas */
    }

    /* TÍTULOS DE SECCIÓN - Tamaño UNIFICADO */
    .section-title {
        font-size: 1.5rem !important;
        font-weight: 600;
        line-height: 1.25;
        margin-bottom: var(--spacing-lg);
    }

    .navbar {
        padding: 0 var(--spacing-md);
    }

    /* Logos MÁS GRANDES en móvil */
    .logo-ola {
        width: 40px;
        height: 40px;
    }

    .logo-letras {
        height: auto;
        width: 130px;
        max-height: none;
        /* Sin cortar */
        object-fit: contain;
    }

    .logo-text-center {
        font-size: 1.1rem;
        letter-spacing: 0.3em;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    /* Menú Hamburguesa CLARO y visible */
    .hamburger {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 99999;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .hamburger span {
        height: 3px;
        background-color: var(--color-secondary);
        border-radius: 2px;
        width: 100%;
        display: block;
        pointer-events: none;
    }

    /* ===== HERO MÓVIL - Diseño INMERSIVO tipo Story ===== */
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        /* Safe viewport height para móviles */
    }

    .hero-content {
        position: absolute;
        top: 0;
        /* Ocupar desde arriba */
        bottom: 0;
        left: 0;
        right: 0;
        padding: var(--spacing-xl);
        padding-top: var(--header-height);
        /* Compensar header */
        /* padding-bottom normal */
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        z-index: 10;
        justify-content: center;
        /* CENTRADO VERTICALMENTE */
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
        margin-bottom: 2rem !important;
        /* Más separado del subtítulo */
        text-align: center;
        max-width: 95%;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem !important;
        /* Más separado del botón */
        line-height: 1.6;
        opacity: 0.95;
        text-align: center;
        max-width: 90%;
    }

    .hero-btn-wrapper {
        margin-top: 0;
        align-self: flex-start;
        text-align: left;
    }

    /* Gradiente DESDE ABAJO - más inmersivo */
    .hero-overlay {
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.9) 0%,
                /* Más oscuro abajo para contraste */
                rgba(0, 0, 0, 0.7) 40%,
                rgba(0, 0, 0, 0.4) 70%,
                rgba(0, 0, 0, 0) 100%) !important;
    }

    /* Scroll indicator CENTRADO y visible */
    .scroll-indicator {
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 50px;
        /* Subido un poco */
        z-index: 20;
    }

    .btn {
        padding: 14px 32px;
        font-size: 1rem;
        border-radius: 50px;
        /* Bordes redondeados para móvil */
    }

    /* ===== BENEFICIOS MÓVIL - Card Unificada ===== */
    .benefits-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: var(--spacing-lg);
    }

    .benefit-card {
        padding: 20px;
        display: grid;
        grid-template-columns: 50px 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: auto;
        /* Título y Texto */
        grid-template-areas:
            "icon title"
            "icon text";
        gap: 0 15px;
        /* Gap horizontal 15px */
        align-items: start;
        background: white;
        /* Tarjeta blanca */
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        min-height: auto;
    }

    /* ICONO A LA IZQUIERDA */
    .benefit-card .benefit-icon {
        grid-area: icon;
        position: relative;
        width: 50px;
        height: 50px;
        background: rgba(14, 38, 67, 0.05);
        /* Gris/Azul muy claro */
        border: none;
        border-radius: 50%;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        /* Centrado verticalmente respecto al alto total o start */
    }

    .benefit-card .benefit-icon svg {
        width: 24px;
        height: 24px;
        color: var(--color-primary);
        /* Icono oscuro */
        stroke-width: 1.5;
    }

    /* TÍTULO - Sin fondo, solo texto destacado */
    .benefit-title {
        grid-area: title;
        background: transparent;
        color: var(--color-primary);
        padding: 0;
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 0.25rem 0;
        /* Separación mínima para la línea */
        border-radius: 0;
        text-align: left;
        display: block;
        min-height: auto;
        line-height: 1.3;
    }

    /* TEXTO - Sin fondo, limpio */
    .benefit-text {
        grid-area: text;
        background: transparent;
        padding: 0;
        font-size: 0.85rem;
        line-height: 1.5;
        color: var(--color-primary);
        opacity: 0.8;
        border: none;
        border-radius: 0;
        text-align: left;
        margin: 0;
        box-shadow: none;
    }

    /* Línea en móvil también más pegada */
    .benefit-text::before {
        margin-bottom: 0.5rem;
        margin-top: 0;
    }

    /* Ajuste fino: centrar icono si el texto es corto, o arriba si es largo?
       Mejor align-self: start con un margin-top visual si es necesario, 
       o center si queremos que flote en el medio. Probemos start para consistencia. */
    .benefit-card .benefit-icon {
        align-self: start;
        margin-top: 2px;
        /* Alineación óptica con el título */
    }

    /* Galería móvil - grid de 2 columnas */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .gallery-section {
        padding-bottom: var(--spacing-lg);
    }

    /* Servicios: 2 columnas compactas */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .service-content {
        padding: 12px;
    }

    .service-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .service-text {
        font-size: 0.75rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Sección PASOS - Título distintivo */
    #como-funciona .section-title {
        font-size: 1.5rem;
        font-weight: 600;
        line-height: 1.25;
        margin-bottom: var(--spacing-xl);
        text-align: center;
    }

    /* Pasos: Lista vertical con LÍNEA CONECTORA */
    .steps-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        margin-left: 20px;
    }


    .step-card {
        padding: 20px 15px 20px 70px;
        display: block;
        text-align: left;
        position: relative;
        border-bottom: 1px solid rgba(14, 38, 67, 0.1);
        background: none;
    }

    .step-card:last-child {
        border-bottom: none;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 0;
        position: absolute;
        left: 0;
        top: 20px;
        z-index: 2;
        background: var(--color-primary);
        color: var(--color-secondary);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .step-title {
        margin: 0 0 8px 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--color-primary);
    }

    /* Descripción VISIBLE */
    .step-text {
        display: block;
        font-size: 0.9rem;
        line-height: 1.5;
        color: var(--color-primary);
        opacity: 0.75;
        margin: 0;
    }

    .gallery-arrow {
        width: 32px;
        height: 32px;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .footer-logo-img {
        width: 100px;
    }

    /* Personalización overlay responsive compacta */
    .personalizacion-section-overlay {
        min-height: 300px;
    }

    .personalizacion-overlay-content {
        padding: var(--spacing-lg);
        text-align: center;
    }

    .personalizacion-overlay-content .section-title {
        font-size: 1.75rem;
        /* Título más grande */
        margin-bottom: var(--spacing-md);
    }

    .personalizacion-overlay-content .section-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-lg);
    }

    /* Botón en UNA LÍNEA */
    .personalizacion-overlay-content .btn {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    /* ===== SPLIT SECTION MÓVIL - SIN IMAGEN ===== */
    .section-split {
        background: var(--color-secondary);
        min-height: auto;
        padding: 0;
    }

    .split-container {
        display: block;
        min-height: auto;
    }

    /* OCULTAR IMAGEN COMPLETAMENTE */
    .split-image {
        display: none;
    }

    /* Resetear estilos de card flotante a bloque normal */
    .split-content {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: var(--spacing-xl) var(--spacing-lg);
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        text-align: center;
    }

    .split-content .eyebrow {
        color: var(--color-primary);
        opacity: 0.6;
        font-size: 0.8rem;
    }

    .split-content .section-title {
        color: var(--color-primary) !important;
        font-size: 1.5rem !important;
        margin-bottom: var(--spacing-md);
    }

    .split-content .section-text {
        color: var(--color-primary) !important;
        opacity: 0.8;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-md);
    }

    /* Mostrar el texto de nuevo ya que no hay imagen compitiendo */
    .split-content .section-text:nth-of-type(2) {
        display: block;
        margin-top: 1rem;
    }

    .split-content .btn {
        background: var(--color-primary);
        color: var(--color-secondary);
        width: auto;
        display: inline-flex;
        margin-top: var(--spacing-md);
    }

    /* Ubicación map mobile */
    .map-container {
        height: 250px;
    }

    .map-content {
        padding: var(--spacing-lg);
        position: relative;
        /* En móvil quizás mejor no superponer para que se lea bien el mapa? 
           El cliente quería similar a web, en web es superpuesto. Mantengamos superpuesto pero compacto. */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .menu-link {
        font-size: 1.25rem;
    }

    .mobile-menu {
        max-width: 100%;
        padding: calc(var(--header-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===============================================
   ANIMATIONS
   =============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AOS Custom Animations */
[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===============================================
   WHATSAPP FLOATING BUTTON
   =============================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    background: #20BA5C;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ===============================================
   MAP SECTION
   =============================================== */
.section-map {
    position: relative;
    background: var(--color-secondary);
}

.map-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--color-secondary);
}

.map-content .eyebrow {
    color: var(--color-primary);
}

.map-content .section-title {
    font-family: var(--font-family-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.map-content .section-text {
    color: var(--color-primary);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(20%) contrast(1.1);
    transition: filter var(--transition-normal);
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* Responsive map */
@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

/* ===============================================
   FIXES - LOGO, BENEFICIOS, MAPA
   =============================================== */

/* Fix Logo - quitar filtro blanco */
.logo-icon {
    filter: none !important;
    opacity: 1 !important;
}

/* Footer logo también */
.footer-logo-img {
    filter: none !important;
}

/* Beneficios - mejor alineación de títulos y textos */
.benefit-card {
    justify-content: flex-start;
    text-align: left;
    align-items: flex-start;
}

.benefit-title {
    min-height: auto;
    display: block;
    text-align: left;
}

.benefit-text {
    text-align: left;
}

/* Mapa - texto superpuesto sobre el mapa */
.section-map {
    position: relative;
}

.map-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(243, 237, 224, 0.95) 0%, rgba(243, 237, 224, 0.8) 70%, transparent 100%);
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-xxl);
}

/* ===============================================
   MOBILE OPTIMIZATIONS - FINAL
   =============================================== */

/* Improve tap targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 48px;
        padding: 14px 24px;
    }

    .hamburger {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: stretch;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 99999;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .contact-link {
        min-height: 48px;
        padding: 12px 0;
    }

    .gallery-arrow {
        width: 44px;
        height: 44px;
    }

    /* Galería móvil - imágenes más verticales y grandes */
    .gallery-slider {
        min-height: 70vh;
    }

    .gallery-slide {
        aspect-ratio: 4/5;
        min-height: 70vh;
    }

    .gallery-section {
        padding-bottom: var(--spacing-lg);
    }

    /* Hero móvil - todo alineado a la izquierda */
    .hero-content {
        padding: var(--spacing-lg);
        padding-top: calc(var(--header-height) + var(--spacing-lg));
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title,
    .hero-title-serif {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        text-align: left;
    }

    .hero-subtitle {
        text-align: left;
        max-width: 100%;
    }

    .hero-btn-wrapper {
        text-align: left;
        width: auto;
    }

    /* Improve scroll indicator visibility */
    .scroll-indicator {
        bottom: 20px;
    }

    /* Better split section on mobile - Diseño que transforma */
    .split-content {
        padding: var(--spacing-lg);
        text-align: left;
        align-items: flex-start;
    }

    .content-wrapper {
        max-width: 100%;
        text-align: left;
    }

    .split-content .section-title,
    .split-content .section-text,
    .split-content .eyebrow {
        text-align: left;
    }

    /* Personalization section - Diseño a tu medida */
    .personalizacion-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .personalizacion-content {
        max-width: 100%;
        order: 1;
    }

    .personalizacion-image {
        order: 2;
    }

    .personalizacion-overlay-content {
        text-align: left;
        align-items: flex-start;
    }

    .personalizacion-overlay-content .section-title,
    .personalizacion-overlay-content .section-text {
        text-align: left;
    }

    /* Contact section - Alineado a la izquierda */
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .contacto-info {
        text-align: left;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .contacto-info .section-title,
    .contacto-info .section-text {
        text-align: left;
    }

    .contact-link {
        justify-content: flex-start;
        /* Alinea los items flex al inicio */
        padding-left: 0;
    }

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

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-credit {
        text-align: left;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-title-serif {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .benefit-card {
        min-height: auto;
        padding: var(--spacing-md);
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Optimize scrolling performance */
* {
    -webkit-tap-highlight-color: transparent;
}

/* GPU acceleration for smooth animations */
@media (prefers-reduced-motion: no-preference) {

    .benefit-card,
    .service-card,
    .gallery-track,
    .scroll-top,
    #header {
        backface-visibility: hidden;
        perspective: 1000px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-image {
        animation: none !important;
    }
}

/* Print styles */
@media print {

    .whatsapp-float,
    .scroll-top,
    .hamburger,
    .mobile-menu,
    .scroll-indicator {
        display: none !important;
    }
}

/* Espacio extra al final para el botón de WhatsApp en móvil */
@media (max-width: 768px) {
    footer {
        padding-bottom: 80px !important;
    }
}