/* =========================================================
   STYLE.CSS  |  Grupo Cónsul – Brutalist Consulting Website
   ========================================================= */

/* -------------------  ROOT & THEME  --------------------- */
:root {
    /* Triad Palette */
    --color-primary: #ff6f3c;          /* Naranja Vivo   */
    --color-secondary: #3cff6f;        /* Verde Lima     */
    --color-tertiary: #6f3cff;         /* Púrpura Neon   */

    /* Neutrals */
    --color-white: #ffffff;
    --color-light: #f5f5f5;
    --color-dark: #222222;
    --color-gray: #666666;

    /* Darker Accents */
    --color-primary-dark: #c6532b;
    --color-secondary-dark: #2ebf50;
    --color-tertiary-dark: #5130c3;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-tertiary) 100%);
    --gradient-dark: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65));

    /* Typography */
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Shadows & Blur */
    --shadow-card: 0 4px 10px rgba(0,0,0,0.15);
    --blur-glass: 14px;

    /* Animation Timings */
    --speed-fast: 0.25s;
    --speed-normal: 0.5s;
}

/* -------------------  GLOBAL RESET  -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-light);
    line-height: 1.6;
}

/* -------------------  TYPOGRAPHY  ---------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--color-dark);
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
p { margin: 0 0 1rem; }

/* -------------------  NAVBAR  -------------------------- */
.navbar {
    background: var(--color-primary);
    padding: 0.75rem 1rem;
}
.navbar-item,
.navbar-link {
    color: var(--color-white) !important;
    font-weight: 600;
    transition: color var(--speed-fast);
}
.navbar-item:hover,
.navbar-link:hover { color: var(--color-secondary) !important; }
.navbar-burger span { background: var(--color-white); }

/* -------------------  HERO SECTION  -------------------- */
#hero {
    position: relative;
    color: var(--color-white);
    background-size: cover;
    background-repeat: no-repeat;
}
#hero .title,
#hero .subtitle { color: var(--color-white); }
#ctaHero.btn,
#ctaHero.button { margin-top: 1.5rem; }

/* -------------------  SECTIONS  ------------------------ */
section {
    padding: 4rem 0;
}
section:nth-of-type(odd) { background: var(--color-light); }
section:nth-of-type(even):not(#hero):not(#news) { background: var(--color-white); }

#sustainability,
#faq { background: var(--color-secondary); }
#sustainability p,
#faq * { color: var(--color-dark); }

#news { background: var(--color-primary); }

/* -------------------  CARDS  --------------------------- */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-white);
    border: 2px solid var(--color-dark);
    box-shadow: var(--shadow-card);
    transition: transform var(--speed-normal) cubic-bezier(.43,-0.14,.36,1.43);
}
.card:hover { transform: translateY(-5px) rotateZ(-0.5deg); }

.card-image,
.image-container {
    width: 100%;
    height: 230px;
    overflow: hidden;
    position: relative;
}
.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

/* -------------------  BUTTONS & LINKS  ----------------- */
.btn,
button,
input[type='submit'] {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--color-dark);
    background: var(--color-secondary);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--speed-fast) cubic-bezier(.25,.46,.45,1.42);
}
.btn:hover,
button:hover,
input[type='submit']:hover {
    background: var(--color-tertiary);
    color: var(--color-white);
    transform: translateY(-3px) scale(1.03);
}
a { color: var(--color-tertiary-dark); text-decoration: underline; }
a:hover { color: var(--color-primary-dark); }

.read-more {
    font-weight: 600;
    position: relative;
}
.read-more::after {
    content: '→';
    margin-left: .35rem;
    transition: transform var(--speed-fast);
}
.read-more:hover::after { transform: translateX(3px); }

/* -------------------  SOCIAL FOOTER ------------------- */
footer {
    color: var(--color-white);
}
footer a { color: var(--color-secondary); font-weight: 500; }
footer a:hover { color: var(--color-white); }

/* -------------------  FLEX / GRID HELPERS ------------- */
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
}

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

/* -------------------  NON-LINEAR MOTION --------------- */
@keyframes float-bounce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px) rotate(1deg); }
    100% { transform: translateY(0); }
}
.floating { animation: float-bounce 4s cubic-bezier(.43,-0.14,.36,1.43) infinite; }

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

/* -------------------  COOKIE POPUP -------------------- */
#cookiePopup {
    font-size: 0.9rem;
}
#cookiePopup button {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
}
#cookiePopup button:hover {
    background: var(--color-primary-dark);
}

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

/* -------------------  PARALLAX EFFECT ----------------- */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

/* -------------------  MEDIA QUERIES ------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 3rem 1rem; }
    .navbar-menu { background: var(--color-primary); }
}

/* ====================================================== */