/* -------------------------------------- */
/* Estilos del Header */
/* -------------------------------------- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header .logo img {
    max-height: 60px;
    /* Asegura que la imagen sea clickeable sin bordes extra */
    display: block; 
}
/* Estilo para que el enlace del logo se comporte como un contenedor */
.header .logo a {
    display: block;
    cursor: pointer;
}


/* === NAV === */
.header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.header nav ul li {
    position: relative;
}

.header nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.2s; /* Transición suave para el hover */
}

/* Hover en enlaces principales (opcional, pero mejora la UX) */
.header nav ul li a:not(.btn-contacto):hover {
    color: #e91e63;
}

/* === BOTÓN CONTACTO === */
.header .btn-contacto {
    background-color: #e91e63;
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: bold;
}

/* === SUBMENÚS ESCRITORIO === */
.header nav ul li ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    min-width: 250px; /* Incrementado para mejor lectura */
    padding: 10px 0;
    z-index: 1000;
}

.header nav ul li ul li {
    padding: 0;
}

.header nav ul li ul li a {
    padding: 8px 15px; /* Ajustado el padding */
    white-space: nowrap;
}

/* CAMBIO 2: Efecto hover en los enlaces de submenú */
.header nav ul li ul li a:hover {
    background-color: #fce4ec; /* Fondo muy claro para el hover */
    color: #e91e63; /* Texto rosa */
}

/* Segundo nivel de submenú (Integrantes) */
.header nav ul ul ul {
    position: absolute;
    top: 0;
    right: 100%;
    left: auto;
    min-width: 180px;
}

/* === BOTÓN HAMBURGUESA (OCULTO EN ESCRITORIO) === */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #000; /* Color del icono */
    cursor: pointer;
}

/* -------------------------------------- */
/* Estilos del Banner */
/* -------------------------------------- */
.banner {
    /* CORRECCIÓN 1: Aumentamos el ancho base y le damos un límite máximo */
    width: 90%;
    max-width: 1400px;
    margin: 140px auto 0;
    background-color: #EC8A10;
    display: flex;
    justify-content: center;
    /* Agregamos redondeo para un toque más elegante y moderno */
    border-radius: 12px;
    box-sizing: border-box;
}

.banner-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* CORRECCIÓN 2: Reducimos el gap fijo para permitir más compresión */
    gap: 30px; 
    position: relative;
    /* CORRECCIÓN 3: Ajustamos el padding para evitar que el contenido toque los bordes al encoger */
    /* Se reduce el padding vertical y horizontal para dar más espacio fluido */
    padding: 40px 20px; 
    box-sizing: border-box;
}

/* Imagen */
.banner-image {
    /* CORRECCIÓN 4: Le damos una base flexible, permitiendo que se encoja y crezca */
    flex: 1 1 45%; 
    position: relative;
    /* El overflow debe ser visible para que la imagen sobresalga del contenedor flex */
    overflow: visible; 
    min-width: 250px; /* Mínimo para que no se comprima demasiado */
    margin-left: 50px;
}

.banner-image img {
    /* CORRECCIÓN CRÍTICA: Eliminamos position: absolute, top, bottom, left y márgenes fijos. */
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    object-fit: cover;
    /* Nueva Estrategia Fluida de Desborde */
    position: relative; /* Lo hacemos relativo para que los márgenes negativos lo muevan */
    display: block;
    height: auto;
    /* Ajuste de márgenes: Hacemos los márgenes verticales y horizontales menos agresivos 
    para mejorar la fluidez antes del breakpoint de 768px. */
    margin-top: -60px; /* Reducción de -80px a -60px */
    margin-bottom: -60px; /* Reducción de -80px a -60px */
    margin-left: -30px; /* Reducción de -50px a -30px (menor protrusion) */
}

/* Contenido */
.banner-content {
    /* CORRECCIÓN 5: Le damos flexibilidad y un ancho base para que siempre tenga espacio */
    flex: 1 1 50%; 
    color: #FFFFFF;
    /* Ajustamos padding para dar espacio, sin chocar con la imagen */
    /* Se quita el padding izquierdo extra para darle más espacio al texto al encogerse */
    padding: 20px 0; 
}

.banner-content h2 {
    font-family: "Century Gothic", sans-serif;
    /* CORRECCIÓN 6: Usamos clamp para un tamaño de fuente que escala entre 28px y 40px */
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 20px;
}

.banner-content p {
    font-family: "Comfortaa", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-banner {
    display: inline-block;
    background-color: #218380;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-banner:hover {
    background-color: #18645f;
}

/* -------------------------------------- */
/* Título de la sección de Empresas */
/* -------------------------------------- */
.services-title {
    width: 100%;
    text-align: center;
    margin: 120px auto;
}

.animated-text {
    font-family: "Century Gothic", sans-serif;
    font-size: 36px;
    color: #000000;
    display: inline-block;
    position: relative;
    white-space: pre; /* 👈 mantiene los espacios */
}

/* Aplica animación letra por letra */
.animated-text span {
    opacity: 0;
    display: inline-block;
    transform: translateY(20px);
    animation: fadeUp 0.5s forwards;
}

/* Animación base: fade-in + subir */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controla cada letra */
.animated-text span:nth-child(1) { animation-delay: 0.1s; }
.animated-text span:nth-child(2) { animation-delay: 0.2s; }
.animated-text span:nth-child(3) { animation-delay: 0.3s; }
.animated-text span:nth-child(4) { animation-delay: 0.4s; }
.animated-text span:nth-child(5) { animation-delay: 0.5s; }
.animated-text span:nth-child(6) { animation-delay: 0.6s; }
.animated-text span:nth-child(7) { animation-delay: 0.7s; }
.animated-text span:nth-child(8) { animation-delay: 0.8s; }
.animated-text span:nth-child(9) { animation-delay: 0.9s; }
.animated-text span:nth-child(10) { animation-delay: 1s; }
.animated-text span:nth-child(11) { animation-delay: 1.1s; }
.animated-text span:nth-child(12) { animation-delay: 1.2s; }
.animated-text span:nth-child(13) { animation-delay: 1.3s; }
.animated-text span:nth-child(14) { animation-delay: 1.4s; }
.animated-text span:nth-child(15) { animation-delay: 1.5s; }
.animated-text span:nth-child(16) { animation-delay: 1.6s; }

/* Reinicia todo el ciclo */
@keyframes reset {
    0%, 90% { opacity: 1; }
    100% { opacity: 0; }
}

/* -------------------------------------- */
/* Estilos del Servcio 1*/
/* -------------------------------------- */
.provision {
    /* CORRECCIÓN 1: Mejor control de ancho para fluidez */
    width: 90%; 
    max-width: 1200px;
    /* CORRECCIÓN 2: Ajuste de margen para mejor visualización y fluidez */
    margin: -90px auto 0; 
    font-family: "Comfortaa", sans-serif;
}

/* Contenedor */
.provision-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(90deg, #1e90ff, #00bfff, #4682b4, #1e90ff);
    animation: borderAnimation 6s linear infinite;
    border-radius: 10px;
    /* CORRECCIÓN 3: Aumento de padding para un diseño más limpio */
    padding: 60px;
    gap: 40px;
}

/* Animación del borde (tonalidades azules infinitas) */
@keyframes borderAnimation {
    0% { border-image-source: linear-gradient(90deg, #1e90ff, #00bfff, #4682b4); }
    50% { border-image-source: linear-gradient(90deg, #00bfff, #4682b4, #1e90ff); }
    100% { border-image-source: linear-gradient(90deg, #1e90ff, #00bfff, #4682b4); }
}

/* Contenido */
.provision-content {
    /* CORRECCIÓN 4: Flexbox fluido (50% de base, permitiendo encoger) */
    flex: 1 1 50%; 
    /* CORRECCIÓN 5: Usar margin para el espacio entre elementos, no padding */
    margin-right: 20px; 
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Estado visible al entrar en el section */
.provision-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.provision-content h2 {
    font-size: 30px;
    color: #218380;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.provision-content.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Items con círculo */
.provision-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.provision-content.visible .provision-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.provision-content.visible .provision-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.provision-content.visible .provision-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.provision-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.circle {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(270deg, #1e90ff, #00bfff, #4682b4);
    background-size: 400% 400%;
    border-radius: 50%;
    margin-top: 6px;
    animation: gradientShift 4s linear infinite;
}

/* Degradado en el círculo */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botón */
.btn-provision {
    display: inline-block;
    background-color: #218380;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.provision-content.visible .btn-provision {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.btn-provision:hover {
    background-color: #18645f;
    transform: translateY(-3px);
}

/* Imagen */
.provision-image {
    /* CORRECCIÓN 6: Flexbox fluido (50% de base, permitiendo encoger) */
    flex: 1 1 50%;
    text-align: right;
}

.provision-image img {
    max-width: 100%;
    /* Se asegura que la imagen no tenga un ancho fijo y pueda encogerse */
    height: auto; 
    display: center;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.provision-mobile {
    display: none;
}

/* -------------------------------------- */
/* Estilos del Servcio 2*/
/* -------------------------------------- */
.organizacion {
    /* CORRECCIÓN 1: Mejor control de ancho para fluidez */
    width: 90%; 
    max-width: 1200px;
    /* CORRECCIÓN 2: Ajuste de margen para mejor visualización y fluidez */
    margin: 50px auto; 
    font-family: "Comfortaa", sans-serif;
}

/* Contenedor principal de la sección ORGANIZACION */
.organizacion-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    /* >>> AHORA USA EL DEGRADADO NARANJA Y LA NUEVA ANIMACIÓN <<< */
    border-image-source: linear-gradient(90deg, #FFD700, #FFBC0A, #FF8C00); 
    animation: borderAnimationOrg 6s linear infinite; /* Animación ÚNICA */
    border-radius: 10px;
    padding: 60px;
    gap: 40px;
}

/* Animación del borde (tonalidades cálidas - ÚNICA para Organización) */
@keyframes borderAnimationOrg {
    0% { border-image-source: linear-gradient(90deg, #FFD700, #FFBC0A, #FF8C00); }
    50% { border-image-source: linear-gradient(90deg, #FFBC0A, #FF8C00, #FFD700); }
    100% { border-image-source: linear-gradient(90deg, #FFD700, #FFBC0A, #FF8C00); }
}

/* El resto de estilos de contenido de Organización sigue igual */

/* Contenido */
.organizacion-content {
    flex: 1;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.organizacion-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.organizacion-content h2 {
    font-size: 30px;
    color: #FFBC0A;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.organizacion-content.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Items con círculo */
.organizacion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.organizacion-content.visible .organizacion-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.organizacion-content.visible .organizacion-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.organizacion-content.visible .organizacion-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.organizacion-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.circle-org {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(270deg, #FFBC0A, #FFD700, #FF8C00);
    background-size: 400% 400%;
    border-radius: 50%;
    margin-top: 6px;
    animation: gradientShiftOrg 4s linear infinite;
}

/* Degradado en el círculo (ÚNICO para Organización) */
@keyframes gradientShiftOrg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botón */
.btn-organizacion {
    display: inline-block;
    background-color: #FFBC0A;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.organizacion-content.visible .btn-organizacion {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.btn-organizacion:hover {
    background-color: #cc9602;
    transform: translateY(-3px);
}

/* Imagen */
.organizacion-image {
    flex: 1;
    text-align: left;
}

.organizacion-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Oculta la versión móvil por defecto */
.organizacion-mobile {
    display: none;
}


/* -------------------------------------- */
/* Estilos del Servcio 3*/
/* -------------------------------------- */
.degustaciones {
    /* CORRECCIÓN 1: Mejor control de ancho para fluidez */
    width: 90%; 
    max-width: 1200px;
    /* CORRECCIÓN 2: Ajuste de margen para mejor visualización y fluidez */
    margin: 50px auto 0;
    font-family: "Comfortaa", sans-serif;
}

/* Contenedor */
.degustaciones-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(90deg, #FFB03A, #EC8A10, #D67000);
    animation: borderAnimationdeg 6s linear infinite;
    border-radius: 10px;
    padding: 60px;
    gap: 40px;
}

/* Animación del borde (tonalidades azules infinitas) */
@keyframes borderAnimationdeg {
    0% { border-image-source: linear-gradient(90deg, #FFB03A, #EC8A10, #D67000); }
    50% { border-image-source: linear-gradient(90deg, #EC8A10, #D67000, #FFB03A); }
    100% { border-image-source: linear-gradient(90deg, #FFB03A, #EC8A10, #D67000); }
}

/* Contenido */
.degustaciones-content {
    flex: 1;
    padding-right: 20px; /* aire entre texto e imagen */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Estado visible al entrar en el section */
.degustaciones-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.degustaciones-content h2 {
    font-size: 30px;
    color: #EC8A10;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.degustaciones-content.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Items con círculo */
.degustaciones-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.degustaciones-content.visible .degustaciones-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.degustaciones-content.visible .degustaciones-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.degustaciones-content.visible .degustaciones-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.degustaciones-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.circle-deg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(270deg, #FFB03A, #EC8A10, #D67000);
    background-size: 400% 400%;
    border-radius: 50%;
    margin-top: 6px;
    animation: gradientShiftdeg 4s linear infinite;
}

/* Degradado en el círculo */
@keyframes gradientShiftdeg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botón */
.btn-degustaciones {
    display: inline-block;
    background-color: #EC8A10;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.degustaciones-content.visible .btn-degustaciones {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.btn-degustaciones:hover {
    background-color: #cf7406;
    transform: translateY(-3px);
}

/* Imagen */
.degustaciones-image {
    flex: 1;
    text-align: right;
}

.degustaciones-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.degustaciones-mobile {
    display: none;
}

/* -------------------------------------- */
/* Estilos del Servcio 4*/
/* -------------------------------------- */
.estudios {
    /* CORRECCIÓN 1: Mejor control de ancho para fluidez */
    width: 90%; 
    max-width: 1200px;
    /* CORRECCIÓN 2: Ajuste de margen para mejor visualización y fluidez */
    margin: 50px auto 0;
    font-family: "Comfortaa", sans-serif;
}

/* Contenedor principal de la sección ORGANIZACION */
.estudios-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    /* >>> AHORA USA EL DEGRADADO NARANJA Y LA NUEVA ANIMACIÓN <<< */
    border-image-source: linear-gradient(90deg, #FF1493, #EC0868, #C71585); 
    animation: borderAnimationest 6s linear infinite; /* Animación ÚNICA */
    border-radius: 10px;
    padding: 60px;
    gap: 40px;
}

/* Animación del borde (tonalidades cálidas - ÚNICA para Organización) */
@keyframes borderAnimationest {
    0% { border-image-source: linear-gradient(90deg, #FF1493, #EC0868, #C71585); }
    50% { border-image-source: linear-gradient(90deg, #EC0868, #C71585, #FF1493); }
    100% { border-image-source: linear-gradient(90deg, #FF1493, #EC0868, #C71585); }
}

/* El resto de estilos de contenido de Organización sigue igual */

/* Contenido */
.estudios-content {
    flex: 1;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.estudios-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.estudios-content h2 {
    font-size: 30px;
    color: #EC0868;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.estudios-content.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Items con círculo */
.estudios-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.estudios-content.visible .estudios-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.estudios-content.visible .estudios-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.estudios-content.visible .estudios-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.estudios-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.circle-est {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(270deg, #FF1493, #EC0868, #C71585);
    background-size: 400% 400%;
    border-radius: 50%;
    margin-top: 6px;
    animation: gradientShiftest 4s linear infinite;
}

/* Degradado en el círculo (ÚNICO para Organización) */
@keyframes gradientShiftest {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botón */
.btn-estudios {
    display: inline-block;
    background-color: #EC0868;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.estudios-content.visible .btn-estudios {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.btn-estudios:hover {
    background-color: #c00352;
    transform: translateY(-3px);
}

/* Imagen */
.estudios-image {
    flex: 1;
    text-align: left;
}

.estudios-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Oculta la versión móvil por defecto */
.estudios-mobile {
    display: none;
}

/* -------------------------------------- */
/* Estilos del Servcio 5*/
/* -------------------------------------- */
.capacitacion {
    /* CORRECCIÓN 1: Mejor control de ancho para fluidez */
    width: 90%; 
    max-width: 1200px;
    /* CORRECCIÓN 2: Ajuste de margen para mejor visualización y fluidez */
    margin: 50px auto 0;
    font-family: "Comfortaa", sans-serif;
}

/* Contenedor */
.capacitacion-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(90deg, #4CAF99, #218380, #146363);
    animation: borderAnimationcap 6s linear infinite;
    border-radius: 10px;
    padding: 60px;
    gap: 40px;
}

/* Animación del borde (tonalidades azules infinitas) */
@keyframes borderAnimationcap {
    0% { border-image-source: linear-gradient(90deg, #4CAF99, #218380, #146363); }
    50% { border-image-source: linear-gradient(90deg, #218380, #146363, #4CAF99); }
    100% { border-image-source: linear-gradient(90deg, #4CAF99, #218380, #146363); }
}

/* Contenido */
.capacitacion-content {
    flex: 1;
    padding-right: 20px; /* aire entre texto e imagen */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Estado visible al entrar en el section */
.capacitacion-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.capacitacion-content h2 {
    font-size: 30px;
    color: #218380;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.capacitacion-content.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Items con círculo */
.capacitacion-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.capacitacion-content.visible .capacitacion-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.capacitacion-content.visible .capacitacion-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.capacitacion-content.visible .capacitacion-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.capacitacion-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.circle-cap {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(270deg, #4CAF99, #218380, #146363);
    background-size: 400% 400%;
    border-radius: 50%;
    margin-top: 6px;
    animation: gradientShiftcap 4s linear infinite;
}

/* Degradado en el círculo */
@keyframes gradientShiftcap {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botón */
.btn-capacitacion {
    display: inline-block;
    background-color: #218380;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.capacitacion-content.visible .btn-capacitacion {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.btn-capacitacion:hover {
    background-color: #124b4a;
    transform: translateY(-3px);
}

/* Imagen */
.capacitacion-image {
    flex: 1;
    text-align: right;
}

.capacitacion-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.capacitacion-mobile {
    display: none;
}

/* -------------------------------------- */
/* Estilos del Servcio 6*/
/* -------------------------------------- */
.activaciones {
    /* CORRECCIÓN 1: Mejor control de ancho para fluidez */
    width: 90%; 
    max-width: 1200px;
    /* CORRECCIÓN 2: Ajuste de margen para mejor visualización y fluidez */
    margin: 50px auto 0;
    font-family: "Comfortaa", sans-serif;
}

/* Contenedor principal de la sección ORGANIZACION */
.activaciones-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    /* >>> AHORA USA EL DEGRADADO NARANJA Y LA NUEVA ANIMACIÓN <<< */
    border-image-source: linear-gradient(90deg, #FFD700, #FFBC0A, #FF8C00); 
    animation: borderAnimationact 6s linear infinite; /* Animación ÚNICA */
    border-radius: 10px;
    padding: 60px;
    gap: 40px;
}

/* Animación del borde (tonalidades cálidas - ÚNICA para Organización) */
@keyframes borderAnimationact {
    0% { border-image-source: linear-gradient(90deg, #FFD700, #FFBC0A, #FF8C00); }
    50% { border-image-source: linear-gradient(90deg, #FFBC0A, #FF8C00, #FFD700); }
    100% { border-image-source: linear-gradient(90deg, #FFD700, #FFBC0A, #FF8C00); }
}

/* El resto de estilos de contenido de Organización sigue igual */

/* Contenido */
.activaciones-content {
    flex: 1;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.activaciones-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.activaciones-content h2 {
    font-size: 30px;
    color: #FFBC0A;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.activaciones-content.visible h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* Items con círculo */
.activaciones-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.activaciones-content.visible .activaciones-item:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.activaciones-content.visible .activaciones-item:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.7s;
}

.activaciones-content.visible .activaciones-item:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.9s;
}

.activaciones-item p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    text-align: justify; /* Mantener justificado en escritorio */
}

.circle-act {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: linear-gradient(270deg, #FFD700, #FFBC0A, #FF8C00);
    background-size: 400% 400%;
    border-radius: 50%;
    margin-top: 6px;
    animation: gradientShiftact 4s linear infinite;
}

/* Degradado en el círculo (ÚNICO para Organización) */
@keyframes gradientShiftact {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Botón */
.btn-activaciones {
    display: inline-block;
    background-color: #FFBC0A;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.activaciones-content.visible .btn-activaciones {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}

.btn-activaciones:hover {
    background-color: #ce9803;
    transform: translateY(-3px);
}

/* Imagen */
.activaciones-image {
    flex: 1;
    text-align: left;
}

.activaciones-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Oculta la versión móvil por defecto */
.activaciones-mobile {
    display: none;
}


/* -------------------------------------- */
/* Estilos del Flujo de Trabajo */
/* -------------------------------------- */
.work-process-section {
    width: 80%;
    max-width: 1200px;
    margin: -10px auto 0;
    padding: 80px 20px;
    height: 652px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.work-process-container {
    width: 100%;
}

.work-process-section .subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.work-process-section .main-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 80px;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;

    /* 🔹 Ajuste agregado para que sea fluido entre 1200px y 769px */
    flex-wrap: wrap; /* permite que los pasos bajen si no caben */
    transition: all 0.3s ease; /* suaviza el cambio al reducir ventana */
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150px;

    /* 🔹 Se permite ajuste fluido del tamaño */
    flex: 1 1 130px;
    min-width: 120px;
}

.step-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* 🔹 Transición suave al reducir tamaño */
    transition: all 0.3s ease;
}

.step-icon {
    width: 60px;
    height: auto;
    transition: all 0.3s ease;
}

.step-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    line-height: 1.4;
}

.step-separator {
    font-size: 40px;
    color: #ccc;
    font-weight: lighter;
    display: flex;
    align-items: center;
    margin-top: 50px;
    height: 120px; /* Alineamos con los círculos */
}

/* Colores de los círculos */
.step-1-color { background-color: #f2b934; }
.step-2-color { background-color: #1c998c; }
.step-3-color { background-color: #ec9e20; }
.step-4-color { background-color: #e03387; }
.step-5-color { background-color: #f2b934; }

/* 🔹 Ajuste visual fluido entre escritorio y tablet (sin tocar móvil) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .work-process-section {
        padding: 60px 30px;
        height: auto;
    }

    .work-process-section .main-title {
        font-size: 46px;
        margin-bottom: 60px;
    }

    .process-steps {
        gap: 30px;
    }

    .step {
        width: 130px;
    }

    .step-circle {
        width: 100px;
        height: 100px;
    }

    .step-icon {
        width: 50px;
    }

    .step-separator {
        font-size: 36px;
        margin-top: 40px;
    }
}


/* -------------------------------------- */
/* Estilos del Formulario Contacto*/
/* -------------------------------------- */
.contact-form-container {
    width: 100%;
    max-width: 1200px;
    height: 940px;
    margin: -50px auto 0;
    /* Color de fondo eliminado para que se vea el fondo de la página */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.contact-form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.contact-form-content {
    width: 50%;
    padding: 0 50px 0 20px;
}

.contact-form-image-box {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: flex-end; /* Alinea la imagen a la derecha */
    align-items: center;
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga */
}

.contact-form-image-box img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Asegura que la imagen se muestre completa dentro del contenedor */
}

.contact-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 50px;
    font-weight: 500;
    color: #333333;
    line-height: 1.1;
    margin: 0;
    margin-bottom: 20px;
}

.contact-form-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 50px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    box-sizing: border-box;
    background-color: #f7f3ed;
    transition: border-color 0.3s;
}

.contact-form input::placeholder {
    color: #8c8c8c;
    font-style: italic;
}

.form-divider {
    height: 1px;
    background-color: #d3d3d3;
    margin: 40px 0;
}

.form-checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333333;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #333333;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f7f3ed;
}

.contact-form-button {
    display: inline-block;
    background-color: #33614a;
    border: 2px solid #33614a;
    color: #ffffff;
    padding: 15px 40px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.contact-form-button:hover {
    background-color: #2a523e;
    border-color: #2a523e;
}

/* -------------------------------------- */
/* Estilos del footer completo */
/* -------------------------------------- */
.main-footer {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.footer-top-bg {
    background-color: #fff; /* El color de fondo de la parte superior */
    padding: 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    height: 263px;
    box-sizing: border-box;
}

/* Contenedor principal del contenido izquierdo */
.footer-content-wrapper {
    display: flex;
    flex: 1; /* Ocupa el espacio disponible */
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px;
    box-sizing: border-box;
    margin: 50px auto 0;
}

/* Contenedor del logo y los íconos de redes sociales */
.footer-logo-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 50px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
    margin: -50px auto 0;
}
.social-icons {
    margin: -50px auto 0;
    display: flex;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    margin-left: 15px;
}

/* Contenedor de las columnas de enlaces */
.footer-links-container {
    display: flex;
    gap: 80px;
}

.footer-trans {
    color: #c2c1c1;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #666;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #ed217c;
}

/* Contenedor de la información de contacto */
.footer-contact-info {
    width: 40%;
    background-color: #ed217c;
    color: #fff;
    padding: 20px 40px 20px 20px;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.footer-contact-info h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-contact-info p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* Sección inferior del footer */
.footer-bottom-bg {
    width: 100%;
    background-color: #d1d1d1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    box-sizing: border-box;
    font-size: 14px;
    color: #555;
}

/* -------------------------------------- */
/* 1. Estilos Base del Modal (#success-modal) */
/* -------------------------------------- */

#success-modal {
    /* Posicionamiento y Capa de Fondo */
    position: fixed; /* Fijo en la pantalla */
    z-index: 1000; /* Asegura que esté por encima de todos los demás elementos */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semi-transparente */
    
    /* Centrado del Contenido */
    display: flex; /* Se usa flexbox para centrar el 'modal-content-custom' */
    justify-content: center;
    align-items: center;
}

.modal-content-custom {
    /* Contenedor del Mensaje */
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    width: 90%; /* Ancho base para móviles */
    max-width: 550px; /* Ancho máximo para escritorio */
    text-align: center;
}

/* -------------------------------------- */
/* 2. Estilos de Diseño y Tipografía */
/* -------------------------------------- */

.close-button-custom {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-button-custom:hover {
    color: #333;
}

.modal-title-custom {
    /* Estilo inclinado y grande */
    font-family: 'Times New Roman', serif; /* Ajusta si usas otra fuente elegante */
    font-style: italic; 
    font-size: 55px; 
    color: #333;
    line-height: 1.1;
    margin-bottom: 5px;
    transform: skewX(-5deg); /* La inclinación */
    display: block; 
    padding-top: 10px;
}

/* Estilo para el Check Mark (simulación con color temático) */
.modal-check-mark {
    width: 100px;
    height: 100px;
    margin: 20px auto;
    background-color: #F06292; /* Color de tu marca (rosa/fucsia) */
    border-radius: 50%;
    position: relative;
}

/* Si quieres agregar el símbolo de check (opcional) */
.modal-check-mark::after {
    content: '✓';
    font-size: 70px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}