/* ============================================
   VirCassino — Light Premium Theme (V3)
   ============================================ */

/* ===== DESIGN TOKENS ===== */
:root {
    --bg-white: #FFFFFF;
    --bg-soft: #F8F9FA;
    --bg-warm: #F5F0EB;
    --bg-card: #FFFFFF;

    --primary: #6A4C93;
    --primary-light: #8B6DB5;
    --primary-soft: #EDE9F6;
    --secondary: #2A9D8F;
    --secondary-soft: #D4EDE9;
    --accent-red: #D94F6B;

    --text-dark: #1A1A2E;
    --text-body: #374151;
    --text-muted: #6B7280;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

h1 em, h2 em {
    font-style: italic;
    color: var(--primary);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== EYEBROW (Subtitle) ===== */
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(106, 76, 147, 0.25);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 6px 24px rgba(106, 76, 147, 0.35);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.btn-ghost:hover {
    color: var(--primary-light);
}

.btn-full { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.navbar-logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-cta {
    padding: 10px 24px !important;
    background: var(--primary);
    color: #fff !important;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.nav-cta:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(106, 76, 147, 0.3);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-white) 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: var(--primary-soft);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 10%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-card);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.float-icon { font-size: 1.4rem; }

.top-card {
    top: 30px;
    left: -20px;
    animation: float 6s ease-in-out infinite;
}

.bottom-card {
    bottom: 40px;
    right: -10px;
    animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ===== TRUST BAR ===== */
.trust-bar {
    padding: 48px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(0, 0, 0, 0.08);
}

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

.stat-item strong {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-item span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-left: 2px;
}

.stat-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ===== SECTIONS (Generic) ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* ===== PAIN POINTS ===== */
.section-pain {
    background: var(--bg-soft);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pain-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pain-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-soft);
    line-height: 1;
    margin-bottom: 20px;
}

.pain-card h3 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.pain-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.image-frame {
    position: relative;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 100%;
    height: 100%;
    background: var(--secondary-soft);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.image-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 10%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.about-content h2 { margin-bottom: 24px; }

.about-content p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-body);
}

.about-content strong { color: var(--primary); }

.about-pillars {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pillar {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pillar-icon {
    font-size: 1.6rem;
    background: var(--primary-soft);
    padding: 10px;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.pillar h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-dark);
}

.pillar p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== SERVICES ===== */
.section-services {
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.section-services::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(106, 76, 147, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-services::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 157, 143, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    position: relative;
    z-index: 1;
}

/* === Glass Card === */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: -60%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(106, 76, 147, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s ease;
}

.glass-card:hover .card-glow {
    transform: scale(1.3);
    opacity: 0.8;
}

.service-card {
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 12px 48px rgba(106, 76, 147, 0.15);
    transform: translateY(-6px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.service-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
    width: max-content;
    position: relative;
    z-index: 1;
}

.badge-taller {
    background: linear-gradient(135deg, var(--secondary), #3DB8A9);
    color: #fff;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1rem;
    flex: 0;
    position: relative;
    z-index: 1;
}

.service-list {
    margin-bottom: 32px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.service-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 1px;
    color: var(--secondary);
    font-weight: 900;
    font-size: 1rem;
}

.service-card .btn {
    position: relative;
    z-index: 1;
}

/* === WhatsApp Button === */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #1EBE5D;
    border-color: #1EBE5D;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 12px 20px;
    font-size: 0.85rem;
}

/* === Packages Grid (inside Sesiones 1 a 1) === */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.package-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Animated conic gradient border on hover */
.package-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-md) + 2px);
    background: conic-gradient(
        from var(--border-angle, 0deg),
        transparent 0%,
        var(--primary) 12.5%,
        var(--secondary) 25%,
        var(--primary-light) 37.5%,
        transparent 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: spin-border 3s linear infinite;
}

.package-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-white);
    border-radius: calc(var(--radius-md) - 2px);
    z-index: -1;
    transition: background 0.3s ease;
}

.package-card:hover::before,
.package-card.selected::before {
    opacity: 1;
}

.package-card:hover,
.package-card.selected {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 40px rgba(106, 76, 147, 0.15);
}

.package-card.selected {
    border-color: transparent;
}

.package-card.selected::after {
    background: linear-gradient(180deg, var(--primary-soft), var(--bg-white));
}

@keyframes spin-border {
    to { --border-angle: 360deg; }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Glow ring on click */
.package-card .click-ring {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
    pointer-events: none;
}

.package-card.selected .click-ring {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 16px rgba(106, 76, 147, 0.2);
}

/* WhatsApp button reveal on select */
.package-card .btn-whatsapp {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-card.selected .btn-whatsapp {
    max-height: 60px;
    padding-top: 12px;
    padding-bottom: 12px;
    opacity: 1;
    margin-top: 16px;
}

.package-card .select-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 12px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.package-card:hover .select-hint {
    color: var(--primary);
    opacity: 1;
}

.package-card.selected .select-hint {
    display: none;
}

.package-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.package-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    transition: transform 0.4s ease;
}

.package-card:hover .package-number,
.package-card.selected .package-number {
    transform: scale(1.1);
}

.package-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.package-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 4px;
    flex: 1;
    line-height: 1.6;
}

/* === Popular Package (subtle) === */
.package-popular {
    background: var(--bg-white);
    border: 1px solid rgba(106, 76, 147, 0.15);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: var(--radius-pill);
    z-index: 2;
}

.package-popular .package-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Stagger Reveal Animation === */
.stagger-reveal .stagger-item {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

.stagger-reveal .stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal .stagger-item:nth-child(2) { transition-delay: 0.3s; }
.stagger-reveal .stagger-item:nth-child(3) { transition-delay: 0.5s; }

.stagger-reveal.visible .stagger-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* === Contact CTA Area === */
.contact-cta-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-big-card {
    background: linear-gradient(145deg, #f0fdf4, #dcfce7);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    transition: all 0.4s ease;
    width: 100%;
}

.wa-big-card:hover {
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.15);
    transform: translateY(-4px);
}

.wa-big-icon {
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.wa-big-card h3 {
    margin-bottom: 12px;
    color: #166534;
}

.wa-big-card > p {
    color: #4ade80;
    font-size: 0.95rem;
    margin-bottom: 28px;
    color: #15803d;
}

/* ===== FILTER ===== */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.filter-column {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.filter-column h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.is-for h3 { color: var(--secondary); }
.not-for h3 { color: var(--accent-red); }

.filter-column ul li {
    position: relative;
    padding-left: 8px;
    margin-bottom: 14px;
    color: var(--text-body);
    font-size: 0.95rem;
}

/* ===== TESTIMONIALS ===== */
.section-testimonials {
    background: var(--bg-soft);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 36px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-card .stars {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.testimonial-card > p {
    color: var(--text-body);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 24px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.85rem;
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== INSTAGRAM ===== */
.ig-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.ig-title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ig-title h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

.ig-follow-btn {
    padding: 10px 24px !important;
    font-size: 0.85rem !important;
}

.ig-embed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ig-custom-card {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: var(--bg-soft);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    will-change: transform;
}

.ig-custom-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.ig-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ig-custom-card:hover .ig-poster {
    transform: scale(1.05);
}

.ig-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.ig-custom-card:hover .ig-play-overlay {
    opacity: 1;
}

.ig-play-overlay svg {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ig-custom-card:hover .ig-play-overlay svg {
    transform: scale(1.15);
}

/* ===== LEAD MAGNET ===== */
.section-lead-magnet {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.lead-magnet-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    background: linear-gradient(145deg, var(--bg-white), var(--bg-soft));
    border: 1px solid rgba(106, 76, 147, 0.08);
    border-radius: var(--radius-lg);
    padding: 64px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.lead-magnet-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--secondary));
}

.lead-magnet-glow {
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(106, 76, 147, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lead-magnet-content h2 {
    margin-bottom: 20px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.25;
}

.lead-magnet-content > p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 28px;
    line-height: 1.8;
}

.lead-magnet-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-magnet-benefits li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-body);
}

.benefit-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
}

/* Lead Magnet Form Card */
.lead-magnet-form-area {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-magnet-card {
    background: var(--bg-white);
    border: 1px solid rgba(106, 76, 147, 0.1);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.lead-magnet-card:hover {
    box-shadow: 0 8px 36px rgba(106, 76, 147, 0.12);
    transform: translateY(-2px);
}

.pdf-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pdf-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.pdf-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Placeholder (se elimina cuando se pegue el embed) */
.embed-placeholder {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    border: 2px dashed rgba(106, 76, 147, 0.15);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

.lead-magnet-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Systeme.io Embed Overrides === */
.systeme-embed-wrapper input[type="text"],
.systeme-embed-wrapper input[type="email"],
.systeme-embed-wrapper input[type="tel"],
.systeme-embed-wrapper textarea,
.systeme-embed-wrapper select {
    width: 100% !important;
    padding: 14px 18px !important;
    background: var(--bg-soft) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-dark) !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    transition: var(--transition) !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin-bottom: 12px !important;
}

.systeme-embed-wrapper input[type="text"]:focus,
.systeme-embed-wrapper input[type="email"]:focus,
.systeme-embed-wrapper input[type="tel"]:focus,
.systeme-embed-wrapper textarea:focus,
.systeme-embed-wrapper select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.1) !important;
    background: var(--bg-white) !important;
}

.systeme-embed-wrapper button,
.systeme-embed-wrapper input[type="submit"],
.systeme-embed-wrapper .btn,
.systeme-embed-wrapper [type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-pill) !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 16px rgba(106, 76, 147, 0.25) !important;
    letter-spacing: 0.3px !important;
    line-height: 1.3 !important;
    text-transform: none !important;
}

.systeme-embed-wrapper button:hover,
.systeme-embed-wrapper input[type="submit"]:hover,
.systeme-embed-wrapper .btn:hover,
.systeme-embed-wrapper [type="submit"]:hover {
    box-shadow: 0 6px 24px rgba(106, 76, 147, 0.35) !important;
    transform: translateY(-2px) !important;
}

.systeme-embed-wrapper label {
    font-family: var(--font-body) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.systeme-embed-wrapper {
    padding-bottom: 0;
    position: relative !important;
}

/* Forzar más altura al iframe para que el badge (position:fixed dentro del iframe)
   quede debajo del botón y no se superponga */
.systeme-embed-wrapper iframe[id^="systemeio-iframe"] {
    min-height: 220px !important;
}

.systeme-embed-wrapper form {
    margin: 0;
    padding: 0;
}

.systeme-embed-wrapper * {
    box-sizing: border-box !important;
}

/* ===== CONTACT ===== */
.section-contact {
    background: var(--bg-soft);
    padding-bottom: 100px;
}

.contact-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.contact-info h2 { margin-bottom: 20px; font-size: clamp(1.8rem, 8vw, 2.4rem); line-height: 1.1; overflow-wrap: break-word; hyphens: auto; }
.contact-info > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }

.contact-note {
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.note-icon { font-size: 1.3rem; }
.contact-note p {
    font-size: 0.9rem;
    color: var(--text-body);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    padding: 16px 18px;
    background: var(--bg-soft);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.1);
    background: var(--bg-white);
}

.form-disclaimer {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 64px 0 32px;
    background: var(--bg-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 360px;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-nav a:hover { color: var(--primary); }

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--primary); }

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.counter { display: inline-block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrapper { margin-top: 40px; display: flex; justify-content: center; }
    .hero-image-wrapper img { max-width: 320px; aspect-ratio: 1 / 1; object-position: center 20%; }
    .top-card { left: 0; }
    .bottom-card { right: 0; }

    .pain-grid,
    .services-grid,
    .filter-grid,
    .testimonials-grid { grid-template-columns: 1fr; }

    .packages-grid { grid-template-columns: repeat(3, 1fr); }
    .sesiones-card { padding: 40px 28px; }

    .image-frame img { aspect-ratio: 1 / 1; object-position: center 20%; }

    .about-grid,
    .contact-wrapper,
    .lead-magnet-wrapper { grid-template-columns: 1fr; gap: 48px; }

    .contact-wrapper { padding: 40px 28px; }
    .lead-magnet-wrapper { padding: 40px 28px; }

    .trust-stats { gap: 32px; }
    .stat-divider { display: none; }

    .ig-embed-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        transition: var(--transition);
        box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--text-dark);
    }

    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .ig-embed-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .packages-grid { grid-template-columns: 1fr; }
    .package-card { padding: 24px 20px; }
    .package-number { font-size: 2.4rem; }
    
    .contact-wrapper { padding: 32px 20px; gap: 40px; }
    .contact-info, .contact-cta-area { min-width: 0; }
    .contact-note { padding: 16px; gap: 12px; }
    .wa-big-card { padding: 32px 20px; }
    .service-card { padding: 36px 24px; }
    
    .btn { white-space: normal; padding: 14px 24px; }

    .lead-magnet-wrapper { padding: 32px 20px; gap: 36px; }
    .lead-magnet-card { padding: 28px 20px; }
    .pdf-preview { flex-direction: row; }

    .section { padding: 72px 0; }
}
