/* ==============================================================
   STYLE.CSS  |  Libros & Coaching – Argentina
   ============================================================== */

/* ---------- ROOT THEME ---------- */
:root {
    /* Primary Bright Palette */
    --clr-primary: #ff5858;
    --clr-primary-dark: #d84141;
    --clr-secondary: #33d9b2;
    --clr-secondary-dark: #28b796;
    --clr-accent: #ffb03a;
    --clr-accent-dark: #d98a1f;

    /* Neutral & Typography */
    --clr-dark: #222222;
    --clr-light: #ffffff;
    --clr-gray: #f5f5f5;

    /* Gradients */
    --gradient-primary: linear-gradient(45deg, #ff5858, #f09819);
    --gradient-secondary: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-accent: linear-gradient(60deg, #e21143 0%, #ffb03a 100%);
    --overlay-dark: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65));

    /* Transition & Effects */
    --transition-fast: all 0.2s ease-in-out;
    --transition-mid: all 0.4s ease-in-out;
    --radius-sm: 6px;
    --radius-md: 12px;
}

/* ---------- GLOBAL RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--clr-dark);
    line-height: 1.6;
    background-color: var(--clr-light);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 0.5em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    line-height: 1.2;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}
.navbar.is-transparent {
    background: transparent;
}
.navbar-item,
.navbar-burger span {
    color: var(--clr-light) !important;
}
.navbar-burger:hover {
    background-color: rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    color: var(--clr-light);
}
.hero .title,
.hero .subtitle {
    color: var(--clr-light);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    z-index: 0;
}
.hero > .hero-body > .container {
    position: relative;
    z-index: 1;
}

/* ---------- GLOBAL BUTTONS ---------- */
.btn,
button,
input[type='submit'] {
    font-family: 'Roboto', sans-serif;
    padding: 0.75em 2em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--clr-light);
    background: var(--gradient-primary);
}
.btn:hover,
button:hover,
input[type='submit']:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn:active,
button:active {
    transform: translateY(0);
}

/* ---------- CARD STYLES ---------- */
.card,
.item,
.testimonial,
.team-member,
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    background: var(--clr-light);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: var(--transition-fast);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Image container for cards */
.image-container,
.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-container img,
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

/* ---------- SECTION UTILITIES ---------- */
.section {
    padding: 4rem 1.5rem;
}
.section.has-background-light {
    background-color: var(--clr-gray);
}
.section[data-prompt] {
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.section[data-prompt]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    mix-blend-mode: multiply;
    z-index: 0;
}
.section > .container {
    position: relative;
    z-index: 1;
}

/* ---------- GRADIENT BACKGROUNDS ---------- */
.bg-gradient-primary   { background: var(--gradient-primary); }
.bg-gradient-secondary { background: var(--gradient-secondary); }
.bg-gradient-accent    { background: var(--gradient-accent); }

/* ---------- STATISTIC BOXES ---------- */
.section#statistics .title,
.section#statistics .subtitle {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* ---------- LINKS ---------- */
a {
    color: var(--clr-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--clr-secondary-dark);
}
.read-more {
    font-weight: 700;
    position: relative;
}
.read-more::after {
    content: '→';
    margin-left: 4px;
    transition: var(--transition-fast);
}
.read-more:hover::after {
    margin-left: 8px;
}

/* ---------- SOCIAL LINKS (Footer) ---------- */
.social-link {
    margin: 0 0.5rem;
    font-weight: 600;
    position: relative;
}
.social-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: width 0.3s ease-in-out;
}
.social-link:hover::after {
    width: 100%;
}

/* ---------- SUCCESS PAGE ---------- */
.page-success {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    color: var(--clr-light);
    text-align: center;
}

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

/* ---------- PARALLAX EFFECT ---------- */
.parallax {
    background-attachment: fixed;
}

/* ---------- GLASSMORPHISM ---------- */
.glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
}

/* ---------- MICROANIMATIONS ---------- */
@keyframes fadeInUp {
    0% { opacity:0; transform: translateY(20px); }
    100%{ opacity:1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
.hover-up {
    transition: var(--transition-fast);
}
.hover-up:hover {
    transform: translateY(-6px);
}
.scale-on-hover {
    transition: var(--transition-fast);
}
.scale-on-hover:hover {
    transform: scale(1.03);
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.pt-4 { padding-top: 4rem; }
.pb-4 { padding-bottom: 4rem; }
.rounded { border-radius: var(--radius-md); }

/* ---------- COOKIE POPUP BUTTON OVERRIDE ---------- */
#acceptCookie.button {
    background: var(--clr-secondary);
}
#acceptCookie.button:hover {
    background: var(--clr-secondary-dark);
}

/* ---------- BULMA OVERRIDES ---------- */
.button.is-warning {
    background: var(--gradient-accent);
    border: none;
    color: var(--clr-light);
}
.button.is-warning:hover {
    background: var(--clr-primary-dark);
}
.progress.is-success::-webkit-progress-value {
    background: var(--clr-secondary);
}
.navbar-menu.is-active {
    background: var(--clr-dark);
}

/* ---------- MEDIA QUERIES ---------- */
@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
    .navbar-menu.is-active .navbar-item {
        color: var(--clr-light) !important;
    }
    .image-container,
    .card-image {
        height: 180px;
    }
}