@font-face {
    font-family: 'Epilogue';
    src: url('/assets/fonts/Epilogue-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* rango variable */
    font-style: normal;
    font-display: swap;
  }
  
/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
    /* Colores */
    --color-primary: #DC2F3C;
    --color-secondary: #FF00FF;
    --color-dark: #150230;
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-light-gray: #F9F9F9;
    --color-gray: #6B6B6B;
    
    /* Tipografías */
    --font-primary: 'Epilogue', system-ui, sans-serif;
    --font-secondary: 'Manrope', sans-serif;
    
    /* Espaciados */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Transiciones */
    --transition: 0.3s ease;
}

/* ============================================
   RESET Y ESTILOS GLOBALES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    background-color: #000000;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.espacio-arriba {
    margin-top: 100px;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 82px 40px;
}

.gradient-text {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    backdrop-filter: blur(15px);
    background: #000000;
    border-bottom: 1px solid rgba(233, 237, 244, 0.25);
}

.navbar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__logo {
    width: 130px;
    height: 50px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__link {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    transition: opacity var(--transition);
}

.navbar__link:hover {
    opacity: 0.8;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    height: 18px;
    background: transparent;
}

.navbar__toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    padding: 5px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 300;
    line-height: 32px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 30px;
}

.btn--primary:hover {
    background: var(--color-white);
    color: #000000;
}

.btn--hero {
    margin-top: 40px;
}

.btn--dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn--dark:hover {
    background: linear-gradient(180deg, #FF0049 0%, #F0F 100%);
    color: var(--color-white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 580px;
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.hero__stage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero__stage--active {
    opacity: 1;
    visibility: visible;
}

/* Fondos según etapa y fase */
.hero__stage[data-stage="1"] {
    background-color: #000000;
}

.hero__stage[data-stage="2"][data-phase="1"],
.hero__stage[data-stage="2"][data-phase="3"] {
    background-color: var(--color-primary);
}

.hero__stage[data-stage="2"][data-phase="2"] {
    background-color: #000000;
}

.hero__stage[data-stage="3"][data-phase="1"],
.hero__stage[data-stage="3"][data-phase="3"] {
    background-color: #FFFFFF;
}

.hero__stage[data-stage="3"][data-phase="2"] {
    background-color: #000000;
}

.hero__panel {
    background: transparent;
    border-radius: 0;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex: 1;
}

.hero__panel--image {
    padding: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__panel--image .hero__image-stage {
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 180px;
    flex-shrink: 0;
    margin: 0 auto;
    display: block;
}

.hero__panel--text {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__text {
    font-size: 65px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 0;
    letter-spacing: -0.02em;
    text-align: left;
}

.hero__text--red {
    color: var(--color-primary);
}

.hero__text--black {
    color: #000000;
}

.hero__text--white {
    color: #FFFFFF;
}

/* Botón del Hero */
.hero__btn {
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    z-index: 10;
    margin-top: auto;
    margin-bottom: -40px !important;
    flex-shrink: 0;
}

/* Botón blanco (Etapa 1 y Etapa 2) */
.hero__btn--white {
    background-color: #FFFFFF;
    color: #000000;
}

/* Hover del botón blanco: rojo cuando fondo es negro, negro cuando fondo es rojo */
.hero__stage[data-stage="1"] .hero__btn--white:hover,
.hero__stage[data-stage="2"][data-phase="2"] .hero__btn--white:hover {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.hero__stage[data-stage="2"][data-phase="1"] .hero__btn--white:hover,
.hero__stage[data-stage="2"][data-phase="3"] .hero__btn--white:hover {
    background-color: #000000;
    color: #FFFFFF;
}

/* Botón rojo (Etapa 3) */
.hero__btn--red {
    background-color: var(--color-primary);
    color: #FFFFFF;
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

/* Hover del botón rojo según fase */
.hero__stage[data-stage="3"][data-phase="1"] .hero__btn--red:hover,
.hero__stage[data-stage="3"][data-phase="3"] .hero__btn--red:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.hero__stage[data-stage="3"][data-phase="2"] .hero__btn--red:hover {
    background-color: #FFFFFF;
    color: #000000;
}

/* Responsive para Hero */
@media (max-width: 768px) {
    .hero {
        height: 480px;
        padding: 30px 20px;
    }
    
    .hero__stage {
        padding: 30px 20px;
    }
    
    .hero__text {
        font-size: 36px;
    }
    
    .hero__panel--image .hero__image-stage {
        max-width: 80%;
        max-height: 70%;
    }

    .hero__panel--image .hero__image-stage.hero__image--stage1 {
        max-width: 50%;
        max-height: 50%;
    }
    
    .hero__btn {
        padding: 8px 24px;
        font-size: 14px;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 480px;
        padding: 20px 15px;
    }
    
    .hero__stage {
        padding: 20px 15px;
    }
    
    .hero__text {
        font-size: 28px;
    }
    
    .hero__panel--image .hero__image-stage,
    .hero__panel--image .hero__image-stage.hero__image--stage1 {
        max-width: 70%;
        max-height: 60%;
    }
    
    .hero__btn {
        border-radius: 30px;
    }
}

.hero__content {
    text-align: center;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero__title {
    font-size: 65px;
    font-weight: 500;
    text-align: center;
    line-height: 0.95;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 20px;
    transform: scale(1);
    transition: transform 1s ease;
}

.hero__title--grow {
    animation: titleGrow 3s ease;
}

@keyframes titleGrow {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hero__image-stage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero__image--grow {
    animation: imageGrowStage1 3s ease;
}

@keyframes imageGrowStage1 {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

#que-es.section--dark {
    background-color: #000000;
    position: relative;
    margin-top: -50px;
    z-index: -1;
    padding: 100px;
    overflow: hidden;
}

#que-es.section--dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../img/brand-background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

#que-es .container {
    position: relative;
    z-index: 1;
}

.section--que-es {
    padding: 80px 0 80px;
}

.hero__image {
    max-width: 50%;
    height: auto;
    margin-bottom: 90px;
    transform: scale(1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero__image--stage2 {
    opacity: 1;
    transform: scale(1);
    max-width: 40%;
}

@keyframes imageGrowFast {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.hero__image--stage3 {
    animation: imageGrowFast 2s ease;
}

.hero__content--phrases {
    position: relative;
    width: 80%;
    height: 100%;
    min-height: 900px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
}

.hero__phrase {
    font-size: 32px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.4;
    opacity: 0;
    position: absolute;
}

.hero__phrase--left {
    text-align: left;
    top: 45%;
    left: 5%;
    transform: translate(-100px, -50%);
}

.hero__phrase--right {
    text-align: right;
    top: 55%;
    right: 5%;
    transform: translate(100px, -50%);
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__phrase--grow {
    animation: phraseGrow 2s ease infinite;
}

@keyframes phraseGrow {
    0%, 100% { transform: translateX(0) scale(1); }
    50% { transform: translateX(0) scale(1.01); }
}

.hero__phrase--left.hero__phrase--grow {
    animation: phraseGrowLeft 2s ease infinite;
}

.hero__phrase--right.hero__phrase--grow {
    animation: phraseGrowRight 2s ease infinite;
}

@keyframes phraseGrowLeft {
    0%, 100% { transform: translate(0, -50%) scale(1); }
    50% { transform: translate(0, -50%) scale(1.01); }
}

@keyframes phraseGrowRight {
    0%, 100% { transform: translate(0, -50%) scale(1); }
    50% { transform: translate(0, -50%) scale(1.01); }
}

.hero__highlight {
    color: #150230;
    font-weight: 700;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section {
    padding: 80px 0;
    position: relative;
}

.section--dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.section--light {
    background: var(--color-white);
    color: var(--color-dark);
    overflow: visible;
}

#principios {
    overflow: visible;
    position: relative;
    padding-top: 0;
}

#principios .container {
    padding-top: 80px;
}

.section__title {
    font-size: 40px;
    font-weight: 400;
    text-align: center;
    color: var(--color-white);
}

.section__title-gradient {
    background: linear-gradient(90deg, #FF0066 0%, #FF006A 15%, #FF0077 31%, #FF008C 48%, #FF00AA 65%, #FF00D1 83%, #FF00FF 100%);
    background-size: 1.2em 100%;
    background-repeat: repeat-x;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    border: 2px solid var(--color-light-gray);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 0.8;
}

/* ============================================
   BRANDFORMANCE DIAGRAM
   ============================================ */
#que-es .container {
    overflow: hidden;
}

.brandformance-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 60px;
    margin-top: 60px;
}

.brandformance-diagram__left,
.brandformance-diagram__right {
    width: 266px;
    flex-shrink: 0;
}

.brandformance-diagram__center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: var(--color-dark);
}

.info-card__title--right {
    text-align: right;
}

.info-card__line {
    width: 131px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.info-card__line--right {
    width: 161px;
    margin-left: auto;
}

.info-card__text {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: var(--color-white);
}

.info-card__text--right {
    text-align: right;
}

/* Venn Diagram */
.venn-diagram {
    position: relative;
    width: 660px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venn-diagram__image {
    width: 100%;
    height: auto;
    max-width: 660px;
    object-fit: contain;
}

.venn-label {
    position: absolute;
    font-size: 21.6px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    z-index: 10;
}

.venn-label--brand {
    left: 23%;
    top: 45%;
}

.venn-label--performance {
    right: 17%;
    top: 45%;
}

.venn-text-bottom {
    position: absolute;
    left: 50%;
    bottom: -65px;
    transform: translateX(-30%);
    font-size: 21.6px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* ============================================
   REDISEÑO QUE-ES
   ============================================ */
.section--que-es {
    padding: 80px 0 80px;
}

#que-es .container {
    overflow: visible;
    box-sizing: border-box;
}

.que-es__layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 50px;
}

.que-es__left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--color-white);
}

.que-es__title {
    font-size: 42px;
    font-weight: 400;
    line-height: 50px;
    text-transform: uppercase;
    color: var(--color-white);
}

.que-es__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.que-es__card {
    background: #000;
    border-radius: 30px;
    padding: 40px;
    color: var(--color-white);
    max-width: 100%;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.que-es__card p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.que-es__card p:last-child {
    margin-bottom: 0;
}

.que-es__pill {
    width: 100%;
    max-width: 240px;
    height: 32px;
    border-radius: 16px;
    background: linear-gradient(90deg, #FF0066 0%, #FF00FF 100%);
    margin-bottom: 24px;
}

.que-es__svg {
    display: inline-flex;
    vertical-align: middle;
}

.que-es__svg svg {
    height: 18px;
    width: auto;
}

.que-es__svg--marcas svg {
    height: 20px;
}

/* Responsive overrides for que-es */
@media (max-width: 1024px) {
    .section--que-es {
        padding: 70px 0 70px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #que-es.section--dark {
        padding: 30px;
        margin-top: -50px;
        z-index: -1;
    }
    
    #que-es.section--dark::before {
        background-size: cover;
        margin: 0 20px;
    }
    
    .section--que-es {
        padding: 50px 0 50px;
    }
    
    .que-es__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .que-es__title {
        font-size: 26px;
        line-height: 36px;
        text-align: center;
        margin-top: 50px;
    }
    
    .que-es__card {
        padding: 22px;
        border-radius: 24px;
        margin-bottom: 50px;
    }
    
    .que-es__card p {
        font-size: 14px;
    }
    
    .que-es__pill {
        max-width: 180px;
        height: 28px;
    }
    
    .que-es__svg svg {
        height: 16px;
    }
    
    .que-es__svg--marcas svg {
        height: 18px;
    }
}

@media (max-width: 768px) {
    .section--que-es {
        padding: 50px 0 50px;
    }
    
    .que-es__layout {
        gap: 14px;
        grid-template-columns: 1fr;
    }
    
    .que-es__title {
        font-size: 22px;
        line-height: 32px;
    }
    
    .que-es__pill {
        max-width: 180px;
        height: 28px;
    }
    
    .que-es__card {
        padding: 20px;
        border-radius: 24px;
    }
    
    .que-es__card p {
        font-size: 14px;
    }
    
    .que-es__svg svg {
        height: 16px;
    }
    
    .que-es__svg--marcas svg {
        height: 18px;
    }
    
    .section--perfect-match {
        padding: 50px 0;
    }
    
    .perfect-match {
        padding: 0 10px;
    }
    
    .perfect-match__card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 18px;
        display: flex;
        flex-direction: column;
    }
    
    .perfect-match__title {
        font-size: 22px;
        gap: 6px;
        order: 1;
    }
    .perfect-match__media img {
        order: 2;
    }
    .perfect-match__body {
        order: 3;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    
    .pm-svg svg {
        height: 20px;
    }
    
    .pm-gradient-box {
        font-size: 14px;
        line-height: 1.45;
    }
    
    .perfect-match__media img {
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    #que-es.section--dark {
        padding: 30px;
        margin-top: -50px;
        z-index: -1;
    }

    #que-es.section--dark::before {
        background-size: cover;
        margin: 0 20px 0 20px;
    }
}

/* ============================================
   PERFECT MATCH SECTION (Rediseño)
   ============================================ */
.section--perfect-match {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 10%, #FF00FF 50%, #FF2E88 70%, var(--color-primary) 100%);
}

.perfect-match {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.perfect-match__card {
    background: #000;
    border-radius: 30px;
    padding: 52px;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 52px;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.perfect-match__media img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    max-height: 600px;
    min-height: 350px;
}

.perfect-match__content {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perfect-match__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.perfect-match__title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.perfect-match__title-text {
    color: var(--color-white);
    font-size: 35px;
}

.pm-svg svg {
    height: 26px;
    width: auto;
}

.pm-pill {
    width: 220px;
    height: 18px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #FF00FF 50%, var(--color-primary) 100%);
    margin-right: auto;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.perfect-match__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.pm-svg--marca svg {
    height: 17px;
}

.pm-gradient-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-white);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.pm-gradient-box::before {
    content: '';
    display: inline-block;
    width: 120px;
    height: 20px;
    border-radius: 20px;
    background: linear-gradient(90deg, #FF0066 0%, #FF00FF 100%);
    flex-shrink: 0;
}

.perfect-match__line--bottom {
    gap: 10px;
}

.pm-svg--mar svg {
    height: 16px;
}

.brandformance-text-mobile {
    font-size: 25px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    margin: 20px 0;
}

.mobile-connector {
    width: 100%;
    max-width: 10px;
    height: auto;
    margin: 15px auto;
    display: block;
}

.mobile-no-se-trata {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 20px auto;
    display: block;
}

.explanation-right-mobile {
    width: 100%;
    margin: 20px 0;
}

/* ============================================
   PRINCIPIOS SECTION (Rediseño)
   ============================================ */
.section--principios {
    padding: 80px 0;
    background: linear-gradient(435deg, #c40335 30%, #D72478 45%, #E80A78 50%, #E80A75 65%, #FF2E88 70%, #CF209E 100%);
    position: relative;
    overflow: hidden;
}

.section--principios::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../img/fondo-principios.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.container--principios {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.principios__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.principios__left {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.principios__image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.principios__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.principios__title-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.principios__pill {
    width: 220px;
    height: 18px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #FF00FF 50%, var(--color-primary) 100%);
    flex-shrink: 0;
}

.principios__title {
    font-size: 85px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0;
}

.principios__right {
    display: flex;
    flex-direction: column;
}

.principios__cards {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 40px;
}

.principio-card {
    border-radius: 24px;
    padding: 30px 30px 30px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    width: 90%;
}

.principio-card--dark {
    background: #000000;
    color: var(--color-white);
}

.principio-card--light {
    background: #FFFFFF;
    color: #000000;
}

.principio-card__number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    left: -70px;
    top: 50px;
}

.principio-card--dark .principio-card__number {
    background: #000000;
    color: var(--color-white);
}

.principio-card--light .principio-card__number {
    background: #FFFFFF;
    color: #000000;
}

.principio-card__content {
    flex: 1;
}

.principio-card__title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    line-height: 1.3;
    color: var(--color-white);
}

.principio-card__title--dark {
    color: #000000;
}

.principio-card__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    color: var(--color-white);
}

.principio-card__text--dark {
    color: #000000;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .section--principios {
        padding: 60px 0;
    }
    
    .container--principios {
        padding: 0 20px;
    }
    
    .principios__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .principios__left {
        order: 2;
    }
    
    .principios__title-section {
        order: 1;
        margin-bottom: 20px;
    }
    
    .principios__image-wrapper {
        order: 2;
    }
    
    .principios__right {
        order: 3;
    }
    
    .principios__title {
        font-size: 46px;
    }
    
    .principio-card__number {
        width: 45px;
        height: 45px;
        font-size: 20px;
        left: -57px;
        top: 34px;
    }
    
    .principio-card__title {
        font-size: 16px;
    }
    
    .principio-card__text {
        font-size: 14px;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section--contact {
    background: #000000;
    padding: 40px 0;
}

.contact-wrapper {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: var(--color-white);
    border-radius: 12px;
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.contact-image {
    flex: 0 0 50%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    max-height: 600px;
    border-radius: 12px;
    
}

.contact-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 600px;
    max-height: 600px;
}

.contact-form-wrapper {
    flex: 0 0 48%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    padding-right: 0;
    margin: auto;
    max-height: 750px;
}

.contact-title {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--color-secondary) !important;
  line-height: 24px !important;
  margin-bottom: 30px;
}

.contact-subtitle {
    font-size: 14px !important;
    font-weight: 300 !important;
    color: var(--color-dark) !important;
    line-height: 16px !important;
    margin-bottom: 30px;
  }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
    flex: 1;
    width: 80%;
    box-sizing: border-box;
}

.form-group {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-form .btn {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}

.form-label {
    position: absolute;
    top: -10px;
    left: 22px;
    font-size: 10px;
    font-weight: 400;
    color: var(--color-gray);
    background: var(--color-white);
    padding: 0 4px;
}

.form-input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-primary);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-primary);
    color: var(--color-dark);
    background: var(--color-light-gray);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-input::placeholder {
    color: var(--color-gray);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: var(--color-white);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 5L11 1' stroke='%23150230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-textarea {
    min-height: 60px;
    resize: vertical;
}

.contact-email {
    font-size: 12px;
    font-weight: 300;
    color: var(--color-dark);
    opacity: 0.5;
    line-height: 14px;
    margin-top: 15px;
    margin-bottom: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-email-link {
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 0;
}

.footer__wave-background {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 300px; 
    overflow: visible !important; 
    z-index: 0; 
    pointer-events: none;
}

.footer-wave-svg {
    width: 100%;
    height: 360px;
    position: absolute;
    top: -100px; 
    left: 0;
}

.footer__wave-top {
    position: relative;
    z-index: 1;
    width: 100%;
    pointer-events: none;
    line-height: 0;
    margin-top: 20px;
    margin-bottom: -20px;
}

@media (min-width: 1025px) {
    .footer__wave-top {
        margin-bottom: -50px;
    }
}

.footer__wave-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 200px;
    object-fit: cover;
    object-position: top center;
}

.footer__content {
    background: linear-gradient(180deg, rgb(255 8 140) 42.679%,  #FF00FF 100%);
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative;
    z-index: 3;
    margin-top: 0;
}

.footer__main {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer__logo {
    flex-shrink: 0;
    min-width: 0;
    display: block;
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer__logo img {
    width: auto;
    height: auto;
    max-width: 250px;
    margin-bottom: auto;
    display: block;
}

.footer__right {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    align-items: flex-start;
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
}

.footer__menu {
    flex: 0 0 auto;
    min-width: 0;
}

.footer__contact {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 50%;
}

.footer__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__links a {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
    transition: opacity var(--transition);
}

.footer__links a:hover {
    opacity: 0.8;
}

.footer__addresses {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__addresses li {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.5;
}

/* Footer Countries Grid */
.footer__countries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 100%;
}

.footer__countries-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 0;
}

.footer__country {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.footer__country-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.footer__country-flag {
    width: 20px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer__country-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
}

.footer__country-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 28px;
}

.footer__country-info li {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.4;
    min-width: 0;
}

.footer__country-info a {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity var(--transition);
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer__country-info a:hover {
    opacity: 0.8;
}

.footer__bottom {
    border-top: 1px solid rgba(236, 226, 254, 0.3);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copyright {
    font-size: 13.891px;
    font-weight: 500;
    color: var(--color-white);
    opacity: 0.8;
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer__legal a {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
    transition: opacity var(--transition);
}

.footer__legal a:hover {
    opacity: 0.8;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.footer__social a:hover {
    opacity: 0.8;
}

.footer__social img {
    width: 100%;
    height: 100%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* ============================================
   AJUSTES RESPONSIVE GENERALES
   ============================================ */
* {
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.section {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, span, a, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1440px) {
    .container {
        padding: 0 40px;
    }
    
    .section--perfect-match .container {
        padding: 0 20px 40px;
    }
    
    
    .navbar {
        padding: 20px 40px;
    }
    
    .hero {
        padding: 150px 40px 20px;
    }
    
    .hero__stage {
        padding: 150px 40px 80px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .section--perfect-match .container {
        padding: 0 20px 40px;
    }

    .section--que-es {
        padding: 70px 0 70px;
    }
    
    .que-es__layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .que-es__title {
        font-size: 26px;
        text-align: center;
        margin-top: 50px;
    }
    
    .que-es__card {
        padding: 22px;
        margin-bottom: 50px;
    }
    
    .que-es__card p {
        font-size: 16px;
    }

    #que-es .container {
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    .section--perfect-match {
        padding: 60px 0;
    }
    
    .perfect-match {
        padding: 0 10px;
    }
    
    .perfect-match__card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }
    
    .perfect-match__title {
        font-size: 24px;
    }
    
    .pm-pill {
        display: none;
    }
    
    .pm-svg svg {
        height: 22px;
    }
    
    .pm-gradient-box {
        font-size: 14px;
    }
    
    
    .navbar {
        padding: 20px 30px;
    }
    
    .hero {
        padding: 120px 30px 80px;
        min-height: 550px;
    }
    
    .hero__stage {
        padding: 120px 30px 80px;
    }
    
    .hero__title {
        font-size: 55px;
    }
    
    .hero__title-line.black {
        font-size: 80px;
    }
    
    .hero__image {
        max-width: 60%;
    }
    
    .hero__image--stage2 {
        max-width: 50%;
    }
    
    .hero__content--phrases {
        min-height: 1380px;
    }
    
    .hero__phrase--left {
        top: 45%;
        transform: translate(-100px, -50%);
    }
    
    .hero__phrase--right {
        top: 55%;
        transform: translate(100px, -50%);
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section__title {
        font-size: 36px;
        padding: 0 20px;
        word-wrap: break-word;
    }
    
    .brandformance-diagram {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .brandformance-diagram__center {
        order: 1;
        width: 100%;
    }
    
    .brandformance-diagram__left {
        order: 2;
        width: 100%;
        max-width: 500px;
    }
    
    .brandformance-diagram__right {
        order: 3;
        width: 100%;
        max-width: 500px;
    }
    
    .venn-diagram {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 300px;
        margin: 0 auto;
    }
    
    .venn-diagram__image {
        max-width: 100%;
        height: auto;
    }
    
    .venn-label--brand {
        left: 18%;
        font-size: 16px;
    }
    
    .venn-label--performance {
        right: 16%;
        font-size: 16px;
    }
    
    .venn-text-bottom {
        font-size: 18px;
        bottom: -30px;
    }
    
    .info-card {
        width: 100%;
        max-width: 100%;
    }
    
    .info-card--right {
        text-align: left;
    }
    
    .info-card__title--right {
        text-align: left;
    }
    
    .info-card__text--right {
        text-align: left;
    }
    
    .info-card__line--right {
        margin-left: 0;
    }
    
    .perfect-match {
        padding: 0 20px;
    }
    
    .perfect-match__flow {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .flow-item {
        width: 100%;
        align-items: center;
    }
    
    .flow-text {
        font-size: 24px;
    }
    
    .flow-text--small {
        font-size: 24px;
    }
    
    .flow-bar-image {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
    
    .flow-match-image {
        width: 100%;
        max-width: 100px;
        height: auto;
    }
    
    .perfect-match__bottom {
        display: none;
    }
    
    .perfect-match__mobile {
        display: block;
        width: 100%;
    }
    
    .explanation-right-mobile {
        width: 100%;
    }
    
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
    }
    
    .contact-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    .contact-image img {
        height: auto;
        object-fit: contain;
        min-height: 200px;
    }
    
    .contact-form-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .footer__main {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer__right {
        flex-direction: column;
        gap: 40px;
        width: 100%;
        width: 90%;
        margin: 0 auto;
    }
    
    .footer__countries {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__countries-column {
        gap: 30px;
    }
    
    .bubbles-section {
        padding: 0 20px;
    }
    
    .bubbles-wrap {
        overflow-x: hidden;
    }

    .contact-form {
        margin: 0 auto;
        width: 100%;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .bubbles-section .wrap {
        margin: 0 auto 0 !important;
        padding: 0 !important;
    }
    .bubbles-section .section__title {
        font-size: 26px;
    }
    .bubbles-section::before {
        top: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1200px) {
    .principios__title {
        font-size: 45px;
    }
    .principios__layout {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        gap: 60px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .contact-form-wrapper {
        max-height: 800px;
    }
    
    .hero {
        padding: 120px 20px 100px;
        min-height: 520px;
        background-position: center;
    }
    
    .hero__panel {
        padding: 40px 20px;
        max-width: 100%;
    }
    
    .hero__image-stage {
        object-fit: cover;
    }
    
    
    .navbar {
        padding: 15px 20px;
    }
    
    .navbar__links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--color-black);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform var(--transition);
        z-index: 999;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }
    
    .navbar__links--open {
        transform: translateX(0);
    }
    
    .navbar__toggle {
        display: flex;
    }
    
    .navbar__toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar__toggle--active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar__toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .hero__stage {
        padding: 100px 20px 80px;
    }
    
    .hero__title {
        font-size: 48px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .hero__title-line.black {
        font-size: 60px;
    }
    
    .hero__image {
        max-width: 70%;
        margin-bottom: 60px;
    }
    
    .hero__image--stage2 {
        max-width: 55%;
    }
    
    .hero__phrase {
        font-size: 24px;
    }
    
    .section {
        padding: 50px 0;
        overflow-x: hidden;
    }
    
    .section__title {
        font-size: 32px;
        padding: 0 15px;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .info-card {
        padding: 0 10px;
    }
    
    .info-card__title {
        font-size: 16px;
    }
    
    .info-card__text {
        font-size: 13px;
    }
    
    .perfect-match {
        padding: 0 15px;
    }
    
    .perfect-match__flow {
        flex-direction: column;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .flow-item {
        width: 100%;
        max-width: 100%;
    }
    
    .flow-text {
        font-size: 18px;
        word-wrap: break-word;
        text-align: center;
    }
    
    .flow-text--small {
        font-size: 18px;
    }
    
    .flow-bar-image {
        width: 100%;
        max-width: 180px;
        height: auto;
    }
    
    .flow-match-image {
        width: 100%;
        max-width: 100px;
        height: auto;
    }
    
    .perfect-match__bottom {
        display: none;
    }
    
    .perfect-match__mobile {
        display: block;
        width: 100%;
    }
    
    .brandformance-text-mobile {
        font-size: 25px;
    }
    
    .mobile-no-se-trata {
        max-width: 250px;
    }
    
    .explanation-right-mobile {
        width: 100%;
    }
    
    
    .principio-card {
        flex-direction: column;
        padding: 20px;
        padding: 24px 24px 24px 30px;
    }
    
    .principio-title {
        font-size: 20px;
        word-wrap: break-word;
    }
    
    .principio-text {
        font-size: 14px;
        word-wrap: break-word;
    }
    
    .principio-cube {
        display: none;
    }
    
    .contact-wrapper {
        gap: 25px;
        padding: 20px;
    }
    
    .contact-title {
        font-size: 28px;
        word-wrap: break-word;
    }
    
    .contact-subtitle {
        font-size: 14px;
        word-wrap: break-word;
    }
    
    .form-input {
        width: 100%;
        max-width: 100%;
        font-size: 14px;
    }
    
    .footer__main {
        gap: 30px;
        padding: 0 15px;
    }
    
    .footer__addresses li {
        font-size: 11px;
        word-wrap: break-word;
    }

    .footer__logo img {
        max-width: 180px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 0;
        padding: 0 15px;
        border-top: none;
        padding-top: 0;
    }
    
    .footer__copyright {
        order: 3;
        width: 100%;
        font-size: 12px;
        word-wrap: break-word;
        text-align: left;
        padding-top: 20px;
    }
    
    .footer__legal {
        order: 1;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(236, 226, 254, 0.3);
    }
    
    .footer__legal a {
        white-space: normal;
        font-size: 11px;
        text-align: center;
        word-wrap: break-word;
    }
    
    .footer__social {
        justify-content: center;
        width: 100%;
    }
    
    .bubbles-section {
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    .bubbles-wrap {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 12px 15px;
    }
    
    .navbar__logo img {
        max-width: 120px;
    }

    .hero {
        padding: 80px 15px 70px;
        min-height: 450px;
    }
    
    .hero__stage {
        padding: 80px 15px 70px;
    }
    
    .hero__content--phrases {
        min-height: 350px;
    }
    
    .hero__phrase--left {
        top: 45%;
        transform: translate(-100px, -50%);
    }
    
    .hero__phrase--right {
        top: 55%;
        transform: translate(100px, -50%);
    }
    
    .hero__phrase--left.hero__phrase--grow,
    .hero__phrase--right.hero__phrase--grow {
        animation: phraseGrowMobile 2s ease infinite;
    }
    
    @keyframes phraseGrowMobile {
        0%, 100% { transform: translate(0, -50%) scale(1); }
        50% { transform: translate(0, -50%) scale(1.01); }
    }
    
    .hero__title {
        font-size: 32px;
        text-align: center;
        margin-bottom: 25px;
        line-height: 1.1;
    }
    
    .hero__title-line {
        display: block;
    }
    
    .hero__title-line.black {
        font-size: 42px;
    }
    
    .hero__image {
        max-width: 85%;
        margin-bottom: 50px;
    }
    
    .hero__image--stage2 {
        max-width: 65%;
    }
    
    .btn--hero-fixed {
        bottom: 20px;
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .hero__content--phrases {
        min-height: 350px;
        padding: 0 10px;
    }
    
    .hero__phrase {
        font-size: 16px;
        position: absolute;
        line-height: 1.3;
        max-width: 85%;
    }
    
    .hero__phrase--left {
        text-align: left !important;
        top: 45%;
        left: 5%;
        right: auto;
        bottom: auto;
        transform: translate(-100px, -50%);
    }
    
    .hero__phrase--right {
        text-align: right !important;
        top: 55%;
        left: auto;
        right: 5%;
        bottom: auto;
        transform: translate(100px, -50%);
    }
    
    .hero__phrase--left.hero__phrase--grow,
    .hero__phrase--right.hero__phrase--grow {
        animation: phraseGrowMobile 2s ease infinite;
    }
    
    @keyframes phraseGrowMobile {
        0%, 100% { transform: translate(0, -50%) scale(1); }
        50% { transform: translate(0, -50%) scale(1.01); }
    }
    
    .section {
        padding: 40px 0;
        overflow-x: hidden;
    }
    
    .section__title {
        font-size: 22px;
        padding: 0 10px;
        line-height: 1.3;
    }
    
    .brandformance-diagram {
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .venn-diagram {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 200px;
        margin: 0 auto;
    }
    
    .venn-diagram__image {
        max-width: 100%;
        height: auto;
    }
    
    .venn-label--brand {
        left: 20%;
        font-size: 14px;
    }
    
    .venn-label--performance {
        right: 20%;
        font-size: 14px;
    }
    
    .venn-text-bottom {
        font-size: 14px;
        bottom: -20px;
    }
    
    .info-card {
        padding: 0 5px;
    }
    
    .info-card__title {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .info-card__text {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .perfect-match__flow {
        gap: 15px;
    }
    
    .flow-text {
        font-size: 16px;
    }
    
    .flow-text--small {
        font-size: 12px;
    }
    
    .perfect-match__bottom {
        display: none;
    }
    
    .perfect-match__mobile {
        display: block;
        width: 100%;
    }
    
    .brandformance-text-mobile {
        font-size: 25px;
    }
    
    .mobile-connector {
        max-width: 10px;
    }
    
    .mobile-no-se-trata {
        max-width: 200px;
    }
    
    .explanation-right-mobile {
        width: 100%;
    }
    
    
    .principio-card {
        padding: 20px 20px 20px 30px;
        width: 87%;
    }
    
    .principio-card__number {
        left: -55px;
        top: 34px;
    }
    
    .principio-title {
        font-size: 16px;
        line-height: 1.3;
    }
    
    .principio-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .principios__left {
        gap: 30px;
    }
    
    .contact-title {
        font-size: 24px;
    }
    
    .contact-subtitle {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .form-input {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
        padding: 0 5px;
        max-height: 840px;
    }
    
    .footer__main {
        gap: 25px;
        padding: 0 10px;
    }
    
    .footer__right {
        gap: 25px;
    }
    
    .footer__title {
        font-size: 14px;
    }
    
    .footer__countries {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer__countries-column {
        gap: 25px;
    }
    
    .footer__country-flag {
        width: 20px;
    }
    
    .footer__country-name {
        font-size: 12px;
    }
    
    .footer__country-info {
        padding-left: 30px;
    }
    
    .footer__country-info li,
    .footer__country-info a {
        font-size: 11px;
    }
    
    .footer__addresses li {
        font-size: 10px;
        line-height: 1.4;
    }
    
    .footer__copyright {
        font-size: 11px;
    }
    
    .footer__legal a {
        font-size: 10px;
    }
    
    .bubbles-section {
        padding: 0 10px;
        overflow-x: hidden;
    }
}


@media (min-width: 1200px) {
    .hero__panel--image .hero__image-stage {
        max-height: 220px;
    }
    .hero__text {
        font-size: 75px;
    }
}

/* ============================================
   BURBUJAS SECTION
   ============================================ */
.bubbles-section {
    position: relative;
    width: 100%;
    max-height: 100vh;
    background: #000000;
    overflow: hidden;
    margin-top: -10px;
}

.bubbles-section::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1200px;
    height: calc(100vh - 80px);
    background-image: url('../img/fondo-bubbles.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.bubbles-section .section__title {
    position: relative;
    margin-top: 40px;
    z-index: 1;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .bubbles-section::before {
        top: 20px;
        width: calc(100% - 40px);
        height: calc(100vh - 40px);
    }
}


.bubble,
.bubble-label,
.bubble-content {
  font-family: 'Epilogue', system-ui, sans-serif !important;
}

.bubble-label{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:10;
  color:#fff;
  font-weight:400;
  font-size:clamp(1rem, 2.4vw, 1.5rem);
  pointer-events:none;
  white-space:nowrap;
  opacity:1;
  transition: opacity .6s ease;
  text-transform: uppercase;
}

.bubble.selected .bubble-label {
  display:none;
}

/* WRAP */
.bubbles-section .wrap {
  position: relative;
  width: 100%;
  max-width: 1540px;
  height: 50vh;
  margin: 80px auto 0;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 1;
}

/* GOOEY CONTAINER */
#bubbles-goo {
  position: relative;
  width: 100%;
  height: 100%;
}
#bubbles-goo.gooey {
  filter: url(#gooey);
}

/* =========================================
   BURBUJA BASE
========================================= */
.bubble {
  position: absolute;
  width: 22vw;
  height: 22vw;
  max-width: 340px;
  max-height: 340px;
  min-width: 200px;
  min-height: 200px;
  transform: translate(-50%, -50%) scale(0);
  cursor: pointer;
  transition:
    transform 1s cubic-bezier(.4,0,.2,1),
    left 1s cubic-bezier(.4,0,.2,1),
    top 1s cubic-bezier(.4,0,.2,1),
    opacity .8s ease;
  opacity: 0;
  z-index: 5;
}

/* SHAPE */
.blob-shape {
  width: 100%;
  height: 100%;
  border-radius: 55% 45% 60% 40% / 60% 35% 65% 40%;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* COLORES BASE */
.bubble.brand .blob-shape {
  background: var(--color-primary);
}

.bubble.performance .blob-shape {
  background: var(--color-secondary);
}

/* BRANDformance */
.bubble.brandf.merged .blob-shape {
  background: linear-gradient(
    270deg,
    #FF00FF 0%,
    #FF00BF 29.45%,
    #FF007F 65.07%,
    #FF0049 100%
  );
}

.bubble.brand .blob-shape {
  animation: liquidBlob1 15s ease-in-out infinite;
}
.bubble.performance .blob-shape {
  animation: liquidBlob2 16s ease-in-out infinite;
}
.bubble.brandf .blob-shape {
  animation: liquidBlob3 17s ease-in-out infinite;
}

@keyframes liquidBlob1 {
  0% { border-radius: 62% 38% 65% 35% / 58% 60% 40% 42%; }
  50% { border-radius: 45% 55% 50% 50% / 65% 40% 60% 35%; }
  100% { border-radius: 62% 38% 65% 35% / 58% 60% 40% 42%; }
}

@keyframes liquidBlob2 {
  0% { border-radius: 58% 42% 40% 60% / 50% 65% 35% 50%; }
  50% { border-radius: 38% 62% 68% 32% / 60% 42% 58% 40%; }
  100% { border-radius: 58% 42% 40% 60% / 50% 65% 35% 50%; }
}

@keyframes liquidBlob3 {
  0% { border-radius: 60% 40% 62% 38% / 65% 40% 60% 35%; }
  50% { border-radius: 40% 60% 45% 55% / 50% 68% 32% 48%; }
  100% { border-radius: 60% 40% 62% 38% / 65% 40% 60% 35%; }
}

.bubble-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 26px;
  text-align: left;
  color: #fff;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .4s ease, transform .4s ease;
}

.bubble.selected .bubble-content {
  opacity: 1;
  transform: scale(1);
}

.bubble-title {
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.bubble-items {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
}

.bubble-items li svg {
  margin-right: 5px;
  width: 12px;
  height: 12px;
}

.bubble.selected {
  transform: translate(-50%, -50%) scale(1.15) !important;
  z-index: 20;
}

/* POSICIONES DESKTOP  */
@media (min-width: 768px) {
  .pos-left {
    left: 25%;
    top: 45%;
    transform: translate(-50%, -50%) scale(1);
  }

  .pos-center {
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) scale(1);
    margin-left: 20px;
  }

  .pos-right {
    left: 75%;
    top: 45%;
    transform: translate(-50%, -50%) scale(1);
    margin-left: 40px;
  }

}

/* MOBILE – LÓGICA VERTICAL */
@media (max-width: 800px) {
    .bubbles-section {
        max-height: 100%;
    }
    .bubbles-section .wrap {
        margin-top: 20px;
        height: 100vh;
    }
    .section__title {
        font-size: 18px;
    }
    
    .bubbles-section::before {
        top: 20px;
        width: calc(100% - 40px);
        height: calc(100vh + 90px);
    }
    
  .bubble {
    width: 48vw;
    height: 48vw;
    max-width: 260px;
    max-height: 260px;
  }

  .pos-left {
    left: 50%;
    top: 18%;
    transform: translate(-50%, -50%) scale(0.85);
  }

  .pos-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
  }

  .pos-right {
    left: 50%;
    top: 82%;
    transform: translate(-50%, -50%) scale(0.85);
  }

  .bubble.selected {
    transform: translate(-50%, -50%) scale(1.15) !important;
  }

  .bubble-title {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .bubble-content {
    padding: 18px 12px;
    justify-content: center;
    overflow: hidden; 
  }

  .bubble-items {
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
  }

  .bubble-items li {
    margin-bottom: 4px;
  }
}
@media (min-width: 800px) and (max-width: 1250px) {
  .bubble-title {
    font-size: 16px;
  }
  .bubble-items {
    font-size: 12px;
  }
}

/* Pantallas muy grandes - mantener contenido centrado */
@media (min-width: 1441px) {
  .bubbles-section .wrap {
    padding: 0 40px;
  }
  
  .bubbles-section .section__title {
    padding: 0 40px;
  }
}

@media (min-width: 450px) and (max-width: 800px) {
    .bubbles-section::before {
        height: calc(100vh + 70px);
    }
    .pos-left, .pos-right, .pos-center {
        transform: translate(-50%, -50%) scale(0.75);
      }
    
      .bubble.selected {
        transform: translate(-50%, -50%) scale(1) !important;
      }
    
}

#bg-click-area {
  position: absolute;
  inset: 0;
  z-index: 1;
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .que-es__title {
        font-size: 32px;
    }
    .que-es__layout {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
    }
}

@media (max-width: 350px) {
    .contact-form-wrapper {
        max-height: 880px;
    }
}
@media (min-width: 460px) and (max-width: 480px) {
    .contact-form-wrapper {
        max-height: 800px;
    }
}

@media (min-width: 1441px) {
    .hero__btn {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 1500px) {
    .bubbles-section {
        max-height: 900px;
        margin-bottom: 40px;
    }
}

@media (min-width: 2500px) {
    .bubbles-section .wrap {
        margin-top: -40px;
    }
}

@media (min-width: 2800px) {
    .bubbles-section .wrap {
        margin-top: -140px;
    }
}

@media (min-width: 3000px) {
    .bubbles-section .wrap {
        margin-top: -290px;
    }
}