/* ============================================================
   Gestologia — Website (BlueWavePixel)
   Paleta azul corporativo + accent teal. Mobile-first.
   ============================================================ */

:root {
    --primary: #14487c;
    --primary-dark: #0e3258;
    --primary-light: #3a72ad;
    --accent: #16b5a3;
    --accent-dark: #0e8e80;

    --dark: #14202e;
    --light: #f5f8fb;
    --white: #ffffff;
    --text: #2c3a47;
    --text-light: #5e6f7e;
    --border: #dfe7ef;

    --section-padding: 5rem 0;
    --container-width: 1180px;

    --shadow-sm: 0 2px 6px rgba(20,72,124,0.08);
    --shadow-md: 0 6px 20px rgba(20,72,124,0.12);
    --shadow-lg: 0 14px 40px rgba(20,72,124,0.18);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; color: var(--dark); font-weight: 700; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img, iframe { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 820px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 1.6rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: 2px solid transparent; transition: all var(--transition);
    text-align: center;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--light { background: #fff; color: var(--primary); border-color: #fff; }
.btn--light:hover { background: var(--light); color: var(--primary-dark); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---- HEADER / NAV ---- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: transparent; transition: background var(--transition), box-shadow var(--transition);
}
.header.scroll-header { background: var(--white); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: #fff; }
.scroll-header .nav__logo { color: var(--primary); }
.nav__logo-mark {
    display: grid; place-items: center; width: 38px; height: 38px;
    background: var(--accent); color: #fff; border-radius: 10px; font-weight: 800; font-size: 1.2rem;
}
.nav__logo-text { letter-spacing: 0.3px; }
.nav__menu { margin-left: auto; }
.nav__list { display: flex; gap: 1.6rem; list-style: none; }
.nav__link { color: rgba(255,255,255,0.92); font-weight: 500; font-size: 0.95rem; }
.scroll-header .nav__link { color: var(--text); }
.nav__link:hover { color: var(--accent); }
.nav__cta {
    margin-left: 1.6rem; background: var(--accent); color: #fff; padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
}
.nav__cta:hover { background: var(--accent-dark); color: #fff; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger, .hamburger::before, .hamburger::after {
    display: block; width: 26px; height: 2px; background: #fff; transition: all var(--transition); position: relative;
}
.scroll-header .hamburger, .scroll-header .hamburger::before, .scroll-header .hamburger::after { background: var(--primary); }
.hamburger::before, .hamburger::after { content: ""; position: absolute; }
.hamburger::before { top: -8px; } .hamburger::after { top: 8px; }
.nav__toggle.active .hamburger { background: transparent; }
.nav__toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav__toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ---- HERO ---- */
.hero {
    position: relative; min-height: 92vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--accent-dark) 130%);
    color: #fff; overflow: hidden;
}
.hero__overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(22,181,163,0.25), transparent 45%);
}
.hero__content { position: relative; padding: 7rem 1.5rem 4rem; max-width: 820px; }
.hero__eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; margin-bottom: 1.2rem; }
.hero__subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.9); max-width: 620px; margin-bottom: 2rem; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero__trust { display: flex; gap: 2.5rem; list-style: none; flex-wrap: wrap; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-size: 1.9rem; color: var(--accent); font-family: var(--font-heading); }
.hero__trust span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* ---- SECTIONS ---- */
.section { padding: var(--section-padding); }
.section--alt { background: var(--light); }
.section__eyebrow { display: inline-block; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; margin-bottom: 0.7rem; }
.section__eyebrow--light { color: var(--accent); }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.section__title--light { color: #fff; }
.section__lead { color: var(--text-light); max-width: 620px; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__head .section__lead { margin: 0 auto; }
.section__grid { display: grid; gap: 3rem; align-items: center; }
.section__text p { margin-bottom: 1rem; color: var(--text-light); }
.section__text strong { color: var(--text); }

.check-list { list-style: none; margin-top: 1.2rem; }
.check-list li { position: relative; padding: 0.4rem 0 0.4rem 1.9rem; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.about-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 3rem 2rem; text-align: center; box-shadow: var(--shadow-lg);
}
.about-card__icon { font-size: 3rem; }
.about-card__big { font-size: 2.6rem; font-weight: 800; font-family: var(--font-heading); margin: 0.5rem 0; }
.about-card__small { color: rgba(255,255,255,0.9); }

/* ---- CARDS / SERVICES ---- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.service-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 2rem; transition: transform var(--transition), box-shadow var(--transition); box-shadow: var(--shadow-sm);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.service-card__icon { font-size: 2.4rem; margin-bottom: 0.8rem; }
.service-card h3 { color: var(--primary); margin-bottom: 0.7rem; }
.service-card p { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }
.service-card ul { list-style: none; }
.service-card li { position: relative; padding: 0.3rem 0 0.3rem 1.5rem; font-size: 0.9rem; color: var(--text); }
.service-card li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.feature { text-align: center; padding: 1.5rem 1rem; }
.feature__icon { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.feature h4 { color: var(--primary); margin-bottom: 0.4rem; }
.feature p { color: var(--text-light); font-size: 0.9rem; }

/* ---- ÁREA RESERVADA CTA ---- */
.section--cta { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; }
.area-reservada { display: grid; gap: 2rem; align-items: center; }
.area-reservada__text p { color: rgba(255,255,255,0.9); }
.area-reservada__action { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.area-reservada__action small { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: 0.8rem; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.2rem; }
.faq__item summary { cursor: pointer; padding: 1.1rem 0; font-weight: 600; color: var(--dark); list-style: none; position: relative; padding-right: 2rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 0 1.1rem; color: var(--text-light); font-size: 0.95rem; }

/* ---- CONTACTOS ---- */
.contactos__grid { display: grid; gap: 2.5rem; }
.contact-block { margin-bottom: 1.4rem; }
.contact-block h4 { color: var(--primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.contact-block p { color: var(--text-light); font-size: 0.95rem; }
.contact-block small { color: var(--text-light); font-size: 0.72rem; display: block; }
.contactos__form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.contactos__form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark); margin-bottom: 1rem; }
.contactos__form input, .contactos__form textarea, .contactos__form select {
    width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--light);
}
.contactos__form input:focus, .contactos__form textarea:focus, .contactos__form select:focus { outline: none; border-color: var(--accent); background: #fff; }
.rgpd-checkbox { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; font-size: 0.8rem !important; color: var(--text-light) !important; }
.rgpd-checkbox input { width: auto; margin-top: 0.25rem; }
.form-note { margin-top: 1rem; font-size: 0.85rem; color: var(--accent-dark); }
.contactos__mapa { margin-top: 2.5rem; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.contactos__mapa iframe { width: 100%; height: 340px; border: 0; }

/* ---- FOOTER ---- */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 3.5rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.nav__logo--footer { color: #fff; margin-bottom: 1rem; }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer__col p, .footer__col li { font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer__col ul { list-style: none; }
.footer__col a { color: rgba(255,255,255,0.75); }
.footer__col a:hover { color: var(--accent); }
.footer__col small { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.footer__legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; margin-bottom: 1rem; }
.footer__legal p { font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer__bottom { display: flex; flex-direction: column; gap: 0.4rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.5rem; }
.footer__bottom p { font-size: 0.82rem; }
.footer__credit a { color: var(--accent); font-weight: 600; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
    position: fixed; bottom: 1.6rem; right: 1.6rem; width: 56px; height: 56px;
    background: #25D366; border-radius: 50%; display: grid; place-items: center;
    box-shadow: var(--shadow-lg); z-index: 999; transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ---- MODAIS ---- */
.modal { position: fixed; inset: 0; background: rgba(20,32,46,0.7); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 1.5rem; }
.modal.open { display: flex; }
.modal__content { background: #fff; border-radius: var(--radius-md); max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 2.5rem; position: relative; }
.modal__content h2 { color: var(--primary); margin-bottom: 1rem; }
.modal__content h3 { color: var(--dark); font-size: 1rem; margin: 1.2rem 0 0.4rem; }
.modal__content p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 0.6rem; }
.modal__close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--text-light); cursor: pointer; }
.modal__close:hover { color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
    .nav__menu {
        position: fixed; top: 76px; right: -100%; width: 75%; max-width: 320px; height: calc(100vh - 76px);
        background: var(--white); box-shadow: var(--shadow-lg); transition: right var(--transition); margin: 0; padding: 2rem;
    }
    .nav__menu.show-menu { right: 0; }
    .nav__list { flex-direction: column; gap: 1.4rem; }
    .nav__link { color: var(--text); }
    .nav__cta { display: none; }
    .nav__toggle { display: block; }
}

@media (min-width: 768px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .cards--4 { grid-template-columns: repeat(2, 1fr); }
    .contactos__grid { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .area-reservada { grid-template-columns: 1.6fr 1fr; }
    .footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
    .section__grid { grid-template-columns: 1fr 1.3fr; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .cards--4 { grid-template-columns: repeat(4, 1fr); }
    .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
}
