/* =============================================
   PEDRO GONZÁLEZ — MÉTODO RE-IDENTIDAD
   Design inspired by reference coaching layout
   ============================================= */

:root {
    --bg: #f5f4f0;
    --bg-white: #ffffff;
    --text-dark: #111111;
    --text-mid: #444444;
    --text-light: #888888;
    --accent: #c9f31d;
    /* bright lime-yellow — the energy badge accent */
    --accent-dark: #a8d000;
    --border: #e0deda;
    --card-bg: #ffffff;
    --footer-bg: #111111;

    --font: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

    --max-w: 1200px;
    --max-w-narrow: 760px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ─── Typography helpers ─── */
.section-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.section-title.center {
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 560px;
    margin: 0 auto 3.5rem;
    text-align: center;
    line-height: 1.7;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-block;
    background: var(--text-dark);
    color: #fff;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.93rem;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--text-dark);
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: var(--max-w);
    background: rgba(245, 244, 240, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.8rem;
}

.logo {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.btn-nav {
    background: var(--text-dark);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-full);
    transition: background 0.2s, transform 0.2s;
}

.btn-nav:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0.72) 80%,
            rgba(0, 0, 0, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 2.5rem;
    color: #fff;
}

.hero-label {
    display: inline-block;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.4rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

/* ─── STATS BAR ─── */
.stats-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.8rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.stat-number {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ─── ABOUT ─── */
.about-section {
    background: var(--bg);
    padding: 7rem 2.5rem;
}

.about-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-wrap:hover .about-img {
    transform: scale(1.03);
}

.about-badge {
    position: absolute;
    bottom: 1.8rem;
    left: 1.8rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
}

.badge-icon {
    font-size: 1.6rem;
}

.about-badge strong {
    display: block;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.about-badge small {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* ─── COURSES ─── */
.courses-section {
    background: var(--bg-white);
    padding: 7rem 2.5rem;
}

.courses-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.courses-inner>.section-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.course-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.course-card:hover::before {
    transform: scaleX(1);
}

/* Card image */
.course-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

/* Card body */
.course-card-body {
    padding: 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card-body h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.card-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem !important;
    font-style: italic;
}

.course-card-body p {
    font-size: 0.91rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-link {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-bottom: 1.5px solid var(--text-dark);
    padding-bottom: 1px;
    transition: opacity 0.2s;
    align-self: flex-start;
}

.card-link:hover {
    opacity: 0.6;
}

/* ─── MODULES ─── */
.modules-section {
    background: var(--bg);
    padding: 7rem 2.5rem;
}

.modules-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.modules-inner > .section-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.module-item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 2rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.module-item:nth-child(odd) {
    border-right: 1px solid var(--border);
}

/* remove bottom border for last two items */
.module-item:nth-last-child(-n+2) {
    border-bottom: none;
}
/* if odd total, last item spans or has no right border issue — this is safe for 15 items */
.module-item:last-child {
    border-right: none;
    border-bottom: none;
}

.module-item:hover {
    background: var(--bg);
}

.module-num {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--accent-dark);
    letter-spacing: -0.03em;
    min-width: 2.2rem;
    line-height: 1;
}

.module-name {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ─── CTA BAND ─── */
.cta-band {
    background: var(--text-dark);
    padding: 7rem 2.5rem;
}

.cta-inner {
    max-width: var(--max-w-narrow);
    margin: 0 auto;
    text-align: center;
}

.cta-band h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.cta-band p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.5rem;
}

.cta-band .btn-primary {
    background: var(--accent);
    color: var(--text-dark);
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

.cta-band .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 243, 29, 0.3);
}

/* ─── CONTACT ─── */
.contact-section {
    background: var(--bg);
    padding: 7rem 2.5rem;
}

.contact-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.02rem;
    color: var(--text-mid);
    margin-bottom: 2rem;
    line-height: 1.75;
}

.contact-perks {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.contact-perks li {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.8rem;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.input-group input::placeholder {
    color: #bbb;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--text-dark);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--text-dark);
    color: #fff;
    font-family: var(--font);
    font-size: 0.97rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: #333;
    transform: translateY(-1px);
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.2em;
}

/* ─── FOOTER ─── */
.footer {
    background: var(--footer-bg);
    padding: 5rem 2.5rem 2.5rem;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.footer-logo {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-brand p {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
    max-width: 280px;
}

.footer-nav h4,
.footer-legal h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.4rem;
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a,
.footer-legal a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

/* ─── LEGAL PAGES ─── */
.legal-container {
    max-width: 800px;
    margin: 9rem auto 4rem;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.legal-container h1 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.legal-container h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
    text-align: left;
    color: var(--text-dark);
}

.legal-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legal-container p,
.legal-container li {
    color: var(--text-mid);
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
    line-height: 1.75;
}

.legal-container ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: disc;
}

.legal-container a {
    color: var(--text-dark);
    text-decoration: underline;
}

.legal-container a:hover {
    opacity: 0.65;
}

.legal-container hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* ─── SCROLL ANIMATIONS ─── */
.course-card,
.stat-item,
.about-text,
.about-image-wrap {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 3rem);
    max-width: 860px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.8rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.cookie-banner__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cookie-banner__text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cookie-banner__text p {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.55;
    margin: 0;
}

.cookie-link {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.cookie-link:hover {
    opacity: 0.6;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cookie-primary {
    font-family: var(--font);
    font-size: 0.87rem;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    background: var(--accent);
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-cookie-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-cookie-outline {
    font-family: var(--font);
    font-size: 0.87rem;
    font-weight: 600;
    padding: 0.68rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-mid);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-cookie-outline:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: translateY(120%);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-width: 100%;
    }

    .cookie-banner.visible {
        transform: translateY(0);
    }

    .cookie-banner__inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 1.2rem 1.4rem;
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-cookie-primary,
    .btn-cookie-outline {
        flex: 1;
        text-align: center;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {

    .about-container,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-wrap {
        order: -1;
    }

    .about-img {
        height: 380px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stat-divider {
        display: none;
    }

    .stats-container {
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-bottom: 4rem;
        min-height: 95vh;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-section,
    .courses-section,
    .contact-section,
    .cta-band {
        padding: 5rem 1.5rem;
    }

    .contact-form-wrap {
        padding: 1.8rem;
    }

    .legal-container {
        margin-top: 7rem;
        padding: 2rem;
    }
}