/* ============================================================
   Papelsur — Hoja de estilos
   Diseño moderno, limpio y responsivo
   ============================================================ */

:root {
    --brand: #1d6f6b;
    --brand-dark: #12504d;
    --brand-light: #e7f1f0;
    --accent: #d99a4e;
    --accent-dark: #b97e36;
    --ink: #1f2a2e;
    --muted: #5a6a6e;
    --paper: #faf8f4;
    --white: #ffffff;
    --line: #e6e3dc;
    --shadow-sm: 0 2px 8px rgba(18, 80, 77, .06);
    --shadow-md: 0 12px 32px rgba(18, 80, 77, .12);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1140px;
    --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.15; font-weight: 600; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ----- Utilidades ----- */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: .6rem;
}

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--white); }
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--ink); }
.section__head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3rem); text-align: center; }
.section__lead { color: var(--muted); font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-2 p { color: var(--muted); margin-bottom: 1rem; }

/* ----- Botones ----- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #2a1c08; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--brand-dark); }
.btn--ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ----- Barra superior ----- */
.topbar {
    background: var(--brand-dark);
    color: #dceeec;
    font-size: .85rem;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 1.25rem; }
.topbar__links a:hover { color: #fff; text-decoration: underline; }

/* ----- Cabecera ----- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 248, 244, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.brand__logo { height: 48px; width: auto; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.15rem; letter-spacing: .01em; }
.brand__text small { color: var(--muted); font-size: .72rem; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
    padding: .55rem .9rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; color: var(--ink);
    transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.nav__cta { background: var(--brand); color: #fff !important; }
.nav__cta:hover { background: var(--brand-dark) !important; }

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: clamp(480px, 78vh, 680px);
    display: flex; align-items: center;
    color: #fff;
    background: url('../img/nave.jpg') center/cover no-repeat;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(18, 80, 77, .92) 0%, rgba(18, 80, 77, .72) 45%, rgba(18, 80, 77, .35) 100%);
}
.hero__content { position: relative; max-width: 640px; padding: 3rem 0; }
.hero__logo-wrap {
    display: inline-flex;
    margin-bottom: 1.6rem;
}
.hero__logo { height: clamp(64px, 10vw, 96px); width: auto; display: block; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
.hero__eyebrow {
    text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
    font-size: .82rem; color: var(--accent); margin-bottom: 1rem;
}
.hero__title { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin-bottom: 1.2rem; }
.hero__subtitle { font-size: clamp(1rem, 2.2vw, 1.2rem); color: #e8f2f1; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__actions .btn--ghost { color: #fff; }

/* ----- Indicadores ----- */
.stats { background: var(--brand); color: #fff; }
.stats__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; padding: 2.5rem 0;
}
.stat { text-align: center; }
.stat__num { display: block; font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: #fff; }
.stat__label { font-size: .9rem; color: #cfe6e4; }

/* ----- Media ----- */
.media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.media--map { height: 380px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.media--map iframe { height: 100%; }

/* ----- Checklist ----- */
.checklist { margin-top: 1.5rem; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    background: var(--brand-light); color: var(--brand-dark);
    display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}

/* ----- Productos ----- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-light); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__body h3 { font-size: 1.3rem; color: var(--ink); }
.card__body p { color: var(--muted); font-size: .92rem; }
.card__body ul { display: grid; gap: .3rem; margin-top: .2rem; }
.card__body ul li { position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--ink); }
.card__body ul li::before { content: "•"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 800; }
.card__tag {
    margin-top: auto; align-self: flex-start;
    background: var(--brand-light); color: var(--brand-dark);
    font-size: .78rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px;
}

/* ----- Sectores ----- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sector {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.75rem;
    text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.sector__ico { font-size: 2.2rem; display: block; margin-bottom: .6rem; }
.sector h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: .25rem; }
.sector p { color: var(--muted); font-size: .9rem; }
.sectors__note { text-align: center; margin-top: 2rem; color: var(--muted); }
.sectors__note a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; }

/* ----- CTA ----- */
.cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.cta p { color: #d6ebe9; margin-top: .3rem; }

/* ----- Contacto ----- */
.contact-list { display: grid; gap: 1.2rem; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list__ico {
    flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px;
    background: var(--brand-light); display: grid; place-items: center; font-size: 1.2rem;
}
.contact-list a:hover { color: var(--brand-dark); text-decoration: underline; }

/* ----- Pie ----- */
.footer { background: var(--ink); color: #c9d3d4; padding: 2.5rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: .7rem; }
.footer__brand strong { color: #fff; display: block; }
.footer__brand small { color: #9fb0b1; font-size: .75rem; }
.brand__logo--footer { height: 44px; }
.footer__nav { display: flex; gap: 1.25rem; }
.footer__nav a { font-weight: 600; }
.footer__nav a:hover { color: #fff; }
.footer__copy { width: 100%; text-align: center; font-size: .82rem; color: #8b9b9c; border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; margin-top: .5rem; }

/* ----- Animación reveal ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 960px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch;
        background: var(--white);
        padding: 1rem 1.25rem 1.5rem;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform .3s ease;
        gap: .25rem;
    }
    .nav.is-open { transform: translateY(0); }
    .nav a { padding: .85rem 1rem; }
    .nav__cta { text-align: center; margin-top: .5rem; }

    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    .grid-2 { grid-template-columns: 1fr; }
    .media--map { height: 320px; }
    .topbar__item { display: none; }
    .topbar__inner { justify-content: center; }
}

@media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
    .sectors { grid-template-columns: 1fr 1fr; }
    .stats__grid { gap: 1rem; }
    .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover, .sector:hover { transform: none; }
}
