/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Definición de fuentes personalizadas (si tienes archivos locales) */
@font-face {
    font-family: 'Montserrat-Variable';
    src: url('fonts/Montserrat-VariableFont.woff2') format('woff2'),
         url('fonts/Montserrat-VariableFont.woff') format('woff'),
         url('fonts/Montserrat-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat-Italic';
    src: url('fonts/Montserrat-Italic.woff2') format('woff2'),
         url('fonts/Montserrat-Italic.woff') format('woff'),
         url('fonts/Montserrat-Italic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    padding-top: 120px; /* Espacio para el header fijo */
}
hr {
    border: none;
    border-top: 1px solid #97CF69;
    margin: 30px 0;
}

/* Header y navegación */
.header {
    background-color: transparent;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.header.scrolled {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.nav-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 80px;
    background-color: #5069D9;
    border-radius: 53px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(80, 105, 217, 0.3);
}

.header.scrolled .nav-container {
    background-color: #5069D9;
    box-shadow: 0 4px 20px rgba(80, 105, 217, 0.3);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    color: white;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

/* Navegación principal */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Menú hamburguesa para móvil */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .nav-container {
        padding: 0 20px;
        position: relative;
    }
    
    .nav-menu {
        position: absolute;
        left: 0;
        top: 100%;
        flex-direction: column;
        background-color: #5069D9;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        gap: 0;
        border-radius: 0 0 20px 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        z-index: 1001; /* Asegurar que esté por encima del banner carousel */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        margin: 10px 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Estilos adicionales para el contenido principal */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* Estilos tipográficos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-weight: 700;
    color: #333;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-weight: 400;
    color: #666;
    line-height: 1.7;
}

/* Clase para texto en cursiva usando Montserrat Italic */
.italic-text {
    font-family: 'Montserrat', 'Montserrat-Italic', sans-serif;
    font-style: italic;
}

/* Clases utilitarias para diferentes pesos de fuente */
.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Hero Banner */
.hero-banner {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -120px; /* Compensar el padding-top del body */
    padding-top: 120px; /* Mantener el contenido debajo del header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 60px;
}

.hero-logo-img {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 8px;
    margin: 0;
    opacity: 0.9;
}

.hero-text {
    text-align: center;
}

.hero-subtitle {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 20px 0;
    color: white;
}

.hero-main-text {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
    color: #87CEEB;
    line-height: 1.2;
}

/* Responsive para Hero Banner */
@media (max-width: 768px) {
    .hero-logo-img {
        width: 200px;
    }
    
    .hero-title {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-main-text {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        width: 150px;
    }
    
    .hero-title {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-main-text {
        font-size: 1.8rem;
    }
}

/* ======= ABOUT SECTION ======= */
.about-section {
    width: calc(100% + 120px);
    left: -60px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}

/* ======= ABOUT SECTION ======= */
.about-section {
    padding: 80px 20px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    min-height: 400px;
    justify-content: center;
    position: relative;
}

/* Contenedor para los recuadros */
.about-boxes-container {
    position: relative;
    display: flex;
    gap: 5px;
    align-items: flex-start;
    height: auto;
    min-height: 535px; /* Altura total: 310px de recuadros + 225px del rectángulo */
}

/* Recuadro azul principal */
.about-blue-box {
    background: #5069D9;
    border-radius: 37px;
    width: 304.80px;
    height: 310.17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transform: translateX(-50px);
}

.about-blue-box.animate {
    animation: slideInFromLeft 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.about-title {
    color: white;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.1;
    margin: 0;
}

/* Recuadro para imagen */
.about-image-box {
    background: #000000;
    border-radius: 37px;
    width: 304.80px;
    height: 310.17px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
}

.about-image-box.animate {
    animation: slideInFromRight 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.team-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-portrait:hover {
    filter: grayscale(0%);
}

/* Rectángulo inferior */
.about-bottom-rectangle {
    background: #f0f0f0;
    border-radius: 37px;
    width: 640px; /* Medida exacta de Figma */
    height: 225.25px; /* Medida exacta de Figma */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 320px; /* Posicionado justo debajo de los recuadros (310px + 10px gap) */
    left: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.about-bottom-rectangle.animate {
    animation: slideInFromBottom 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.team-workspace {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-workspace:hover {
    filter: grayscale(0%);
}

/* Contenido de texto */
.about-text-animated {
    flex: 1;
    padding-left: 40px;
    min-width: 300px;
    min-height: 535px; /* Misma altura que el contenedor de recuadros */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    filter: blur(6px);
    transform: translateY(30px);
}

/* Clase que se añade cuando la sección es visible */
.about-text-animated.animate {
    animation: fadeInBlur 2s ease-out forwards;
    animation-delay: 0.5s;
}

.about-description,
.about-mission {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 20px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    font-stretch: expanded;
}

.about-description {
    font-weight: 500;
}

.about-mission {
    font-weight: 400;
    color: #666;
}

.about-btn {
    background: linear-gradient(135deg, #5069D9 0%, #4a5cc5 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 105, 217, 0.3);
    margin-top: 10px;
}

.about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 105, 217, 0.4);
    background: linear-gradient(135deg, #4a5cc5 0%, #3d4ba3 100%);
}

/* Animación de entrada con desenfoque */
@keyframes fadeInBlur {
    0% {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

/* Animación desde la derecha */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación desde abajo */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación suave para botones */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de desenfoque personalizada */
@keyframes fadeInBlurCustom {
    0% {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

/* Animación de entrada desde la derecha para iconos */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Clase común para títulos animados */
.title-animated {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(30px);
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.title-animated.animate {
    animation: fadeInBlurCustom 2s ease-out forwards;
}

/* Responsive para la sección About */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 15px;
    }
    
    .about-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
        justify-content: center;
        padding-bottom: 140px; /* Ajustado para mobile */
    }
    
    .about-boxes-container {
        min-height: 270px; /* Altura ajustada para mobile: 150px + 110px + gap */
        width: 100%;
        justify-content: center;
    }
    
    .about-blue-box {
        width: 140px;
        height: 150px;
        border-radius: 25px;
        margin-left: 0;
        transform: translateX(-20px); /* Distancia menor en mobile */
    }
    
    .about-blue-box.animate {
        animation-delay: 0.2s;
    }
    
    .about-image-box {
        width: 140px;
        height: 150px;
        border-radius: 25px;
        margin-left: 8px;
        transform: translateX(20px); /* Distancia menor en mobile */
    }
    
    .about-image-box.animate {
        animation-delay: 0.3s;
    }
    
    .about-title {
        font-size: 1.3rem;
        line-height: 1.1;
    }
    
    .about-bottom-rectangle {
        width: 295px; /* Ajustado para mobile */
        height: 110px; /* Proporcional al nuevo ancho */
        position: absolute;
        top: 170px; /* Posicionado correctamente debajo de los recuadros (150px + 20px gap) */
        left: 50%;
        transform: translateX(-50%) translateY(30px); /* Centrado horizontalmente y animación */
        border-radius: 25px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    }
    
    .about-bottom-rectangle.animate {
        animation-delay: 0.4s;
    }
    
    .about-text-animated {
        padding-left: 0;
        text-align: center;
        width: 100%;
        margin-top: 20px;
        order: 3; /* Asegura que el texto aparezca después de los recuadros */
        min-height: auto; /* Permitir altura automática en mobile */
        justify-content: flex-start;
        opacity: 0;
        filter: blur(6px);
        transform: translateY(20px);
    }
    
    .about-text-animated.animate {
        animation: fadeInBlur 2s ease-out forwards;
        animation-delay: 0.7s;
    }
    
    .about-description,
    .about-mission {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Media query adicional para pantallas muy pequeñas */
@media (max-width: 480px) {
    .about-bottom-rectangle {
        width: 280px; /* Más pequeño para pantallas muy reducidas */
        height: 105px;
        top: 175px; /* Ajuste de posición para pantallas pequeñas */
    }
    
    .about-boxes-container {
        min-height: 280px; /* Ajustar altura del contenedor */
    }
    
    .about-content {
        padding-bottom: 150px; /* Más espacio en pantallas pequeñas */
    }
}

/* Sección Nuestras Marcas */
.brands-section {
    padding: 80px 20px;
    background: white
}

.brands-container {
    max-width: 1200px;
    margin: 0 auto;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.brands-header .blog-title {
    margin-bottom: 0;
}

.brands-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.brands-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    flex: 1;
    transition: opacity 0.3s ease;
}

.brands-carousel:hover {
    opacity: 0.95;
}

.brands-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 400%; /* 4 grupos de marcas */
}

.brands-group {
    display: flex;
    width: 25%; /* Cada grupo ocupa 1/4 del track */
    gap: 20px;
    padding: 0 10px;
    align-items: flex-start;
    justify-content: flex-start;
}

.brand-panel {
    width: 294px;
    height: 472px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
}



.brand-main {
    background: linear-gradient(135deg, #5069D9 0%, #4a5cc5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
    width: 305px;
    height: 311px;
}

.brand-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-right: 20px;
}

.brand-main h3 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.1;
    color: white;
    text-align: left;
}

.brand-btn {
    background-color: transparent;
    color: #5069D9;
    border: 2px solid #5069D9;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brand-btn:hover {
    background-color: #5069D9;
    color: white;
    transform: translateY(-2px);
}

.brand-btn-external {
    box-shadow: 0 4px 15px rgba(80, 105, 217, 0.2);
    min-width: 140px;
}

.brand-button-container {
    text-align: center;
    margin-top: 40px;
}

.brand-product {
    background: white;
    position: relative;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-panel:hover .brand-image {
    transform: scale(1.05);
}

.brand-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white !important;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.brand-panel:hover .brand-overlay {
    transform: translateY(0);
    color: white !important;
}

.brand-overlay h4 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: white !important;
}



.brands-btn {
    background-color: rgba(255, 255, 255, 0.95);
    color: #5069D9;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.brands-btn:hover {
    background-color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Controles de navegación inline */
.brands-controls-inline {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.brands-controls-inline .brands-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.brands-controls-inline .brands-btn:hover {
    transform: scale(1.05);
}

/* Responsive para marcas */
@media (max-width: 768px) {
    .brands-section {
        padding: 60px 15px;
    }
    
    .brands-header {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .brands-header .blog-title {
        margin-bottom: 0;
    }
    
    .brands-layout {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .brand-main-container {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .brands-group {
        gap: 10px;
        padding: 0 5px;
        justify-content: center;
    }
    
    .brand-panel {
        width: 180px;
        height: 280px;
        border-radius: 15px;
    }
    
    .brand-main {
        width: 180px;
        height: 200px;
        padding: 20px 15px;
    }
    
    .brand-main h3 {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .brand-main-container {
        gap: 10px;
    }
    
    .brand-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .brand-overlay h4 {
        font-size: 1.1rem;
    }
    
    .brands-controls-inline {
        gap: 12px;
        margin-top: 8px;
    }
    
    .brands-controls-inline .brands-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .brand-button-container {
        margin-top: 30px;
    }
}

/* ======= CARRUSEL HISTORIA INFINITO ======= */
.history-carousel-section {
    padding: 0 !important;
    margin-top: -20px !important;
    background: transparent;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.history-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.history-track {
    display: flex;
    width: fit-content;
    gap: 40px;
    align-items: center;
    transition: transform 0.1s ease-out; /* Suavizar el movimiento del scroll */
    will-change: transform; /* Optimizar rendimiento */
}

/* Pausar la animación automática cuando se hace scroll manual */
.history-track.scroll-controlled {
    animation-play-state: paused;
}

.history-track:not(.scroll-controlled) {
    animation: historyScrollInfinite 70s linear infinite;
}

.history-item {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 60px;
    font-weight: 700;
    white-space: nowrap;
    padding: 20px 40px;
    border-radius: 30px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: transparent !important;
    border: none;
}

.history-filled {
    color: #5069D9;
    -webkit-text-stroke: none;
}

.history-outlined {
    color: white;
    -webkit-text-stroke: 2px #5069D9;
     text-stroke: 2px #5069D9; 
}

.history-item:hover {
    transform: scale(1.05);
    box-shadow: none;
}

/* Animación infinita del carrusel historia */
@keyframes historyScrollInfinite {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive para carrusel historia */
@media (max-width: 768px) {
    .history-carousel-section {
        padding: 0 !important;
        margin-top: -15px !important;
    }
    
    .history-item {
        font-size: 40px;
        padding: 15px 30px;
        border-radius: 20px;
    }
    
    .history-track {
        gap: 20px;
        animation-duration: 70s;
    }
}

@media (max-width: 480px) {
    .history-carousel-section {
        margin-top: -10px !important;
    }
    
    .history-item {
        font-size: 28px;
        padding: 10px 20px;
        border-radius: 15px;
    }
    
    .history-track {
        gap: 15px;
        animation-duration: 70s;
    }
}

/* ======= NUEVA SECCIÓN VALORES ======= */
.values-section {
    padding: 80px 20px;
    background: white !important;
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}

.value-card {
    width: 294px;
    height: 367px;
    background-color: #E4E4E4;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: none;
    filter: none;
}

.value-card:hover {
    background-color: #5069D9;
}

.value-card:hover .value-content p {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.value-card:hover .value-icon {
    opacity: 1;
    visibility: visible;
}


.value-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    height: 100%;
    padding: 0;
}

.value-icon-img {
    width: 100%;
    height: auto;
    max-height: 80%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.value-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.value-content p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    margin: 0;
    transition: color 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 20px;
}

/* Responsive para nueva sección valores */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .values-section {
        padding: 60px 15px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-card {
        width: 100%;
        max-width: 294px;
        height: 367px;
        padding: 25px 15px;
    }
    
    .value-icon-img {
        max-height: 70%;
    }
    
    .value-content p {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .value-card {
        height: 280px;
        padding: 20px 15px 15px 15px;
    }
    
    .value-icon-img {
        max-height: 60%;
    }
    
    .value-content {
        padding-top: 10px;
    }
    
    .value-content p {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
    }
}

/* Sección Nuestros Valores */
.values-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.values-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.values-title {
    text-align: center;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 60px;
}

.innovation-card {
    width: 100%;
    height: 603px;
    background: linear-gradient(135deg, #5069D9, #4158D0);
    border-radius: 40px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 50px;
    color: white !important;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.innovation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.innovation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.innovation-icon {
    width: 60px;
    height: 60px;
}

.innovation-icon img {
    width: 100%;
    height: 100%;
}

.innovation-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    transform: rotate(180deg);
    text-align: center;
    color: white !important;
}

.innovation-text {
    position: absolute;
    top: 50px;
    right: 50px;
    max-width: 400px;
}

.innovation-text p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    color: white;
    text-align: right;
    margin: 0;
}

/* Recuadro de Pasión */
.passion-card {
    width: 90%;
    height: 603px;
    background: #97CF69;
    border-radius: 40px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 50px;
    color: white;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-top: 30px;
    margin-left: auto;
}

.passion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.passion-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.passion-icon {
    width: 60px;
    height: 60px;
}

.passion-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.passion-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    transform: rotate(180deg);
    text-align: center;
    color: white !important;
}

.passion-text {
    position: absolute;
    top: 50px;
    right: 50px;
    max-width: 400px;
}

.passion-text p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    color: white;
    text-align: right;
    margin: 0;
}



/* Responsive para valores */
@media (max-width: 768px) {
    .values-section {
        padding: 60px 0;
        min-height: 300vh;
    }
    
    .values-title {
        font-size: 2.2rem;
        margin-bottom: 60px;
    }
    
    .value-card {
        height: 350px;
        border-radius: 20px;
        top: 80px;
        flex-direction: column;
    }
    
    .value-content {
        flex-direction: column;
    }
    
    .value-left {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 30px 20px 20px;
        gap: 20px;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
    }
    
    .values-section {
        padding: 80px 0;
    }
    
    .values-container {
        padding: 0 20px;
    }
    
    .values-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
        letter-spacing: 1px;
    }
    
    .values-main-container {
        flex-direction: column;
        gap: 40px;
        max-width: 100%;
    }
    
    .values-cards-row {
        flex-direction: column;
        gap: 15px;
        height: auto;
        border-radius: 25px;
        overflow: visible;
        box-shadow: none;
    }
    
    .value-card {
        width: 100% !important;
        height: 180px;
        border-radius: 25px !important;
        margin: 0;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .value-card:hover {
        transform: translateY(-3px) scale(1);
    }
    
    .value-name {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        transform: none;
        font-size: 1.8rem;
        letter-spacing: 3px;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
    
    .value-icon {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .value-icon img {
        width: 28px;
        height: 28px;
    }
    
    .values-description {
        margin-left: 0;
        max-width: 100%;
        padding: 40px 25px;
        text-align: center;
        border-radius: 25px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .values-description p {
        font-size: 1.1rem;
        line-height: 1.7;
        font-weight: 400;
    }
    
    /* Animaciones más suaves en móvil */
    .value-card::after {
        display: none;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/* Sección Blog - Participaciones y Eventos */
.blog-section {
    padding: 100px 0;
    background: #ffffff;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.blog-title {
    text-align: left;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #5069D9;
    margin-bottom: 10px;
}

.blog-grid {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    height: auto;
}

/* Columnas del blog */
.blog-left-column,
.blog-center-column,
.blog-right-column,
.blog-fourth-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Rectángulos (elementos que deben ser 312x546) */
.blog-left-column .blog-card:nth-child(1),
.blog-center-column .blog-card:nth-child(2),
.blog-right-column .blog-card:nth-child(1),
.blog-fourth-column .blog-card:nth-child(2) {
    width: 312px;
    height: 546px;
    flex-shrink: 0;
}

/* Cuadrados azules (elementos que deben ser 312x257) */
.blog-left-column .blog-card:nth-child(2),
.blog-center-column .blog-card:nth-child(1),
.blog-right-column .blog-card:nth-child(2),
.blog-fourth-column .blog-card:nth-child(1) {
    width: 312px;
    height: 257px;
    flex-shrink: 0;
    background: #5069D9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-50px);
}

/* Clase que se añade cuando la sección es visible */
.blog-card.animate {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

/* Animación escalonada para cada tarjeta */
.blog-card.animate:nth-child(1) { animation-delay: 0.1s; }
.blog-card.animate:nth-child(2) { animation-delay: 0.2s; }
.blog-card.animate:nth-child(3) { animation-delay: 0.3s; }
.blog-card.animate:nth-child(4) { animation-delay: 0.4s; }
.blog-card.animate:nth-child(5) { animation-delay: 0.5s; }
.blog-card.animate:nth-child(6) { animation-delay: 0.6s; }
.blog-card.animate:nth-child(7) { animation-delay: 0.7s; }
.blog-card.animate:nth-child(8) { animation-delay: 0.8s; }

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animación de entrada desde la izquierda */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tarjetas de imagen */
.blog-image {
    position: relative;
    background: #ffffff;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-image:hover {
    border-color: #5069D9;
    box-shadow: 0 8px 25px rgba(80, 105, 217, 0.15);
    transform: translateY(-3px);
}

.blog-img {
    width: 100%;
    height: 546px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.blog-image:hover .blog-img {
    transform: scale(1.03);
}

/* Tarjetas de fecha azules */
.blog-date-card {
    background: linear-gradient(135deg, #5069D9, #4158D0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.blog-number {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-date {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 1px;
}

/* Botón Ver más del blog */
.blog-button-container {
    text-align: center;
    margin-top: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-button-container.animate {
    animation: fadeInBlurCustom 2s ease-out forwards;
    animation-delay: 0.6s; /* Aparece después de las tarjetas */
}

.blog-more-btn {
    display: inline-block;
    background: white;
    color: #5069D9;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(80, 105, 217, 0.2);
    border: 2px solid #5069D9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-more-btn:hover {
    background: #5069D9;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(80, 105, 217, 0.4);
    border: 2px solid #5069D9;
}

.blog-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(80, 105, 217, 0.4);
}

/* Responsive para blog */
@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-container {
        padding: 0 20px;
    }
    
    .blog-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .blog-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 15px;
        max-width: 100%;
        height: auto;
    }
    
    /* Mostrar todas las tarjetas en móvil */
    .blog-card:nth-child(n+3) {
        display: block;
    }
    
    /* Resetear posicionamiento para móvil */
    .blog-card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .blog-card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .blog-card:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .blog-card:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .blog-card:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .blog-card:nth-child(6) {
        grid-column: 2;
        grid-row: 3;
    }
    
    .blog-card:nth-child(7) {
        grid-column: 1;
        grid-row: 4;
    }
    
    .blog-card:nth-child(8) {
        grid-column: 2;
        grid-row: 4;
    }
    
    .blog-card {
        width: 100%;
        height: 180px;
        transform: translateX(-30px);
    }
    
    .blog-date-card {
        height: 180px;
    }
    
    .blog-number {
        font-size: 2.2rem;
        margin-bottom: 5px;
    }
    
    .blog-date {
        font-size: 0.85rem;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-img {
        width: 100%;
        height: calc(100% - 30px);
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .blog-card {
        height: 160px;
        transform: translateX(-20px); /* Distancia aún menor en pantallas pequeñas */
    }
    
    .blog-date-card {
        height: 160px;
    }
    
    .blog-number {
        font-size: 1.8rem;
        margin-bottom: 3px;
    }
    
    .blog-date {
        font-size: 0.75rem;
    }
    
    .blog-image {
        height: 160px;
        padding: 8px;
    }
    
    .blog-img {
        width: 100%;
        height: calc(100% - 16px);
    }
    
    .blog-button-container {
        margin-top: 30px;
    }
    
    .blog-more-btn {
        padding: 14px 30px;
        font-size: 0.9rem;
    }
}

/* ======= PDV CAROUSEL SECTION ======= */
.pdv-section {
    padding: 20px 0;
    overflow: hidden;
}

.pdv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pdv-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 60px;
    position: relative;
}

.pdv-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #5069D9, #4158D0);
    border-radius: 2px;
}

/* Carrusel PDV */
.pdv-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask: linear-gradient(
        90deg,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
    -webkit-mask: linear-gradient(
        90deg,
        transparent,
        white 20%,
        white 80%,
        transparent
    );
}

.pdv-track {
    display: flex;
    animation: scrollInfinite 45s linear infinite;
    width: fit-content;
}

/* Pausar animación al hover */
.pdv-carousel:hover .pdv-track {
    animation-play-state: paused;
}

/* Slides PDV */
.pdv-slide {
    flex: 0 0 300px;
    height: 200px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pdv-slide:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(80, 105, 217, 0.15);
}

.pdv-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.1s;
}

.pdv-slide:hover::before {
    left: 100%;
}

/* Logotipos PDV */
.pdv-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: all 0.1s ease;
    filter: grayscale(0.3);
}

.pdv-slide:hover .pdv-logo {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Animación infinita */
@keyframes scrollInfinite {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Responsive para PDV */
@media (max-width: 768px) {
    .pdv-section {
        padding: 40px 0;
    }
    
    .pdv-container {
        padding: 0 20px;
    }
    
    .pdv-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
        line-height: 1.2;
        padding: 0 10px;
    }
    
    .pdv-title::after {
        width: 40px;
        height: 3px;
    }
    
    .pdv-slide {
        flex: 0 0 250px;
        height: 160px;
        margin: 0 15px;
    }
    
    .pdv-track {
        animation-duration: 45s;
    }
}

@media (max-width: 480px) {
    .pdv-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        line-height: 1.3;
        padding: 0 15px;
        word-spacing: 2px;
    }
    
    .pdv-title::after {
        width: 35px;
        height: 2px;
        bottom: -10px;
    }
    
    .pdv-slide {
        flex: 0 0 200px;
        height: 140px;
        margin: 0 10px;
    }
}

/* ======= SOCIAL MEDIA SECTION ======= */
.social-section {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.social-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.social-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.social-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-align: center;
}

/* Contenedor de íconos */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: #5069D9;
}

/* Enlaces de redes sociales */
.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 140px;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    gap: 8px;
    padding: 10px;
}

.social-name {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #5069D9;
    margin-top: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Instagram - Solo borde azul, sin fondo */
.social-link.instagram {
    background: transparent;
    border: none;
}

/* Facebook - Fondo azul sólido */
.social-link.facebook {
    background: transparent;
    border: none;
}

/* LinkedIn - Fondo azul sólido */
.social-link.linkedin {
    background: transparent;
    border: none;
}

/* Efecto hover */
.social-link:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.social-link:hover .social-name {
    color: #3d52b8;
    font-weight: 600;
}

.social-link.instagram:hover {
    background: rgba(80, 105, 217, 0.1);
    border-color: #4158D0;
}

.social-link.facebook:hover {
    background: rgba(80, 105, 217, 0.1);
}

.social-link.linkedin:hover {
    background: rgba(80, 105, 217, 0.1);
}

/* Íconos SVG */
.social-icon {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

/* Animación para iconos de redes sociales */
.social-link {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-link.animate {
    animation: slideInFromRight 0.6s ease-out forwards;
}

/* Delays escalonados para cada icono */
.social-link:nth-child(1).animate {
    animation-delay: 0.1s;
}

.social-link:nth-child(2).animate {
    animation-delay: 0.3s;
}

.social-link:nth-child(3).animate {
    animation-delay: 0.5s;
}

/* Íconos PNG - sin filtros, usando los colores originales de las imágenes */
.social-link.instagram .social-icon,
.social-link.facebook .social-icon,
.social-link.linkedin .social-icon {
    filter: none;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Responsive para redes sociales */
@media (max-width: 768px) {
    .social-section {
        padding: 80px 0;
    }
    
    .social-container {
        padding: 0 20px;
    }
    
    .social-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .social-subtitle {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }
    
    .social-icons {
        gap: 35px;
    }
    
    .social-link {
        width: 100px;
        height: 100px;
        border-radius: 20px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .social-title {
        font-size: 2rem;
    }
    
    .social-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .social-icons {
        gap: 30px;
    }
    
    .social-link {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* ======= INSTAGRAM FEED SECTION ======= */
.instagram-feed-section {
    padding: 80px 0;
    background: white;
}

.instagram-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.instagram-title {
    text-align: left;
    font-size: 3rem;
    font-weight: 700;
    color: #5069D9;
    margin-bottom: 10px;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    position: relative;
}



.instagram-widget {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.snapwidget-widget {
    border-radius: 15px !important;
}

/* Iconos de redes sociales dentro de Instagram feed */
.instagram-social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.instagram-social-icons .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #5069D9;
    box-shadow: 0 4px 15px rgba(80, 105, 217, 0.15);
}

.instagram-social-icons .social-link:hover {
    background: #5069D9;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(80, 105, 217, 0.3);
}

.instagram-social-icons .social-icon {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(30%) sepia(95%) saturate(3000%) hue-rotate(221deg) brightness(95%) contrast(85%);
}

.instagram-social-icons .social-link:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* Responsive para Instagram feed */
@media (max-width: 768px) {
    .instagram-feed-section {
        padding: 60px 0;
    }
    
    .instagram-container {
        padding: 0 20px;
    }
    
    .instagram-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .instagram-widget {
        padding: 15px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .instagram-title {
        font-size: 1.8rem;
    }
    
    .instagram-widget {
        padding: 10px;
    }
}

/* ======= MAIN FOOTER ======= */
.main-footer {
    background: #5069D9;
    color: white;
    padding: 60px 0 40px;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Columna izquierda - Enlaces */
.footer-links .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links .footer-menu li {
    margin-bottom: 15px;
}

.footer-links .footer-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links .footer-menu li a:hover {
    color: #f0f0f0;
    transform: translateX(5px);
}

/* Columna central - Políticas y Redes */
.footer-center {
    text-align: center;
}

.footer-policies {
    margin-bottom: 30px;
}

.footer-policies p {
    margin: 8px 0;
}

.footer-policies a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: #f0f0f0;
}

/* Redes sociales del footer */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-social-link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Columna derecha - Logo */
.footer-logo {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Mosaico decorativo */
.footer-mosaic {
    position: absolute;
    bottom: 0 !important;
    margin-left: 880px;
    margin-bottom: 0px !important;
    width: 482px;
    height: 69px;
    z-index: 1;
}

.mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive del footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 30px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        text-align: center;
    }
    
    .footer-logo-img {
        max-width: 150px;
    }
    
    .footer-links .footer-menu li a:hover {
        transform: none;
    }
    
    .footer-mosaic {
        width: 320px;
        height: 46px;
        bottom: 0;
        right: 10px;
        margin-left: 0;
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .footer-container {
        gap: 30px;
    }
    
    .footer-social {
        gap: 15px;
    }
    
    .footer-social-link {
        width: 45px;
        height: 45px;
    }
    
    .footer-social-link img {
        width: 20px;
        height: 20px;
    }
    
    .footer-mosaic {
        width: 240px;
        height: 34px;
        bottom: 0;
        right: 10px;
        margin-left: 0;
        opacity: 0.5;
    }
}
footer p {
    margin: 0;
    font-size: 1rem;
    color: white;
}

/* ======= BRANDS PRODUCTS SECTION ======= */
.brands-products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.brands-products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.brand-showcase {
    margin-bottom: 80px;
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.brand-info {
    text-align: center;
    margin-bottom: 40px;
}

.brand-name {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #5069D9;
    margin-bottom: 15px;
}

.brand-description {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 20px;
    align-items: center;
}

.product-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-collection .product-image {
    height: 400px;
}

/* Marca familia - Banner especial */
.family-brand {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    padding: 60px 40px;
}

.brand-banner {
    text-align: center;
}

.family-title {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.highlight {
    color: #ffeb3b;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.products-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.product-mini {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.product-mini:hover {
    transform: scale(1.1);
}

.mini-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive para marcas */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .product-collection {
        grid-column: 1 / -1;
    }
    
    .family-title {
        font-size: 2.5rem;
    }
    
    .products-line {
        gap: 15px;
    }
    
    .product-mini {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .brands-products-section {
        padding: 60px 0;
    }
    
    .brands-products-container {
        padding: 0 20px;
    }
    
    .brand-showcase {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .brand-name {
        font-size: 2.2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-image {
        height: 250px;
    }
    
    .product-collection .product-image {
        height: 300px;
    }
    
    .family-brand {
        padding: 40px 20px;
    }
    
    .family-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .products-line {
        gap: 10px;
    }
    
    .product-mini {
        width: 50px;
        height: 50px;
    }
}

/* ======= IMAGE CONTAINERS SECTION ======= */
.image-containers-section {
    padding: 80px 0;
    background: #ffffff;
}

.containers-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.image-container {
    background: #f5f5f5;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-container:hover {
    border-color: #5069D9;
    box-shadow: 0 10px 30px rgba(80, 105, 217, 0.2);
    transform: translateY(-5px);
}

.square-container {
    aspect-ratio: 1 / 1;
    min-height: 300px;
}

.rectangle-container {
    aspect-ratio: 16 / 9;
    min-height: 200px;
}

/* Responsive para contenedores de imágenes */
@media (max-width: 768px) {
    .image-containers-section {
        padding: 60px 0;
    }
    
    .containers-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .square-container {
        min-height: 250px;
    }
    
    .rectangle-container {
        min-height: 180px;
    }
}

/* ======= CUSTOM BOX SECTION ======= */
.custom-box-section {
    padding: 80px 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.custom-box-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    justify-content: center;
    row-gap: 0px !important; /* Sin separación vertical */
    column-gap: 30px; /* Separación horizontal normal */
}

/* Forzar que el segundo rectángulo esté pegado al primero */
.custom-rectangle-small:nth-child(4) {
    margin-top: -200px !important;
}

.custom-box {
    width: 319px;
    height: 434px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-box:hover {
    border-color: #5069D9;
    box-shadow: 0 10px 30px rgba(80, 105, 217, 0.2);
    transform: translateY(-5px);
}

/* Estilos para las imágenes dentro de los contenedores */
.container-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px; /* Un poco menos que el contenedor para que no se vea cortado */
    transition: transform 0.3s ease;
}

.container-image:hover {
    transform: scale(1.05);
}

/* ======= BRANDS CARDS SECTION ======= */
.brands-cards-section {
    padding: 80px 0;
    background: #ffffff;
}

.brands-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

.brand-card {
    width: 100%;
    aspect-ratio: 294 / 472;
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.brand-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-card-image {
    transform: scale(1.05);
}

.brand-card-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card:hover .brand-card-button {
    opacity: 1;
}

.ver-marca-btn {
    background: #5069D9;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(80, 105, 217, 0.3);
}

.ver-marca-btn:hover {
    background: #3d52b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(80, 105, 217, 0.4);
}

/* Responsive para brands cards */
@media (max-width: 1024px) {
    .brands-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .brands-cards-section {
        padding: 60px 0;
    }
    
    .brands-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    
    .brand-card {
        border-radius: 30px;
    }
    
    .brand-card-button {
        opacity: 1;
        bottom: 15px;
    }
    
    .ver-marca-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .brands-cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .brand-card {
        border-radius: 25px;
    }
    
    .brand-card-button {
        bottom: 10px;
    }
    
    .ver-marca-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ======= MODAL DE MARCA ======= */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    
    margin: 3% auto;
    padding: 50px;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    position: relative;
    color: white;
    max-height: 90vh;
    overflow-y: hidden;
    overflow-x: hidden;
    background-blend-mode: overlay;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.modal-close:hover {
    color: #5069D9;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 15px;
}

.modal-brand-logo {
    flex-shrink: 0;
}

.modal-logo-img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.modal-brand-info {
    flex: 1;
}

.modal-brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.modal-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #cccccc;
}

.modal-visit-btn {
    background: #5069D9;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-visit-btn:hover {
    background: #3d52b8;
    transform: translateY(-2px);
}

.modal-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
    border-radius: 15px;
}

.modal-product {
   width: 385px;
    height: 288px;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.modal-product:hover {
    transform: translateY(-5px);
}

.modal-product-img {
    width: 354px;
    height: 238px;
    object-fit: cover;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .modal-logo-img {
        width: 150px;
    }
    
    .modal-brand-title {
        font-size: 28px;
    }
    
    .modal-products {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-product-img {
        height: 150px;
    }
}

.custom-rectangle {
    width: 630px;
    height: 215px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-rectangle:hover {
    border-color: #5069D9;
    box-shadow: 0 10px 30px rgba(80, 105, 217, 0.2);
    transform: translateY(-5px);
}

.custom-rectangle-small {
    width: 480px;
    height: 200px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-rectangle-small:hover {
    border-color: #5069D9;
    box-shadow: 0 10px 30px rgba(80, 105, 217, 0.2);
    transform: translateY(-5px);
}

/* Responsive para el recuadro personalizado */
@media (max-width: 768px) {
    .custom-box-section {
        padding: 60px 0;
    }
    
    .custom-box-container {
        padding: 0 20px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 20px;
        max-width: 600px;
    }
    
    .custom-box {
        width: 280px;
        height: 380px;
        justify-self: center;
    }
    
    /* Ocultar la tercera columna (rectángulos) en móvil */
    .custom-rectangle-small {
        display: none;
    }
}

@media (max-width: 480px) {
    .custom-box-container {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .custom-box {
        width: 250px;
        height: 340px;
        grid-column: 1 !important;
        justify-self: center;
    }
    
    /* Mantener ocultos los rectángulos en móvil pequeño también */
    .custom-rectangle-small {
        display: none;
    }
}

/* Sección ¿Quiénes Somos? */
.about-us-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.about-us-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Contenedor de imágenes */
.about-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    height: 500px;
}

.image-box {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background-color: #e9ecef;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-box:hover img {
    transform: scale(1.05);
}

/* Tamaños específicos de las cajas de imagen */
.image-box.large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.image-box.medium {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.image-box.small {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Contenido de texto */
.about-content {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #5069D9;
    margin-bottom: 30px;
    line-height: 1.2;
    order: 1;
}

.about-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    line-height: 1.8 !important;
    text-align: justify !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 2;
    margin-top: 20px !important;
}

/* Responsive para tablet */
@media (max-width: 1024px) {
    .about-us-container {
        gap: 60px;
        padding: 0 30px;
    }
    
    .about-title {
        font-size: 42px;
    }
    
    .about-text {
        font-size: 16px;
    }
    
    .image-grid {
        height: 400px;
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .about-us-section {
        padding: 60px 0;
    }
    
    .about-us-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }
    
    .about-content {
        padding-left: 0;
        order: 1;
    }
    
    .about-images {
        order: 2;
    }
    
    .about-title {
        font-size: 36px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .about-text {
        font-size: 16px;
        text-align: left;
    }
    
    .image-grid {
        height: 350px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .about-us-section {
        padding: 40px 0;
    }
    
    .about-title {
        font-size: 28px;
    }
    
    .about-text {
        font-size: 14px;
    }
    
    .image-grid {
        height: 300px;
        gap: 10px;
    }
}

/* Sección Visión y Misión */
.vision-mission-section {
    padding: 100px 0;
    background-color: white;
}

.vision-mission-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 356px 1fr 356px;
    gap: 30px;
    align-items: start;
}

/* Columnas para vision y mission */
.vision-column,
.mission-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Recuadro de Visión */
.vision-box {
    background: linear-gradient(135deg, #5069D9 0%, #4158D0 100%);
    width: 356px;
    height: 250px;
    border-radius: 25px;
    padding: 40px 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(80, 105, 217, 0.3);
    transition: transform 0.3s ease;
}

.vision-box:hover {
    transform: translateY(-10px);
}

.vision-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.vision-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.vision-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: white;
}

.vision-products {
    height: 180px;
    width: 356px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.vision-products:hover {
    transform: translateY(-5px);
}

.product-showcase {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.vision-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vision-products:hover .vision-product-img {
    transform: scale(1.05);
}

/* Recuadro central (más largo) */
.center-showcase {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.center-showcase:hover {
    transform: translateY(-5px);
}

.showcase-image {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.center-showcase:hover .showcase-img {
    transform: scale(1.05);
}

/* Recuadro de Misión */
.mission-box {
    background: linear-gradient(135deg, #97CF69 0%, #7BB856 100%);
    height: 250px;
    width: 356px;
    border-radius: 25px;
    padding: 40px 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(151, 207, 105, 0.3);
    transition: transform 0.3s ease;
}

.mission-box:hover {
    transform: translateY(-10px);
}

.mission-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.mission-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.mission-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: white;
}

.mission-products {
    height: 180px;
    width: 356px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mission-products:hover {
    transform: translateY(-5px);
}

.mission-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mission-products:hover .mission-product-img {
    transform: scale(1.05);
}

/* Responsive para Visión y Misión */
@media (max-width: 1024px) {
    .vision-mission-container {
        grid-template-columns: 300px 1fr 300px;
        gap: 20px;
        padding: 0 30px;
    }
    
    .vision-title,
    .mission-title {
        font-size: 28px;
    }
    
    .vision-text,
    .mission-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .vision-mission-section {
        padding: 60px 0;
    }
    
    .vision-mission-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .vision-column,
    .mission-column {
        gap: 15px;
    }
    
    .vision-box,
    .mission-box {
        width: 100%;
        height: 200px;
        padding: 30px 20px;
    }
    
    .vision-products,
    .mission-products {
        width: 100%;
        height: 150px;
    }
    
    .center-showcase {
        height: 300px;
        order: 1;
    }
    
    .vision-column {
        order: 2;
    }
    
    .mission-column {
        order: 3;
    }
    
    .vision-title,
    .mission-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .vision-text,
    .mission-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .vision-mission-section {
        padding: 40px 0;
    }
    
    .vision-mission-container {
        gap: 20px;
        padding: 0 15px;
    }
    
    .vision-column,
    .mission-column {
        gap: 10px;
    }
    
    .vision-box,
    .mission-box {
        width: 100%;
        height: 180px;
        padding: 25px 15px;
    }
    
    .vision-products,
    .mission-products {
        width: 100%;
        height: 120px;
    }
    
    .center-showcase .showcase-image {
        height: 310px;
    }
    
    .vision-title,
    .mission-title {
        font-size: 20px;
    }
    
    .vision-text,
    .mission-text {
        font-size: 14px;
    }
}

/* Sección ¿Por qué elegirnos? */
.why-choose-us-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.why-choose-us-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Contenido izquierdo */
.why-choose-content {
    max-width: 600px;
}

.why-choose-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #5069D9;
    margin-bottom: 30px;
    line-height: 1.2;
}

.why-choose-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Grid de iconos */
.why-choose-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 200px;
}

.icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.icon-circle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Colores específicos para cada icono */
.icon-circle.pink {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.icon-circle.green {
    background: linear-gradient(135deg, #97CF69 0%, #7BB856 100%);
}

.icon-circle.blue {
    background: linear-gradient(135deg, #5069D9 0%, #4158D0 100%);
}

.icon-circle.yellow {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

/* Lado derecho - Visual */
.why-choose-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.geometric-container {
    position: relative;
    width: 480px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometric-shape {
    position: absolute;
    transition: transform 0.3s ease;
}

/* Figura de atrás (azul claro) - cubo */
.back-shape {
    width: 471px;
    height: 521px;
    background: #90C1FD;
    border-radius: 230px 0 0 0;
    top: 0;
    left: 0;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(144, 193, 253, 0.3);
}

/* Figura de enfrente (morado claro) - cuadro */
.front-shape {
    width: 458px;
    height: 498px;
    background: #CCB4F7;
    border-radius: 230px 0 0 0;
    top: 10px;
    left: 10px;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(204, 180, 247, 0.4);
}

.geometric-container:hover .back-shape {
    transform: translateX(10px) translateY(-5px);
}

.geometric-container:hover .front-shape {
    transform: translateX(-10px) translateY(5px);
}

/* Imagen encima */
.persona {
    position: absolute;
    bottom: -5px;
    left: -155px;
    width: 634px;
    height: 634px;
    z-index: 3;
}
.persona-filosofia {
    position: absolute;
    bottom: -5px;
    left: -90px;
    width: 580px;
    height: 580px;
    z-index: 3;
}

/* Ícono de innovación flotante */
.innovation-icon {
    position: absolute;
    top: 80px;
    right: 60px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.innovation-icon-img {
    width: 60px;
    height: 60px;
}

/* Animación de pulso para el ícono de innovación */
@keyframes pulse {
    0% {
        box-shadow: 0 15px 35px rgba(80, 105, 217, 0.4);
    }
    50% {
        box-shadow: 0 20px 45px rgba(80, 105, 217, 0.6);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 15px 35px rgba(80, 105, 217, 0.4);
    }
}

/* ============== SECCIÓN POLÍTICA DE CALIDAD ============== */
.quality-policy-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.quality-policy-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
}

.quality-policy-content {
    max-width: 700px;
    text-align: left;
}

.quality-policy-title {
    color: #5069D9;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.quality-policy-description {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.iso-certification {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.iso-certificate-img {
    width: 471px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Responsive para Política de Calidad */
@media (max-width: 1024px) {
    .quality-policy-container {
        gap: 60px;
        padding: 0 30px;
    }
    
    .quality-policy-content {
        max-width: unset;
    }
    
    .quality-policy-title {
        font-size: 2.2rem;
    }
    
    .quality-policy-description {
        font-size: 1rem;
    }
    
    .iso-certificate-img {
        width: 180px;
    }
}

@media (max-width: 768px) {
    .quality-policy-section {
        padding: 80px 0;
    }
    
    .quality-policy-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
        text-align: center;
    }
    
    .quality-policy-content {
        max-width: unset;
    }
    
    .quality-policy-title {
        font-size: 2rem;
    }
    
    .quality-policy-description {
        font-size: 0.95rem;
    }
    
    .iso-certificate-img {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .quality-policy-section {
        padding: 60px 0;
    }
    
    .quality-policy-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .quality-policy-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .quality-policy-description {
        font-size: 0.9rem;
    }
    
    .iso-certificate-img {
        width: 140px;
    }
}

/* ============== SECCIÓN NUESTRA FILOSOFÍA ============== */
.philosophy-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.philosophy-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Contenido izquierdo */
.philosophy-content {
    max-width: 600px;
}

.philosophy-title {
    color: #5069D9;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.2;
}

.philosophy-description {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* Contenido visual derecho */
.philosophy-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scaleX(-1);
}

/* Responsive para Nuestra Filosofía */
@media (max-width: 1024px) {
    .philosophy-container {
        gap: 60px;
        padding: 0 30px;
    }
    
    .philosophy-title {
        font-size: 2.2rem;
    }
    
    .philosophy-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .philosophy-section {
        padding: 80px 0;
    }
    
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
        text-align: center;
    }
    
    .philosophy-content {
        max-width: unset;
    }
    
    .philosophy-title {
        font-size: 2rem;
    }
    
    .philosophy-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .philosophy-section {
        padding: 60px 0;
    }
    
    .philosophy-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .philosophy-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .philosophy-description {
        font-size: 0.95rem;
    }
}

/* ============== SECCIÓN NUESTROS VALORES ============== */
.valores-agc-section {
    padding: 100px 0;
    background-color: #ffffff;
    font-family: Inter, sans-serif;
}

.valores-head {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.valores-head h2 {
    font-size: 2.625rem;
    font-weight: 700;
    color: #5069D9;
    line-height: 1.2;
    margin: 0;
}

.valores-controls {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.valores-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(80, 105, 217, 0.12);
    color: #5069D9;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.valores-nav-btn:hover {
    background: #5069D9;
    color: #fff;
}

.valores-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.valores-slider {
    max-width: 1400px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

.valores-track {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: center;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px;
}

.valores-track::-webkit-scrollbar {
    display: none;
}

.valor-card {
    position: relative;
    flex: 0 0 5rem;
    height: 26rem;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: flex-basis 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #CCB4F7;
    transform: translateY(0);
}

.valor-card[active],
.valor-card.active {
    flex-basis: 30rem;
    transform: translateY(-6px);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

/* Forzar que las cards inactivas vuelvan al estado normal */
.valor-card:not([active]):not(.active) {
    flex-basis: 5rem !important;
    transform: translateY(0) !important;
    box-shadow: none !important;
}

.valor-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    padding: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.valor-card__title {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.valor-card__expanded {
    display: none;
}

.valor-card__subtitle,
.valor-card__desc {
    display: none;
}

.valor-card[active] .valor-card__content,
.valor-card.active .valor-card__content {
    flex-direction: row;
    align-items: center;
    padding: 1.2rem 2rem;
    gap: 1.1rem;
    justify-content: center;
}

.valor-card[active] .valor-card__title,
.valor-card.active .valor-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 2.4rem;
    display: none;
}

.valor-card[active] .valor-card__expanded,
.valor-card.active .valor-card__expanded {
    display: block;
    text-align: center;
}

.valor-card[active] .valor-card__subtitle,
.valor-card[active] .valor-card__desc,
.valor-card.active .valor-card__subtitle,
.valor-card.active .valor-card__desc {
    display: block;
}

.valor-card__subtitle {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.valor-card__desc {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 20rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.valores-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 20px 0;
}

.valores-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(80, 105, 217, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.valores-dot.active {
    background: #5069D9;
    transform: scale(1.2);
}

/* Colores dinámicos para las cards */
.valor-card[data-color="#CCB4F7"] {
    background: #CCB4F7;
}

.valor-card[data-color="#90C1FD"] {
    background: #90C1FD;
}

.valor-card[data-color="#5069D9"] {
    background: #5069D9;
}

.valor-card[data-color="#97CF69"] {
    background: #97CF69;
}

.valor-card[data-color="#434343"] {
    background: #434343;
}

/* Responsive para la sección de valores */
@media (max-width: 1024px) {
    .valores-head h2 {
        font-size: 2.2rem;
    }
    
    .valores-track {
        gap: 1rem;
    }
    
    .valor-card {
        flex-basis: 4.5rem;
        height: 22rem;
    }
    
    .valor-card[active],
    .valor-card.active {
        flex-basis: 25rem;
    }
    
    .valor-card__title {
        font-size: 1.2rem;
    }
    
    .valor-card[active] .valor-card__subtitle,
    .valor-card.active .valor-card__subtitle {
        font-size: 2rem;
    }
    
    .valor-card__desc {
        font-size: 0.9rem;
        max-width: 18rem;
    }
}

@media (max-width: 768px) {
    .valores-agc-section {
        padding: 60px 0;
    }
    
    .valores-head {
        padding: 0 15px 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .valores-head h2 {
        font-size: 1.8rem;
    }
    
    .valores-slider {
        padding: 0 15px;
    }
    
    .valores-track {
        flex-direction: column;
        scroll-snap-type: y mandatory;
        gap: 0.8rem;
        padding-bottom: 20px;
        align-items: center;
    }
    
    .valor-card {
        height: auto;
        min-height: 80px;
        flex: 0 0 auto;
        width: 100%;
        scroll-snap-align: start;
    }
    
    .valor-card[active] {
        min-height: 300px;
        transform: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        width: 100%;
        flex-basis: auto;
    }
    
    .valor-card__content {
        flex-direction: row;
        justify-content: flex-start;
        padding: 1rem;
        align-items: center;
        gap: 1rem;
    }
    
    .valor-card__title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.2rem;
        margin-right: auto;
    }
    
    .valor-card[active] .valor-card__content {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        text-align: center;
    }
    
    .valor-card[active] .valor-card__title {
        display: none;
    }
    
    .valor-card[active] .valor-card__subtitle {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }
    
    .valor-card[active] .valor-card__desc {
        font-size: 0.95rem;
        max-width: 100%;
        line-height: 1.6;
    }
    
    .valores-dots {
        display: none;
    }
    
    .valores-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .valores-nav-btn {
        width: 2rem;
        height: 2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .valores-agc-section {
        padding: 40px 0;
    }
    
    .valores-head h2 {
        font-size: 1.6rem;
    }
    
    .valor-card[active] {
        min-height: 250px;
    }
    
    .valor-card[active] .valor-card__subtitle {
        font-size: 1.5rem;
    }
    
    .valor-card[active] .valor-card__desc {
        font-size: 0.9rem;
    }
}

/* ============== SECCIÓN CARDS APILADAS ============== */
.stacked-cards-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    width: 100%;
}

.col-12 {
    width: 100%;
}

.cards {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    width: 1372px;
    margin-bottom: 90px;
}

.custom-card {
    position: absolute;
    width: 1372px;
    height: 70vh;
    top: 0px;
    color: #fff;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 27px;
    padding: 40px;
    box-sizing: border-box;
}

.card-top-section {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

.card-icon-corner {
    position: relative;
    top: 0;
    left: 0;
}

.card-icon-corner img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    -webkit-filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.card-content-bottom {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.card-title-left {
    display: flex;
    align-items: flex-start;
    min-width: 300px;
}

.card-title-left h2 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1;
}

.card-description-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 500px;
    margin-left: 40px;
}

.card-description-right p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.card-content {
    max-width: 500px;
    text-align: left;
}

.card-content h2 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    writing-mode: vertical-rl;
}

.card-content p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 400;vacantes-section
}

/* Colores específicos para cada card */
.card1 {
    background-color: #CCB4F7;
    width: 1372px;
    height: 70vh;
}

.card2 {
    background-color: #90C1FD;
    
    width: 1222px;
    height: 70vh;
    left: 150px;
}

.card3 {
    background-color: #5069D9;
    
    left: 300px;
    width: 1072px;
    height: 70vh;
}

.card4 {
    background-color: #97CF69;
    
    left: 450px;
    width: 922px;
    height: 70vh;
}

.card5 {
    background-color: #434343;
   
    left: 600px;
    width: 772px;
    height: 70vh;
}

/* Clases para animaciones */
.opacity {
    -moz-transition: 0.4s ease;
    -ms-transition: 0.4s ease;
    -o-transition: 0.4s ease;
    transition: 0.4s ease;
    -webkit-transition: 0.4s ease;
    opacity: 0.6;
}

.scale {
    -moz-transition: 0.4s ease;
    -ms-transition: 0.4s ease;
    -o-transition: 0.4s ease;
    transition: 0.4s ease;
    -webkit-transition: 0.4s ease;
    width: 95%;
}

/* Responsive para cards apiladas */
@media (max-width: 1024px) {
    .stacked-cards-section {
        padding: 80px 0;
    }
    
    .custom-card {
        width: 85%;
        height: 60vh;
        padding: 40px;
    }
    
    .card-title-left h2 {
        font-size: 2rem;
    }
    
    .card-description-right p {
        font-size: 1.1rem;
    }
    
    .card-content h2 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .stacked-cards-section {
        padding: 60px 0;
    }
    
    .cards {
        height: auto;
        margin-bottom: 60px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .custom-card {
        position: static !important;
        width: 90%;
        height: auto;
        padding: 30px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        background: white;
        color: #333;
    }
    
    .card2, .card3, .card4, .card5 {
        top: auto !important;
    }

    .card-top-section {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .card-icon-corner {
        margin-bottom: 15px;
    }

    .card-icon-corner img {
        width: 60px;
        height: 60px;
        filter: none;
    }

    .card-title-left {
        width: 100%;
    }

    .card-title-left h2 {
        font-size: 1.8rem;
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        text-align: left;
        margin: 0;
        color: #434343;
        font-weight: 700;
    }

    .card-content-bottom {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
    }

    .card-description-right {
        flex: 1;
        margin-left: 20px;
        text-align: left;
    }
    
    .card-description-right p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
        margin: 0;
        color: #666;
    }
}

@media (max-width: 480px) {
    .stacked-cards-section {
        padding: 40px 0;
    }
    
    .cards {
        height: 40vh;
        margin-bottom: 40px;
    }
    
    .custom-card {
        width: 95%;
        height: 40vh;
        padding: 20px;
    }
    
    .card-content h2 {
        font-size: 0.5rem;
        margin-bottom: 15px;
    }
    
    .card-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .stacked-cards-section {
        padding: 40px 0;
    }
    
    .cards {
        height: 40vh;
        margin-bottom: 40px;
    }
    
    .custom-card {
        width: 95%;
        height: 40vh;
        padding: 20px;
    }
    
    .card-top-section {
        margin-bottom: 15px;
    }
    
    .card-icon-corner img {
        width: 50px;
        height: 50px;
    }
    
    .card-title-left h2 {
        font-size: 1.5rem;
    }
    
    .card-description-right p {
        font-size: 0.9rem;
    }
    
    .card-content h2 {
        font-size: 0.25rem;
        margin-bottom: 15px;
    }
    
    .card-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ============== SECCIÓN CONOCE CÓMO VIVIMOS ESTOS VALORES ============== */
.valores-vivimos-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.valores-vivimos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.valores-vivimos-header {
    text-align: left;
    margin-bottom: 60px;
}

.valores-vivimos-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5069D9;
    margin: 0;
    line-height: 1.2;
}

.valores-vivimos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.valor-vivimos-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.valor-vivimos-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.valor-vivimos-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.valor-vivimos-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.valor-vivimos-card:hover .valor-vivimos-image img {
    transform: scale(1.05);
}

.valor-vivimos-content {
    padding: 25px;
}

.valor-vivimos-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.valor-vivimos-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.valor-vivimos-avatar {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
    gap: 12px;
}

.valor-vivimos-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.valor-vivimos-avatar span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
}

/* Responsive para valores vivimos */
@media (max-width: 1024px) {
    .valores-vivimos-section {
        padding: 80px 0;
    }
    
    .valores-vivimos-header h2 {
        font-size: 2.2rem;
    }
    
    .valores-vivimos-grid {
        gap: 25px;
    }
    
    .valor-vivimos-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .valores-vivimos-section {
        padding: 60px 0;
    }
    
    .valores-vivimos-container {
        padding: 0 15px;
    }
    
    .valores-vivimos-header {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .valores-vivimos-header h2 {
        font-size: 1.8rem;
    }
    
    .valores-vivimos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .valor-vivimos-image {
        height: 200px;
    }
    
    .valor-vivimos-content {
        padding: 20px;
    }
    
    .valor-vivimos-content h3 {
        font-size: 1rem;
    }
    
    .valor-vivimos-content p {
        font-size: 0.85rem;
    }
    
    .valor-vivimos-avatar {
        padding: 15px 20px;
    }
    
    .valor-vivimos-avatar span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .valores-vivimos-section {
        padding: 40px 0;
    }
    
    .valores-vivimos-header h2 {
        font-size: 1.5rem;
    }
    
    .valores-vivimos-grid {
        gap: 20px;
    }
    
    .valor-vivimos-image {
        height: 180px;
    }
    
    .valor-vivimos-content {
        padding: 15px;
    }
    
    .valor-vivimos-content h3 {
        font-size: 0.9rem;
    }
    
    .valor-vivimos-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .valor-vivimos-avatar {
        padding: 12px 15px;
    }
    
    .valor-vivimos-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .valor-vivimos-avatar span {
        font-size: 0.7rem;
    }
}

@media (max-width: 320px) {
    .valores-vivimos-header h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .valor-vivimos-content {
        padding: 12px;
    }
    
    .valor-vivimos-content h3 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .valor-vivimos-content p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .valor-vivimos-avatar {
        padding: 10px 12px;
    }
    
    .valor-vivimos-avatar img {
        width: 30px;
        height: 30px;
    }
    
    .valor-vivimos-avatar span {
        font-size: 0.65rem;
    }
}

/* ============== ESTILOS PARA BLOG BANNER CAROUSEL ============== */
.hero-banner .blog-banner-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-banner .blog-banner-track {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-banner .blog-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-banner .blog-banner-slide.active {
    opacity: 1;
}

.hero-banner .blog-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(80, 105, 217, 0.8) 0%, rgba(65, 88, 208, 0.6) 100%);
    z-index: 1;
}

.hero-banner .blog-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-banner .blog-banner-text {
    color: white;
    z-index: 3;
    max-width: 800px;
}

.hero-banner .blog-banner-text h1 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-banner .blog-banner-text p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-banner .blog-banner-btn {
    display: inline-block;
    background: white;
    color: #5069D9;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-banner .blog-banner-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Controles de navegación del banner */
.hero-banner .blog-banner-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
}

.hero-banner .blog-banner-nav {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #5069D9;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-banner .blog-banner-nav:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Indicadores de puntos del banner */
.hero-banner .blog-banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-banner .blog-banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-banner .blog-banner-dot.active {
    background: white;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-banner .blog-banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Sección de artículos del blog */
.blog-articles-section {
    padding: 80px 0;
    background: white;
}

.blog-section-title {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5069D9;
    text-align: center;
    margin-bottom: 50px;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-article-preview {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-article-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-article-preview h3 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.blog-article-preview p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para banner del blog */
@media (max-width: 1024px) {
    .hero-banner .blog-banner-carousel {
        height: 85vh;
        min-height: 500px;
    }
    
    .hero-banner .blog-banner-content {
        padding: 0 30px;
    }
    
    .hero-banner .blog-banner-text h1 {
        font-size: 3.2rem;
    }
    
    .hero-banner .blog-banner-text p {
        font-size: 1.2rem;
    }
    
    .hero-banner .blog-banner-btn {
        padding: 16px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-banner .blog-banner-carousel {
        height: 80vh;
        min-height: 450px;
    }
    
    .hero-banner .blog-banner-content {
        padding: 0 20px;
    }
    
    .hero-banner .blog-banner-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-banner .blog-banner-text p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-banner .blog-banner-btn {
        padding: 15px 30px;
        font-size: 0.95rem;
    }
    
    .hero-banner .blog-banner-controls {
        padding: 0 20px;
    }
    
    .hero-banner .blog-banner-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-banner .blog-banner-carousel {
        height: 75vh;
        min-height: 400px;
    }
    
    .hero-banner .blog-banner-content {
        padding: 0 15px;
    }
    
    .hero-banner .blog-banner-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-banner .blog-banner-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-banner .blog-banner-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .hero-banner .blog-banner-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .hero-banner .blog-banner-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .hero-banner .blog-banner-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 320px) {
    .hero-banner .blog-banner-carousel {
        height: 70vh;
        min-height: 350px;
    }
    
    .hero-banner .blog-banner-text h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-banner .blog-banner-text p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }
    
    .hero-banner .blog-banner-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
}

/* Sección de artículos del blog */
.blog-articles-section {
    padding: 80px 0;
    background: white;
}

.blog-section-title {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5069D9;
    text-align: center;
    margin-bottom: 50px;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-article-preview {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-article-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-article-preview h3 {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.blog-article-preview p {
    font-family: 'Montserrat', 'Montserrat-Variable', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para sección de artículos */
@media (max-width: 768px) {
    .blog-articles-section {
        padding: 60px 20px;
    }
    
    .blog-section-title {
        font-size: 2rem;
    }
    
    .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .blog-section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .blog-article-preview {
        padding: 20px;
    }
    
    .blog-article-preview h3 {
        font-size: 1.1rem;
    }
    
    .blog-article-preview p {
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales para el banner */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.blog-banner-slide.active .blog-banner-text h1 {
    animation: fadeInSlide 0.8s ease-out 0.2s both;
}

.blog-banner-slide.active .blog-banner-text p {
    animation: fadeInSlide 0.8s ease-out 0.4s both;
}

.hero-banner .blog-banner-slide.active .blog-banner-btn {
    animation: fadeInSlide 0.8s ease-out 0.6s both;
}

/* Animaciones adicionales para el banner */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-banner .blog-banner-slide.active .blog-banner-text h1 {
    animation: fadeInSlide 0.8s ease-out 0.2s both;
}

.hero-banner .blog-banner-slide.active .blog-banner-text p {
    animation: fadeInSlide 0.8s ease-out 0.4s both;
}

.hero-banner .blog-banner-slide.active .blog-banner-btn {
    animation: fadeInSlide 0.8s ease-out 0.6s both;
}

.blog-banner-slide.active .blog-banner-btn {
    animation: fadeInSlide 0.8s ease-out 0.6s both;
}

@media (max-width: 320px) {
    .valores-vivimos-header h2 {
        font-size: 1.3rem;
        line-height: 1.2;
    }
    
    .valor-vivimos-content {
        padding: 12px;
    }
    
    .valor-vivimos-content h3 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .valor-vivimos-content p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .valor-vivimos-avatar {
        padding: 10px 12px;
    }
    
    .valor-vivimos-avatar img {
        width: 30px;
        height: 30px;
    }
    
    .valor-vivimos-avatar span {
        font-size: 0.65rem;
    }
}

/* ============== SECCIÓN NUESTRAS VACANTES ============== */
.philosophy-vacante-section {
    padding: 10px 0;
    background-color: #ffffff;
}

.philosophy-vacante-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Contenido izquierdo */
.philosophy-vacante-content {
    max-width: 600px;
}

.philosophy-vacante-title {
    color: #5069D9;
    font-size: 80px;
    font-weight: 700;
    margin: 0 0 0px 0;
    line-height: 1.2;
}

.philosophy-vacante-description {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* Contenido visual derecho */
.philosophy-vacante-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scaleX(-1);
}

/* Responsive para Nuestra Filosofía */
@media (max-width: 1024px) {
    .philosophy-container {
        gap: 60px;
        padding: 0 30px;
    }
    
    .philosophy-title {
        font-size: 2.2rem;
    }
    
    .philosophy-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .philosophy-section {
        padding: 80px 0;
    }
    
    .philosophy-container {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
        text-align: center;
    }
    
    .philosophy-content {
        max-width: unset;
    }
    
    .philosophy-title {
        font-size: 2rem;
    }
    
    .philosophy-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .philosophy-section {
        padding: 60px 0;
    }
    
    .philosophy-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .philosophy-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .philosophy-description {
        font-size: 0.95rem;
    }
}
/* ========================================
   SECCI�N DE SOCIOS COMERCIALES
======================================== */
.partners-section {
    padding: 20px 20px;
    background-color: #f8f9fa;
    text-align: center;
    overflow-x: hidden;
}

.partners-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #5069D9;
    margin-bottom: 60px;
    text-align: center;
}

.partners-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
    padding: 5px 5px;
    overflow-x: hidden;
}

.partner-logo {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-10px);
    opacity: 0.8;
}

.partner-logo-img {
    max-width: 450px !important;
    max-height: 240px !important;
    width: 450px !important;
    height: 240px !important;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.partner-logo:hover .partner-logo-img {
    filter: grayscale(0%) brightness(1.1);
}

/* Responsive para Socios Comerciales */
@media (max-width: 1024px) {
    .partners-logos-container {
        gap: 40px;
    }
    
    .partner-logo-img {
        max-width: 380px !important;
        max-height: 200px !important;
        width: 380px !important;
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 60px 20px;
    }
    
    .partners-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .partners-logos-container {
        gap: 30px;
        padding: 20px;
    }
    
    .partner-logo-img {
        max-width: 320px !important;
        max-height: 170px !important;
        width: 320px !important;
        height: 170px !important;
    }
}

@media (max-width: 480px) {
    .partners-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .partners-logos-container {
        gap: 25px;
        flex-direction: column;
    }
    
    .partner-logo-img {
        max-width: 280px !important;
        max-height: 150px !important;
        width: 280px !important;
        height: 150px !important;
    }
}

/* ========================================
   PÁGINA DE CONTACTO
======================================== */
.contact-section {
    min-height: 100vh;
    padding: 100px 20px 80px;
    background: #ffffff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: #5069D9;
    text-align: center;
    margin-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 0 40px;
}

/* Formulario de Contacto */
.contact-form-wrapper {
    background: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #5069D9;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #d0d0d0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    background: transparent;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #5069D9;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235069D9' d='M1.41 0L6 4.59L10.59 0L12 1.41L6 7.41L0 1.41L1.41 0Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
    appearance: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 50px;
}

.form-file {
    margin-top: 10px;
}

.file-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.file-label input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
    padding: 10px 15px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    background: #f9f9f9;
    flex: 1;
}

.file-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    margin-bottom: 0;
}

.submit-btn {
    background: #9FD356;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #8bc342;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(159, 211, 86, 0.3);
}

/* Información de Contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 20px;
}

.contact-info-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.contact-info-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 5px 0;
}

.contact-info-item a {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #5069D9;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 5px;
}

.contact-info-item a:hover {
    color: #3d52b8;
}

/* Responsive para Contacto */
@media (max-width: 1024px) {
    .contact-title {
        font-size: 60px;
    }

    .contact-content {
        gap: 60px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 20px 60px;
    }

    .contact-title {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 36px;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }

    .contact-info-item h3 {
        font-size: 20px;
    }

    .contact-info-item a {
        font-size: 16px;
    }
}
