/* ==================================================================
   Aprende, Ajusta y Crece – shared landing page foundation
   This file is IDENTICAL in /lista-vip/assets/ and /90diasmembresia/assets/.
   Change a value here → copy the file to the other folder so both pages stay in sync.
   ================================================================== */

:root {
    /* Fonts */
    --font-heading: 'Headland One', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Colors */
    --color-heading: #4b3863;
    --color-heading-dark: #3a2c4f;
    --color-accent: #A08AB8;
    --color-text: #272727;
    --color-text-muted: #555555;
    --color-bg: #FBF4FB;
    --color-surface: #FFFFFF;
    --color-border: #e0d9e6;
    --color-urgent: #ff4d4d;

    /* Type scale (fluid between mobile and desktop) */
    --text-h1: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
    --text-h2: clamp(1.875rem, 1.55rem + 1.6vw, 2.5rem);
    --text-h3: 1.5rem;
    --text-h4: 1.2rem;
    --text-lead: 1.2rem;
    --text-body: 1rem;
    --text-small: 0.9rem;
    --leading-heading: 1.2;
    --leading-body: 1.7;

    /* Spacing */
    --space-section: clamp(3.5rem, 2rem + 6vw, 6rem);
    --space-block: 3rem;
    --space-card: 2rem;
    --gutter: 1.5rem;

    /* Widths */
    --container: 1100px;
    --container-narrow: 800px;
    --measure: 65ch;

    /* Shape + depth */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 50px;
    --shadow-card: 0 10px 40px -10px rgba(75, 56, 99, 0.1);
    --shadow-hover: 0 25px 50px -12px rgba(75, 56, 99, 0.25);
    --shadow-button: 0 4px 15px rgba(160, 138, 184, 0.4);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: normal;
    line-height: var(--leading-heading);
    text-wrap: balance;
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

h4 {
    font-size: var(--text-h4);
}

p {
    margin-bottom: 1.5rem;
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: var(--text-lead);
    color: var(--color-text-muted);
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-heading), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--color-accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout */
.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.container.narrow {
    max-width: var(--container-narrow);
}

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

section {
    padding: var(--space-section) 0;
    overflow: hidden;
    position: relative;
}

.section-light {
    background-color: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-block);
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p:last-child {
    margin-bottom: 0;
}

/* Header */
.main-header {
    padding: 1.5rem 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    display: block;
    width: 112px;
    height: auto;
}

/* Hero */
.hero {
    text-align: center;
    /* clears the 112px logo + header padding at every width */
    padding-top: clamp(10rem, 8.5rem + 4vw, 11rem);
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.hero .lead {
    margin-bottom: 2rem;
}

/* Decorative background blobs */
.blob1,
.blob2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.blob1 {
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background-color: rgba(160, 138, 184, 0.2);
}

.blob2 {
    bottom: -150px;
    left: -150px;
    width: 450px;
    height: 450px;
    background-color: rgba(75, 56, 99, 0.2);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--color-heading);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 1rem;
    box-shadow: var(--shadow-button);
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    background-color: var(--color-heading-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(75, 56, 99, 0.3);
}

.cta-button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.cta-button.block {
    display: block;
    width: 100%;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--color-heading);
    color: var(--color-heading);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: var(--color-heading);
    color: white;
}

/* Cards */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-card);
    text-align: left;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
}

/* Testimonials */
.testimonial-card {
    position: relative;
    background: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: left;
    height: 100%;
}

.testimonial-card::before {
    content: '“';
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--color-accent);
    opacity: 0.15;
    position: absolute;
    top: -1rem;
    left: 1rem;
    line-height: 1;
    z-index: 0;
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    max-width: none;
}

.testimonial-card strong {
    position: relative;
    z-index: 1;
    display: block;
    text-align: right;
    color: var(--color-heading);
    font-weight: bold;
    margin-top: 1.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--color-heading);
    color: #eee;
    text-align: center;
    padding: var(--space-block) 0;
}

.main-footer p {
    margin-bottom: 0;
    font-size: var(--text-small);
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
