/* ------------------------------------------------------------------
   GLOBAL RESETS & BASE TYPOGRAPHY
------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lato:wght@300;400;700&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--c-grey-900);
    background-color: var(--c-grey-50);
}

/* ------------------------------------------------------------------
   CSS VARIABLES – RETRO + COMPLEMENTARY PALETTE
------------------------------------------------------------------- */
:root {
    /* Brand */
    --c-primary-500: #ff5e5b;
    --c-primary-600: #e14d4a;
    --c-primary-700: #c03c3a;

    /* Complementary / Accent */
    --c-accent-500: #0081a7;
    --c-accent-600: #006d8d;
    --c-accent-700: #005b74;

    /* Neutrals */
    --c-grey-50:  #fafafa;
    --c-grey-100: #f2f2f2;
    --c-grey-300: #d9d9d9;
    --c-grey-500: #8c8c8c;
    --c-grey-700: #4d4d4d;
    --c-grey-900: #222222;

    /* Gradients */
    --g-primary: linear-gradient(135deg, var(--c-primary-500) 0%, var(--c-accent-500) 100%);
    --g-overlay-dark: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55));

    /* Elevation / Glass */
    --glass-bg: rgba(255,255,255,0.15);
    --glass-border: rgba(255,255,255,0.25);
    --transition: all .35s ease;
}

/* ------------------------------------------------------------------
   UTILITY CLASSES
------------------------------------------------------------------- */
.container {
    width: min(90%, 1200px);
    margin-inline: auto;
}
.section {
    padding: 60px 0;
}
.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--c-grey-900);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

/* ------------------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 800;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--c-primary-500);
    text-decoration: none;
}
.main-nav {
    display: flex;
    gap: 1.2rem;
}
.main-nav a {
    color: var(--c-grey-900);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-primary-500);
    transition: width .3s;
}
.main-nav a:hover::after,
.main-nav a:focus::after { width: 100%; }

.burger {
    display: none;
    background: none;
    font-size: 1.8rem;
    border: none;
    color: var(--c-grey-900);
}
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        inset: 0 0 0 auto;
        flex-direction: column;
        background: var(--c-grey-100);
        padding: 5rem 2rem;
        transform: translateX(100%);
        transition: transform .4s ease;
        width: 240px;
        height: 100vh;
    }
    .main-nav.open { transform: translateX(0); }
    .burger { display: block; }
}

/* ------------------------------------------------------------------
   HERO
------------------------------------------------------------------- */
.hero {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #ffffff;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--g-overlay-dark);
}
.hero-content {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
}
.hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 20px;
}
.hero p {
    max-width: 620px;
    margin: 0 auto 30px;
}

/* ------------------------------------------------------------------
   BUTTONS
------------------------------------------------------------------- */
.btn,
button,
input[type="submit"] {
    font-family: 'Roboto', sans-serif;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn.primary {
    background: var(--c-primary-500);
    color: #fff;
}
.btn.primary:hover { background: var(--c-primary-600); }

.btn.secondary {
    background: var(--c-accent-500);
    color: #fff;
}
.btn.secondary:hover { background: var(--c-accent-600); }

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--g-primary);
    opacity: 0;
    transition: opacity .35s;
}
.btn:hover::after { opacity: .15; }

/* ------------------------------------------------------------------
   CARDS (TEAM, RESOURCES, CASES)
------------------------------------------------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: var(--transition);
}
.card:hover { transform: translateY(-6px); }

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}
.card-content {
    padding: 20px;
}
.card-content h3 {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 10px;
    color: var(--c-grey-900);
}
.card-content p {
    font-size: .95rem;
    color: var(--c-grey-700);
}

/* ------------------------------------------------------------------
   SUSTAINABILITY TOGGLES & TIMELINE
------------------------------------------------------------------- */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 10px 20px 30px;
    font-weight: 600;
}
.switch input {
    display: none;
}
.slider {
    width: 48px;
    height: 24px;
    background: var(--c-grey-300);
    border-radius: 30px;
    position: relative;
    transition: var(--transition);
}
.slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: var(--transition);
}
input:checked + .slider {
    background: var(--c-primary-500);
}
input:checked + .slider::before {
    transform: translateX(22px);
}

.timeline {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}
.timeline-item {
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    padding: 20px;
    border-left: 4px solid var(--c-accent-500);
}

/* ------------------------------------------------------------------
   CAROUSEL (CASE STUDIES)
------------------------------------------------------------------- */
.carousel {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .card {
    min-width: 80%;
    scroll-snap-align: center;
}
.carousel .prev,
.carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.carousel .prev { left: 10px; }
.carousel .next { right: 10px; }

/* ------------------------------------------------------------------
   CAREERS
------------------------------------------------------------------- */
#carreras p {
    max-width: 750px;
    margin: 0 auto 30px;
    text-align: center;
}

/* ------------------------------------------------------------------
   CONTACT FORM
------------------------------------------------------------------- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid var(--c-grey-300);
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-primary-500);
}
.contact-section {
    background: var(--g-primary);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}
.contact-section .section-title,
.contact-section label { color: #ffffff; }
@keyframes gradientShift {
    0%,100% { background-position: 0% 50%; }
    50%     { background-position: 100% 50%; }
}

/* ------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------- */
.site-footer {
    background: var(--c-grey-900);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    font-size: .9rem;
}
.site-footer a {
    color: var(--c-primary-500);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.site-footer a:hover { color: var(--c-primary-600); }
.social-links {
    margin: 15px 0;
}
.social-links a {
    margin: 0 8px;
    position: relative;
}
.social-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-accent-500);
    transition: width .3s;
}
.social-links a:hover::after { width: 100%; }

/* ------------------------------------------------------------------
   SUCCESS PAGE
------------------------------------------------------------------- */
.page-success {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--g-primary);
    color: #ffffff;
    text-align: center;
}
.page-success h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.4rem;
}

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

/* ------------------------------------------------------------------
   COOKIE POPUP (already in HTML, here extras)
------------------------------------------------------------------- */
#cookie-popup a {
    color: var(--c-primary-500);
    text-decoration: underline;
}
#cookie-popup button {
    background: var(--c-primary-500);
    color: #fff;
    border-radius: 6px;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition);
}
#cookie-popup button:hover { background: var(--c-primary-600); }

/* ------------------------------------------------------------------
   LINKS – READ MORE STYLE
------------------------------------------------------------------- */
a.read-more {
    display: inline-block;
    margin-top: 8px;
    color: var(--c-accent-500);
    font-weight: 700;
    position: relative;
    transition: var(--transition);
}
a.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform .3s;
}
a.read-more:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------
   DRAWN-STYLE ANIMATIONS (Hand-drawn Retro)
------------------------------------------------------------------- */
@keyframes sketchStroke {
    0%   { stroke-dashoffset: 400; }
    100% { stroke-dashoffset: 0;   }
}
[data-animate="sketch"] path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: sketchStroke 2s ease forwards;
}

/* ------------------------------------------------------------------
   MEDIA QUERIES
------------------------------------------------------------------- */
@media (max-width: 600px) {
    .section { padding: 40px 0; }
    .timeline { gap: 14px; }
}
.burger{
    display: none;
}
img{
width: 100%;

}