:root {
    --primary-blue: #0056b3;
    /* Adjust based on exact preference, using a strong blue */
    --primary-hover: #004494;
    --white: #ffffff;
    --black: #333333;
    --gray-light: #f4f4f4;
    --gray-border: #ddd;
    --disabled-bg: #e9ecef;
    --disabled-text: #6c757d;
    --text-color: #222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography components */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.btn-primary:disabled {
    background-color: var(--gray-border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    margin: 5px 0;
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.full-width {
    width: 100%;
}

/* SECCIÓN 1: HERO */
.hero-section {
    padding: 80px 0;
    background-color: var(--white);
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.steps-list p {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

/* SECCIÓN 2: TALLERES */
.workshops-section {
    padding: 60px 0;
    background-color: var(--gray-light);
    text-align: center;
}

.section-title {
    color: var(--black);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    margin-bottom: 3rem;
    color: #666;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.workshop-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.workshop-card.selected {
    border-color: var(--primary-blue);
    background-color: #e6f0ff;
    color: var(--primary-blue);
}

.workshop-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--disabled-bg);
}

.workshop-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.note-text {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* SECCIÓN 3: PLANES */
.plans-section {
    padding: 80px 0;
}

.plans-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.plan-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    transition: transform 0.3s;
}

.plan-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.vip-card {
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.1);
}

.plan-benefits {
    list-style-type: none;
    text-align: left;
    margin-bottom: 2rem;
    padding: 0 10px;
}

.plan-benefits li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.plan-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.plan-buttons {
    margin-top: 30px;
}

.whatsapp-note {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 8px;
    font-size: 1.1rem;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close-btn:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input.input-error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.help-text {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
}

.error-message {
    display: none;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
    font-weight: 500;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.text-center {
    text-align: center;
}

.success-message {
    margin: 20px 0;
    font-size: 1.1rem;
    color: #333;
}

.selected-summary {
    background-color: var(--gray-light);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.selected-summary ul {
    list-style-type: none;
    margin-top: 10px;
}

.selected-summary li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.selected-summary li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
}

.payment-info {
    text-align: left;
    margin-bottom: 25px;
    border-top: 1px solid var(--gray-border);
    padding-top: 20px;
}

.payment-info h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.small-note {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .h1 {
        font-size: 2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    /* Image on top on mobile if preferred, or keep as is */
    .steps-list {
        text-align: left;
        display: inline-block;
    }

    .workshops-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ANTIGRAVITY PAGE STYLES --- */

.ag-hero {
    padding: 100px 0;
    background-color: #f0f8ff;
    /* Light blue background */
    margin-bottom: 50px;
}

.ag-hero h1 {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.ag-hero h2 {
    color: #555;
    font-weight: 500;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.card-simple {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--gray-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
}

.card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-simple h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-simple p {
    color: #666;
}

/* Badge "En Vivo" */
.relative {
    position: relative;
    overflow: hidden;
    /* Ensures badge stays within corners if we want, or remove if we want it popping out */
}

.badge-live {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #28a745;
    /* Green */
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ag-combo-section {
    padding: 60px 0 20px 0;
}

.ag-combo-cards {
    padding-bottom: 80px;
}

.mt-40 {
    margin-top: 40px;
}

.whatsapp-note-small {
    margin-top: 15px;
    font-weight: 600;
    color: #444;
}

.footer-spacer {
    height: 50px;
}

/* --- MAKE PAGE STYLES --- */

.make-hero {
    padding: 100px 0;
    background-color: #f0f8ff;
    margin-bottom: 0;
    /* Flows directly into first section */
}

.make-hero h1 {
    font-size: 3rem;
    color: var(--primary-blue);
}

.split-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #fafafa;
}

.split-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-container.reverse {
    flex-direction: row-reverse;
}

.split-image,
.split-content {
    flex: 1;
}

.image-placeholder-rect img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.split-content h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.split-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 20px;
}

.split-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.7;
}

.split-buttons {
    display: flex;
    gap: 15px;
}

.split-buttons .btn {
    width: auto;
    /* Override full-width if set elsewhere */
    min-width: 150px;
}

@media (max-width: 768px) {

    .split-container,
    .split-container.reverse {
        flex-direction: column;
        text-align: center;
    }

    .split-image {
        order: -1;
        /* Always image first on mobile */
        margin-bottom: 30px;
    }

    .split-buttons {
        justify-content: center;
    }
}

/* --- MEMBERSHIP PAGE STYLES --- */

.membership-hero {
    padding: 100px 0;
    background-color: #f7f9fc;
    margin-bottom: 50px;
}

.hero-desc {
    max-width: 800px;
    margin: 0 auto 15px auto;
    color: #555;
    font-size: 1.1rem;
}

/* Animations */
.fade-slide-in {
    animation: fadeSlideIn 1s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: flex-start;
    /* Aligns cards at top */
    margin-bottom: 80px;
}

.plan-card-new {
    background: var(--white);
    border: 3px solid var(--gray-border);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card-new:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
    background-color: #f0f8ff;
    padding: 10px;
}

.plan-card-new h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-value {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 25px;
    font-weight: 500;
}

.benefits-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.benefits-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    color: #444;
    font-size: 0.95rem;
    /* Animation for list items can be done via JS intersection observer or simple CSS delays if fixed */
    animation: fadeInList 0.5s ease-out forwards;
    opacity: 0;
}

/* Stagger animations simply for first few items or use JS for robustness. 
   For simplicity here, we'll auto-animate them. */
.benefits-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.benefits-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.benefits-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.benefits-list li:nth-child(4) {
    animation-delay: 0.4s;
}

.benefits-list li:nth-child(5) {
    animation-delay: 0.5s;
}

.benefits-list li:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInList {
    to {
        opacity: 1;
    }
}

.benefits-list li::before {
    content: "✔";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    top: 2px;
}

/* PREMIUM CARD STYLES */
.plan-card-new.premium {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.15);
    background: linear-gradient(to bottom, #ffffff, #f0f8ff);
}

.plan-card-new.premium:hover {
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.25);
    /* Glow effect */
    border-color: #004494;
}

.badge-recommended {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-blue);
    color: white;
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* VIP CARD STYLES */
.plan-card-new.vip {
    border: 1px solid #d4af37;
    /* Goldish border */
}

.plan-card-new.vip .card-icon img {
    background-color: #fff9e6;
}

.plan-card-new.vip:hover {
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2);
    transform: translateY(-12px);
}

.plan-card-new.vip h3 {
    color: #b8860b;
    /* Dark Goldenrod */
}

.vip-btn {
    background-color: #333;
    border-color: #333;
}

.vip-btn:hover {
    background-color: #000;
    border-color: #000;
}

@media (max-width: 768px) {
    .membership-hero h1 {
        font-size: 2rem;
    }

    .plans-container {
        grid-template-columns: 1fr;
    }

    .plan-card-new {
        /* Add some slide-in animation on scroll via JS ideally, or keeping it static for now */
        margin-bottom: 20px;
    }
}

.hero-desc {
    text-align: justify;
}

/* Customizations for ALL Plans (Standard, Premium, VIP) */
.price-large {
    font-size: 3rem;
    /* Very large */
    font-weight: 800;
    color: var(--primary-blue);
    margin: 10px 0 20px 0;
}

.plan-card-new .card-icon img {
    width: 160px;
    /* Double size (was 80px) */
    height: 160px;
    transition: transform 0.4s ease;
}

/* Specific movement on hover for all card images */
.plan-card-new:hover .card-icon img {
    transform: scale(1.1) rotate(5deg);
}

/* --- HOME PAGE STYLES --- */

.home-hero {
    padding: 80px 0;
    background-color: #f0f8ff;
    /* Soft blue/white */
    margin-bottom: 40px;
}

.home-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    color: var(--primary-blue);
    font-size: 2.2rem;
    line-height: 1.3;
}

/* Animations - Home */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-grid-section {
    padding-bottom: 80px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 25px;
}

/* Response structure for cards grid */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.content-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    /* For image rounded corners at top */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.1);
    /* Subtle zoom */
}

.card-text {
    padding: 20px;
    flex-grow: 1;
    /* Makes cards grow if text is long */
}

.card-text h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.card-text p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

.card-buttons {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
}

.card-buttons .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 8px 0;
}

.btn-sm {
    padding: 8px 15px;
}

/* Home Quote Section */
.home-quote {
    padding: 80px 0;
    background-color: transparent;
    border-top: 1px solid #eee;
}

.home-quote h2 {
    font-size: 1.8rem;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.fade-scale-in {
    /* Simple Animation Trigger for quote (will run on load for now) */
    animation: fadeScale 0.8s ease-out forwards;
    animation-delay: 0.5s;
    /* Wait a bit */
    opacity: 0;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* WhatsApp Button Styles */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    z-index: 1;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Wave/Ripple Effect Animation */
.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-pulse 2s infinite;
    z-index: -1;
}

@keyframes ripple-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Antigravity Page Styles */
.ag-hero {
    background-image: url('imagenes/banner-antigravity.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    position: relative;
}

.ag-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay for readability */
    z-index: 1;
}

.ag-hero .container {
    position: relative;
    z-index: 2;
}

.ag-hero h1,
.ag-hero h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}