/* =========================================
   Club Deportivo La Raíz · Estilos
   Paleta: rosa del escudo + negro
   ========================================= */

:root {
    --bg: #0A0A0A;
    --bg-alt: #141414;
    --bg-card: #1A1A1A;
    --pink: #F4A6BD;
    --pink-strong: #FF7BA8;
    --pink-soft: rgba(244, 166, 189, 0.12);
    --text: #F5F5F5;
    --text-dim: #B8B8B8;
    --line: rgba(244, 166, 189, 0.18);
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1180px;
    --radius: 14px;
    --shadow: 0 20px 50px -20px rgba(244, 166, 189, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,10,10,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 1.5px; color: var(--text); white-space: nowrap; }
.nav__name { transition: color 0.2s; }
.nav__brand:hover .nav__name { color: var(--pink); }
.nav__logo { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(244,166,189,0.35)); }
.nav__menu { display: flex; gap: 32px; align-items: center; }
.nav__menu a { font-size: 0.92rem; font-weight: 500; color: var(--text-dim); transition: color 0.2s; position: relative; }
.nav__menu a:hover { color: var(--pink); }
.nav__menu a:not(.nav__cta)::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--pink); transition: width 0.25s; }
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { background: var(--pink); color: var(--bg) !important; padding: 10px 20px; border-radius: 50px; font-weight: 600; transition: background 0.2s, transform 0.2s; }
.nav__cta:hover { background: var(--pink-strong); transform: translateY(-1px); }
.lang-switch { display: inline-flex; align-items: center; background: rgba(244,166,189,0.08); border: 1px solid var(--line); border-radius: 50px; padding: 3px; margin-left: 12px; }
.lang-switch button { background: transparent; border: none; color: var(--text-dim); padding: 6px 14px; font-family: var(--font-display); font-size: 0.88rem; letter-spacing: 2px; cursor: pointer; border-radius: 50px; transition: background 0.25s, color 0.25s; }
.lang-switch button.is-active { background: var(--pink); color: var(--bg); }
.lang-switch button:hover:not(.is-active) { color: var(--pink); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--pink); transition: 0.3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px 0 80px; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(244,166,189,0.18), transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(255,123,168,0.10), transparent 50%), var(--bg); z-index: 0; }
.hero__bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(244,166,189,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(244,166,189,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); }
.hero__inner { position: relative; z-index: 1; }
.hero__shield { width: 280px; height: 280px; margin: 24px auto 32px; filter: drop-shadow(0 0 50px rgba(244,166,189,0.45)); animation: float 6s ease-in-out infinite; }
.hero__shield img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__tag { color: var(--pink); font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 4px; margin-bottom: 8px; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 5.8rem); line-height: 1; letter-spacing: 2px; margin-bottom: 14px; }
.hero__title span { color: var(--pink); display: inline-block; position: relative; }
.hero__sub { font-size: 1.15rem; color: var(--text-dim); margin: 0 auto 40px; max-width: 540px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 2px solid var(--pink); border-radius: 12px; z-index: 1; }
.hero__scroll span { display: block; width: 3px; height: 8px; background: var(--pink); border-radius: 2px; margin: 6px auto 0; animation: scroll 1.6s ease-in-out infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px; transition: all 0.25s; cursor: pointer; border: 2px solid transparent; }
.btn--primary { background: var(--pink); color: var(--bg); }
.btn--primary:hover { background: var(--pink-strong); transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--pink-strong); }
.btn--ghost { border-color: var(--pink); color: var(--pink); }
.btn--ghost:hover { background: var(--pink-soft); transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
button.btn { font-family: inherit; }

/* SECTIONS */
.section { padding: 50px 0; position: relative; scroll-margin-top: 88px; }
.section--alt { background: var(--bg-alt); }
.section--centered { text-align: center; padding: 56px 0; }
.section--centered .section__title { text-align: center; margin-bottom: 0; }
.section__title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: 1.5px; margin-bottom: 24px; line-height: 1; }
.section__note { margin-top: 32px; color: var(--text-dim); font-size: 0.9rem; text-align: center; font-style: italic; }
.eyebrow { color: var(--pink); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 3px; margin-bottom: 12px; text-transform: uppercase; }
.lead { font-size: 1.15rem; color: var(--text); margin-bottom: 18px; max-width: 540px; }
.section p { color: var(--text-dim); max-width: 560px; margin-bottom: 16px; }
.center { text-align: center; margin-top: 48px; }

/* COMING SOON */
.coming-soon { display: flex; justify-content: center; align-items: center; padding: 16px 20px 0; }
.coming-soon__badge { display: inline-block; font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: 6px; color: var(--pink); padding: 22px 50px; border: 2px solid var(--pink); border-radius: 60px; background: var(--pink-soft); text-transform: uppercase; box-shadow: 0 0 50px rgba(244,166,189,0.18); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 50px rgba(244,166,189,0.18); } 50% { box-shadow: 0 0 70px rgba(244,166,189,0.32); } }

/* GRID 2 */
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.club__visual { display: flex; justify-content: center; align-items: center; position: relative; }
.club__shield { width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 0 60px rgba(244,166,189,0.35)); }

/* NEWS */
.news__head { text-align: center; margin-bottom: 8px; }
.news__head .eyebrow, .news__head .section__title { text-align: center; margin-left: auto; margin-right: auto; max-width: none; }
.news__featured { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; margin-top: 48px; box-shadow: var(--shadow); transition: border-color 0.3s, transform 0.3s; }
.news__featured:hover { border-color: var(--pink); transform: translateY(-4px); }
.news__featured-img { display: flex; justify-content: center; align-items: center; }
.news__featured-img img { width: 100%; max-width: 240px; object-fit: contain; filter: drop-shadow(0 0 40px rgba(244,166,189,0.32)); }
.news__featured-body h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 1.5px; margin: 12px 0 14px; line-height: 1.05; }
.news__featured-body p { color: var(--text-dim); font-size: 1.02rem; margin: 0; max-width: 560px; }

/* CTA SECTION */
.section--cta { background: radial-gradient(ellipse at center, rgba(244,166,189,0.18), transparent 70%), var(--bg); text-align: center; }
.cta { max-width: 720px; margin: 0 auto; }
.cta__title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: 2px; line-height: 1; margin-bottom: 20px; }
.cta__sub { font-size: 1.1rem; color: var(--text-dim); margin: 0 auto 36px !important; max-width: 540px !important; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FORMULARIO */
.form-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.form-wrap .eyebrow { text-align: center; }
.form { margin-top: 40px; text-align: left; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }
.form__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form__row .form__field { margin-bottom: 0; }
.form__field > span { font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.4px; font-weight: 600; text-transform: uppercase; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea { width: 100%; padding: 13px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, background 0.2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--pink); background: #0e0e0e; }
.form select { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23F4A6BD' d='M6 8L0 0h12z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; cursor: pointer; }
.form textarea { resize: vertical; min-height: 110px; }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--text-dim); margin: 8px 0 28px; cursor: pointer; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pink); cursor: pointer; flex-shrink: 0; }
.form__check.is-invalid { color: #ff7b7b; }
.form__check.is-invalid input { outline: 2px solid #ff7b7b; outline-offset: 2px; border-radius: 3px; }
.form__check-error { margin: -18px 0 24px 32px !important; color: #ff7b7b !important; font-size: 0.85rem !important; font-weight: 500; }
.form__required { color: var(--pink); font-weight: 700; }
.form__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.form__actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.form__legal { margin-top: 22px !important; text-align: center; color: var(--text-dim); font-size: 0.85rem; }
.form__legal a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.form__legal a:hover { color: var(--pink-strong); }

/* SUCCESS */
.form__success { margin-top: 40px; background: var(--bg-card); border: 2px solid var(--pink); border-radius: var(--radius); padding: 50px 40px; text-align: center; box-shadow: 0 0 60px rgba(244,166,189,0.3); animation: fadeUp 0.5s ease; }
.form__success-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; background: var(--pink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: bold; }
.form__success h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: 1.5px; color: var(--pink); margin-bottom: 14px; }
.form__success p { color: var(--text-dim); font-size: 1rem; margin: 0 auto 24px; max-width: 480px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* INSTAGRAM ICON */
.ig-icon { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 5px; position: relative; flex-shrink: 0; }
.ig-icon::before { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.ig-icon::after { content: ''; position: absolute; top: 2px; right: 2px; width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

/* LEGAL PAGES */
.legal__container { max-width: 820px; }
.legal__updated { color: var(--text-dim); font-size: 0.9rem; font-style: italic; margin-bottom: 40px !important; }
.legal h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 1.5px; color: var(--pink); margin: 36px 0 14px; line-height: 1.2; }
.legal p { color: var(--text); margin-bottom: 16px; line-height: 1.7; max-width: none; }
.legal ul { margin: 0 0 18px 22px; color: var(--text); line-height: 1.7; }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--pink-strong); }
.legal strong { color: var(--text); }
.legal__back { margin-top: 50px !important; padding-top: 30px; border-top: 1px solid var(--line); }
.footer__legal { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal:hover { color: var(--pink-strong); }

/* FOOTER */
.footer { background: #050505; border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 60px; height: 60px; object-fit: contain; }
.footer__brand strong { display: block; font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 1.5px; color: var(--text); }
.footer__brand span { font-size: 0.85rem; color: var(--text-dim); }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__nav a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer__nav a:hover { color: var(--pink); }
.footer__copy { text-align: center; color: var(--text-dim); font-size: 0.82rem; }

/* RESPONSIVE — TABLET */
@media (max-width: 980px) {
    .nav__toggle { display: flex; }
    .nav__menu { position: fixed; top: 88px; left: 0; right: 0; flex-direction: column; background: rgba(10,10,10,0.96); backdrop-filter: blur(20px); padding: 30px 24px; gap: 22px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.35s ease; }
    .nav__menu.is-open { transform: translateY(0); }
    .lang-switch { margin-left: 0; align-self: center; }

    .grid-2 { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .lead, .section p { margin-left: auto; margin-right: auto; }
    .club__visual { order: -1; }
    .club__shield { max-width: 260px; }

    .news__featured { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 32px 24px; }
    .news__featured-img img { max-width: 180px; }
    .news__featured-body p { margin-left: auto; margin-right: auto; }

    .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .footer__brand { justify-content: center; }
}

/* RESPONSIVE — MOBILE */
@media (max-width: 720px) {
    .nav__brand { font-size: 0.95rem; letter-spacing: 0.8px; gap: 8px; }
    .nav__logo { width: 44px; height: 44px; }
    .nav__inner { height: 72px; }
    .nav__menu { top: 72px; }

    .container { padding: 0 18px; }

    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero__shield { width: 200px; height: 200px; margin: 12px auto 24px; }
    .hero__title { letter-spacing: 1.5px; }
    .hero__sub { font-size: 1rem; padding: 0 8px; }
    .hero__actions { flex-direction: column; gap: 12px; align-items: stretch; }
    .hero__actions .btn { width: 100%; padding: 16px 20px; }
    .hero__scroll { display: none; }

    .section { padding: 56px 0; }
    .section--centered { padding: 44px 0; }

    .form { padding: 28px 18px; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .form__row .form__field { margin-bottom: 18px; }
    .form__actions { flex-direction: column; align-items: stretch; }
    .form__actions .btn { width: 100%; }
    .cta__title { letter-spacing: 1px; }
    .coming-soon__badge { padding: 16px 32px; letter-spacing: 4px; font-size: 1.4rem; }
}
