/* ============================================================
   Lavandería de Villanúa — estilos
   Estética limpia, luminosa, local y profesional
   ============================================================ */

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

:root {
    --ink: #16324a;
    --muted: #5b7184;
    --blue: #2e86c1;
    --blue-deep: #1a5276;
    --blue-soft: #5dade2;
    --sky: #eef6fc;
    --cream: #faf7f1;
    --wood: #bd8b5e;
    --line: #e6edf3;
    --white: #ffffff;
    --green: #2ecc71;

    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 10px rgba(22,50,74,0.06);
    --shadow-md: 0 14px 40px rgba(22,50,74,0.12);
    --shadow-lg: 0 30px 70px rgba(22,50,74,0.16);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 72px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* Accesibilidad */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--blue-deep); color: #fff; padding: 12px 20px;
    border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: rgba(255,255,255,0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 1.1rem; color: var(--ink); }
.logo-icon { display: inline-flex; }
.logo-text { font-weight: 600; }
.logo-text strong { color: var(--blue); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > li > a {
    font-size: 0.92rem; font-weight: 500; color: var(--muted);
    position: relative; transition: color .25s var(--ease);
}
.nav-links > li > a:not(.nav-cta):hover { color: var(--blue-deep); }
.nav-links > li > a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
    background: var(--blue); border-radius: 2px; transition: width .25s var(--ease);
}
.nav-links > li > a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
    background: var(--blue-deep); color: #fff !important; padding: 10px 22px;
    border-radius: 50px; font-weight: 600; font-size: 0.88rem;
    transition: transform .2s var(--ease), background .25s var(--ease);
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
    display: block; width: 24px; height: 2px; background: var(--ink);
    margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    overflow: hidden; padding-top: var(--nav-h);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-bg picture, .hero-bg img { width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; transform: scale(1.12); }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(105deg, rgba(12,35,64,0.82) 0%, rgba(20,55,85,0.55) 45%, rgba(46,134,193,0.18) 100%),
        linear-gradient(to top, rgba(12,35,64,0.45), transparent 40%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 660px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px); padding: 8px 18px; border-radius: 50px;
    color: #fff; font-size: 0.85rem; font-weight: 500; margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }
.hero h1 {
    font-family: 'Playfair Display', serif; font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 4.5rem); color: #fff;
    letter-spacing: -0.01em; margin-bottom: 22px;
}
.hero h1 .accent { color: #ffe7b3; }
.hero-sub {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,0.9);
    max-width: 540px; margin-bottom: 36px; font-weight: 300;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5);
    border-radius: 16px; display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span { width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(10px); } }

/* ===== BOTONES ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 1rem;
    font-family: inherit; cursor: pointer; border: none; line-height: 1;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn-primary { background: var(--wood); color: #fff; box-shadow: 0 8px 24px rgba(189,139,94,0.35); }
.btn-primary:hover { background: #a9794f; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(189,139,94,0.45); }
.btn-secondary { background: rgba(255,255,255,0.16); color: #fff; border: 2px solid rgba(255,255,255,0.4); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,0.35); }
.btn-whatsapp:hover { background: #1eb858; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== SECCIONES BASE ===== */
section { padding: 96px 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 0.8rem; font-weight: 700; color: var(--blue);
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px;
}
.section-label .line { width: 28px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-title {
    font-family: 'Playfair Display', serif; font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.01em; margin-bottom: 16px;
}
.section-subtitle { font-size: 1.08rem; color: var(--muted); max-width: 580px; }
.section-body { font-size: 1.06rem; color: var(--muted); margin-bottom: 24px; }

/* ===== INTRO / VENTAJAS ===== */
.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.feature {
    background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 54px; height: 54px; border-radius: 14px; background: #fff; color: var(--blue);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ===== SHOWCASE (texto + imagen alternos) ===== */
.showcase { background: var(--white); }
.showcase.alt { background: var(--cream); }
.showcase-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.showcase-text .section-body { margin-bottom: 20px; }
.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); font-weight: 500; }
.ticks li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
    border-radius: 50%; background: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
    background-color: var(--green);
}

/* ===== EXPAND IMAGE (núcleo del efecto GSAP) ===== */
.expand-image {
    position: relative; overflow: hidden; border-radius: 12px;
    box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10; margin: 0;
    background: var(--sky);
}
.expand-image__inner { display: block; width: 100%; height: 120%; position: relative; top: -10%; will-change: transform; }
.expand-image__inner img { width: 100%; height: 100%; object-fit: cover; }
.expand-image--wide { aspect-ratio: 21 / 9; max-width: 1100px; margin: 0 auto; }

/* Bloque visual grande */
.bigvisual { background: var(--white); padding: 40px 0 96px; }
.bigvisual .container, .bigvisual { }
.bigvisual .expand-image { width: min(96%, 1100px); margin: 0 auto; }
.bigvisual-caption {
    position: absolute; left: 24px; bottom: 22px; z-index: 3;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    padding: 12px 20px; border-radius: 10px; box-shadow: var(--shadow-sm);
    font-size: 0.95rem; font-weight: 500; max-width: 80%;
}

/* ===== CLIENTES ===== */
.clientes { background: var(--sky); }
.clientes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.cliente-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 36px 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cliente-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cliente-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.cliente-card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.cliente-card p { color: var(--muted); font-size: 0.98rem; }

/* ===== UBICACIÓN ===== */
.ubicacion { background: var(--white); }
.ubicacion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.ubicacion-info { display: flex; flex-direction: column; gap: 20px; }
.info-item {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.info-icon {
    width: 46px; height: 46px; min-width: 46px; border-radius: 12px;
    background: var(--sky); color: var(--blue-deep);
    display: flex; align-items: center; justify-content: center;
}
.info-item h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.info-item p { font-size: 1.05rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.mapa { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 380px; }
.mapa iframe { width: 100%; height: 100%; border: 0; }

/* ===== CONTACTO ===== */
.contacto { background: var(--blue-deep); color: #fff; position: relative; overflow: hidden; }
.contacto::before {
    content: ''; position: absolute; top: -180px; right: -160px; width: 480px; height: 480px;
    border-radius: 50%; background: rgba(93,173,226,0.16);
}
.contacto-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.contacto .section-label { color: var(--blue-soft); }
.contacto .section-label .line { background: var(--blue-soft); }
.contacto .section-title { color: #fff; }
.contacto .section-body { color: rgba(255,255,255,0.78); }
.contacto-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.contacto-card {
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius-lg); padding: 36px 32px; backdrop-filter: blur(6px);
}
.contacto-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 20px; }
.contacto-card ul { display: flex; flex-direction: column; gap: 16px; }
.contacto-card li { display: flex; gap: 14px; align-items: center; color: rgba(255,255,255,0.85); font-size: 1rem; }
.contacto-card li .ci { font-size: 1.15rem; }
.contacto-card a { color: #fff; font-weight: 600; }
.contacto-card a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer { background: #0d1f2e; color: rgba(255,255,255,0.55); padding: 56px 0 28px; }
.footer-content { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.logo--footer { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 0.92rem; line-height: 1.6; }
.footer-links h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: 0.82rem; }
.footer-legal { color: rgba(255,255,255,0.35); font-size: 0.78rem; }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed; right: 24px; bottom: 24px; z-index: 999;
    width: 58px; height: 58px; background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,0.45); transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================================================
   ESTADOS INICIALES PARA ANIMACIÓN (solo si JS activo)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .expand-image {
    opacity: 0.6; transform: scale(0.85) translateY(80px); border-radius: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .showcase-grid { grid-template-columns: 1fr; gap: 36px; }
    .showcase.alt .expand-image { order: -1; }
    .showcase .showcase-text { order: 1; }
    .ubicacion-grid { grid-template-columns: 1fr; gap: 36px; }
    .contacto-inner { grid-template-columns: 1fr; gap: 36px; }
    .intro-grid, .clientes-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: #fff; padding: 16px 24px 24px; box-shadow: var(--shadow-md);
        border-top: 1px solid var(--line);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform .25s var(--ease), opacity .25s var(--ease);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links > li > a { padding: 10px 0; }
    .nav-cta { text-align: center; padding: 13px; margin-top: 6px; }
    .mobile-toggle { display: block; }

    section { padding: 68px 0; }
    .intro-grid, .clientes-grid { grid-template-columns: 1fr; }
    .hero-buttons .btn { flex: 1 1 auto; }
    .expand-image { aspect-ratio: 4 / 3; }
    .expand-image--wide { aspect-ratio: 4 / 3; }
    .footer-content { flex-direction: column; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
    .container { padding: 0 18px; }
    .hero-content { max-width: 100%; }
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal, .js .expand-image { opacity: 1 !important; transform: none !important; border-radius: 12px; }
    .hero-bg img { transform: scale(1); }
    .hero-badge .dot, .hero-scroll span { animation: none; }
    * { scroll-behavior: auto !important; }
}
