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

:root {
    /* ===== Triadic Palette ===== */
    --primary-500: #0066ff;  /* Azul vibrante */
    --primary-600: #0052cc;
    --primary-700: #003d99;

    --secondary-500: #ff6600; /* Naranja brillante */
    --secondary-600: #cc5200;
    --secondary-700: #993d00;

    --accent-500: #00cc66;   /* Verde intenso */
    --accent-600: #00994d;
    --accent-700: #006633;

    /* ===== Neutrales ===== */
    --gray-100: #f5f7fa;
    --gray-300: #e1e5eb;
    --gray-500: #8a94a6;
    --gray-700: #4c5566;
    --gray-900: #1e2230;

    /* ===== UI Depth ===== */
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);

    /* ===== Durations ===== */
    --dur-fast: 0.25s;
    --dur-med: 0.4s;
    --dur-slow: 0.6s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-100);
}

/* =========================================================
   TYPOGRAPHY & HEADINGS
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.6em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

p {
    margin-bottom: 1em;
    color: var(--gray-700);
}

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

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section[data-aos] {
    will-change: transform, opacity;
}

.image-container,
.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

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

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: background var(--dur-fast);
}

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

.logo {
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-600);
    text-decoration: none;
}

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

.nav a {
    font-weight: 600;
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--dur-fast);
}

.nav a:hover,
.nav a:focus {
    color: var(--primary-500);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.burger span {
    width: 24px;
    height: 2px;
    background: var(--gray-900);
    transition: transform var(--dur-fast);
}

/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
    .nav--desktop { display: none; }
    .burger { display: flex; }
    .nav--mobile {
        position: fixed;
        top: 70px;
        right: 0;
        width: 250px;
        height: calc(100vh - 70px);
        background: #ffffff;
        box-shadow: -4px 0 12px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform var(--dur-med) ease-in-out;
        display: flex;
        flex-direction: column;
        padding: 2rem;
    }
    .nav--mobile.open {
        transform: translateX(0);
    }
    .nav--mobile ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    text-align: center;
    color: #ffffff;
}
.hero__inner {
    padding: 160px 20px 120px;
}
.hero__title {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    color: #ffffff;
}
.hero__subtitle {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0.5em auto 1.5em;
    color: #ffffff;
}
.hero__cta {
    margin-top: 1em;
}
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding-bottom: 40px;
}
.stat-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-widget strong {
    font-size: 2rem;
    color: var(--accent-500);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: 0.9em 2.2em;
    border-radius: var(--radius-md);
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--primary-500);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover,
.btn--primary:focus {
    background: var(--primary-600);
    transform: translateY(-3px);
}

.btn--outline {
    background: transparent;
    color: var(--primary-500);
    border-color: var(--primary-500);
}
.btn--outline:hover,
.btn--outline:focus {
    background: var(--primary-500);
    color: #ffffff;
    transform: translateY(-3px);
}

/* =========================================================
   CARD COMPONENT
   ========================================================= */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.card-content {
    padding: 1.5rem;
}

/* =========================================================
   SECTION-SPECIFIC LAYOUTS
   ========================================================= */
.portfolio__grid,
.webinars__list,
.external-links__list,
.careers__positions {
    display: grid;
    gap: 30px;
}
.portfolio__grid,
.webinars__list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.external-links__list,
.careers__positions {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* ===== Custom Slider (Insights) ===== */
.custom-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 10px;
}
.custom-slider .slide {
    scroll-snap-align: center;
    min-width: 290px;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact__form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
}
.contact__form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: var(--gray-700);
}
.contact__form input,
.contact__form textarea {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    font-family: inherit;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--gray-900);
    color: #ffffff;
    padding: 60px 0 40px;
    font-size: 0.95rem;
}
.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}
.footer h3 {
    color: #ffffff;
    margin-bottom: 0.8em;
}
.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--dur-fast);
}
.footer a:hover,
.footer a:focus {
    color: var(--accent-500);
}

/* ===== Social Links as Text ===== */
.footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* =========================================================
   SUCCESS PAGE
   ========================================================= */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
}

.success-page h1 {
    color: var(--accent-500);
}

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

/* =========================================================
   PARALLAX & BACKGROUNDS
   ========================================================= */
.section[style*="background-image"] {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    color: #ffffff;
}
.section[style*="background-image"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.55)
    );
    z-index: 0;
}
.section[style*="background-image"] > * {
    position: relative;
    z-index: 1;
}

/* =========================================================
   GLASSMORPHISM HELPERS
   ========================================================= */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================================
   LINK “LEER MÁS”
   ========================================================= */
.read-more {
    font-weight: 600;
    color: var(--secondary-500);
    text-decoration: none;
    position: relative;
    transition: color var(--dur-fast);
}
.read-more::after {
    content: "→";
    margin-left: 6px;
    transition: transform var(--dur-fast);
}
.read-more:hover,
.read-more:focus {
    color: var(--secondary-600);
}
.read-more:hover::after,
.read-more:focus::after {
    transform: translateX(3px);
}

/* =========================================================
   SOCIAL ICON-TEXT (FOOTER)
   ========================================================= */
.social-link {
    position: relative;
    font-weight: 600;
}
.social-link::before {
    content: attr(data-icon);
    font-family: "Inter", sans-serif;
    font-weight: 700;
    margin-right: 8px;
    color: var(--secondary-500);
    transition: color var(--dur-fast);
}
.social-link:hover::before {
    color: var(--secondary-600);
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 600px) {
    .hero__inner { padding: 140px 20px 100px; }
    .section { padding: 60px 0; }
    .footer { text-align: center; }
}

/* =========================================================
   CUSTOM “SPRING” ANIMATIONS
   ========================================================= */
/* -- Reusable keyframe for gentle bounce/spring -- */
@keyframes springUp {
    0%   { transform: translateY(30px) scale(0.95); opacity: 0; }
    60%  { transform: translateY(-12px) scale(1.02); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
[data-aos][data-aos][data-aos-duration="1200"] {
    animation: springUp 1.2s cubic-bezier(0.25, 1.5, 0.5, 1) both;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-center { text-align: center !important; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.burger{
    display: none;
}
img{
    width: 100%;
}