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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

/* ======================================================================
   THEME VARIABLES  –  Pastel & Dynamic
====================================================================== */
:root {
    /* Palette */
    --color-primary: #8BC6EC;            /* pastel blue */
    --color-secondary: #F5D6E0;          /* pastel pink */
    --color-accent: #FFD27F;             /* pastel amber */
    --color-neutral: #FFFFFF;
    --color-dark: #222222;
    --color-text: #333333;
    --color-muted: #777777;

    /* Gradients */
    --grad-1: linear-gradient(135deg, #8BC6EC 0%, #9599E2 100%);
    --grad-2: linear-gradient(135deg, #FAD0C4 0%, #FFD1FF 100%);
    --grad-darken: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));

    /* Shadows */
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-card: 0 8px 20px rgba(0,0,0,0.12);

    /* Radius */
    --radius: 10px;
}

/* ======================================================================
   TYPOGRAPHY
====================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.25;
    text-align: center;
    margin-bottom: 0.75em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

p { margin-bottom: 1em; }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

/* ======================================================================
   LAYOUT HELPERS
====================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.is-two-thirds {
    width: 100%;
}

.section {
    padding: 4rem 0;
    position: relative;
}

/* ======================================================================
   HEADER
====================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--neutral-alpha, rgba(255,255,255,0.9));
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-dark);
    text-decoration: none;
}

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

.nav-desktop ul,
.nav-mobile ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-desktop a,
.nav-mobile a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
    color: var(--color-primary);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    transition: all 0.4s ease;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--color-neutral);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

/* ======================================================================
   HERO
====================================================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    color: var(--color-neutral);
    text-align: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-inner {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

/* Particle Animation */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0 2px, transparent 3px),
                      radial-gradient(circle at 70% 70%, rgba(255,255,255,0.15) 0 2px, transparent 3px),
                      radial-gradient(circle at 10% 80%, rgba(255,255,255,0.15) 0 2px, transparent 3px);
    background-size: 150px 150px;
    animation: particles 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particles {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-1000px); }
}

/* ======================================================================
   GLOBAL BUTTON STYLES
====================================================================== */
.btn,
button,
input[type='submit'] {
    appearance: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0.8em 1.6em;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: var(--grad-1);
    color: var(--color-neutral);
}

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

.btn-outline-light {
    background: transparent;
    color: var(--color-neutral);
    border: 2px solid var(--color-neutral);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* ======================================================================
   CARD COMPONENT
====================================================================== */
.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-neutral);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-image,
.image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

.card-content ul { list-style: none; padding: 0; }

.price {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: var(--color-primary);
    margin: 1rem 0;
}

/* Toggles */
.toggle {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.toggle input { display: none; }

.toggle .slider {
    width: 40px;
    height: 20px;
    background: var(--color-muted);
    border-radius: 20px;
    position: relative;
    transition: background 0.3s ease;
}

.toggle .slider::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: var(--color-neutral);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle input:checked + .slider {
    background: var(--color-primary);
}

.toggle input:checked + .slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ======================================================================
   TIMELINE
====================================================================== */
.timeline {
    position: relative;
    margin: 3rem 0;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--color-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -0.3rem;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
}

.timeline-content {
    background: var(--color-neutral);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* ======================================================================
   CAROUSEL
====================================================================== */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    scroll-behavior: smooth;
}

.carousel-slide {
    min-width: 280px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-accent);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--color-dark);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.carousel-control.prev { left: 0.5rem; }
.carousel-control.next { right: 0.5rem; }

.carousel-control:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ======================================================================
   CONTACT FORM
====================================================================== */
.contact-form .field {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-neutral);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ======================================================================
   FOOTER
====================================================================== */
.footer {
    background: var(--grad-2);
    color: var(--color-dark);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-columns {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    text-align: center;
}

.footer a {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover { color: var(--color-accent); }

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* ======================================================================
   SUCCESS PAGE
====================================================================== */
.page-success {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-1);
    color: var(--color-neutral);
    text-align: center;
}

/* ======================================================================
   PRIVACY & TERMS PAGES
====================================================================== */
.page-legal {
    padding-top: 100px;
}

/* ======================================================================
   NEWS / INSIGHTS – “Leer Más” links
====================================================================== */
.read-more {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--color-accent);
}

/* ======================================================================
   RESPONSIVE & BURGER
====================================================================== */
@media (max-width: 820px) {
    .nav-desktop { display: none; }
    .burger { display: flex; }

    /* Mobile menu open state (add .open via JS) */
    .nav-mobile.open { display: flex; }
}

/* ======================================================================
   BACKGROUND IMAGE COMMON STYLES
====================================================================== */
[data-parallax],
.hero,
.section[style*="background-image"] {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* ======================================================================
   UTILITY CLASSES
====================================================================== */
.text-center { text-align: center !important; }
.mt-2 { margin-top: 2rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.shadow-soft { box-shadow: var(--shadow-soft) !important; }

@media (max-width: 768px) {
    img{
        width: 100%;
    }
}