:root {
    --color-primary: #0f766e;
    --color-primary-dark: #0b5d57;
    --color-accent: #f97316;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-border: #e5e7eb;
    --radius: 12px;
    --max-width: 1140px;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #e5e7eb;
        --color-text-muted: #9ca3af;
        --color-bg: #0f1417;
        --color-bg-alt: #171e22;
        --color-border: #2a3339;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Header
   Fondo siempre claro (fijo, no sigue el dark mode): el logo trae texto
   negro fijo, así que el header/footer se mantienen como "barra de marca"
   con colores propios en vez de heredar las variables de tema. */
.header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
    transition: box-shadow 0.2s ease;
}
.header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
}

.brand__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    color: #1f2937;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav a:hover {
    color: var(--color-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.nav__toggle span {
    display: block;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.hero__slides {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero__slide.is-active {
    opacity: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 17, 0.55) 0%, rgba(10, 15, 17, 0.65) 100%);
}

.hero__inner {
    position: relative;
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    max-width: 780px;
    margin: 0 auto 1rem;
    color: #fff;
}

.hero__lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hero__dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    border: 2px solid transparent;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}
.btn--primary:hover {
    background: #ea6a0c;
}

.btn--outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}
.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}
.reviews-badge:hover {
    background: rgba(255, 255, 255, 0.2);
}
.reviews-badge__stars {
    color: #fbbf24;
    letter-spacing: 1px;
}

/* Trust bar */
.trust-bar {
    background: var(--color-primary);
    color: #fff;
    padding: 2rem 0;
}
.trust-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.trust-item__value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
}
.trust-item__label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Sections */
.section {
    padding: 5rem 0;
}
.section--alt {
    background: var(--color-bg-alt);
}
.section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.feature {
    text-align: center;
}
.feature__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    color: var(--color-primary);
    border-radius: 50%;
}
.feature h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}
.feature p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Product cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card__img {
    transform: scale(1.05);
}
.card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}
.card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}
.about__text p {
    color: var(--color-text-muted);
}
.about__img img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}
.contacto__lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.contacto__lista li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.contacto__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contacto__lista a {
    color: var(--color-primary);
    text-decoration: none;
}
.contacto__lista a:hover {
    text-decoration: underline;
}
.contact-info .btn {
    align-self: flex-start;
}
.contact-map {
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

/* WhatsApp floating button */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: transform 0.2s ease;
}
.whatsapp-fab:hover {
    transform: scale(1.08);
}

/* Footer: fondo claro fijo, mismo motivo que el header (logo con texto negro) */
.footer {
    border-top: 1px solid #e5e7eb;
    padding: 2.5rem 0;
    background: #f8fafc;
}
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.footer__logo {
    height: 34px;
    width: auto;
}
.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.footer__links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer__links a:hover {
    color: var(--color-primary);
}
.footer__copy {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 860px) {
    .about {
        grid-template-columns: 1fr;
    }
    .about__img {
        order: -1;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    .nav__toggle {
        display: flex;
    }
    .nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        gap: 1rem;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .trust-bar__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
