  :root {
    --primary: #000000;
    --secondary: #ED1C24;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --accent: #E5E5E5;

    --stats-banner-red: #ED1C24;
    --stats-banner-black: #000;
    /* Triángulos más grandes */
  --stats-banner-triangle-size: clamp(60px, 10vw, 150px);
  --stats-banner-number-size: clamp(28px, 4.2vw, 48px);
  --stats-banner-caption-size: clamp(10px, 1.6vw, 13px);
     --red-color: #ED1C24; /* Rojo corporativo */
    --dark-overlay-color: rgba(0, 0, 0, 0.7); /* Negro oscuro semitransparente */
  }
body {
  font-family: 'Open Sans', system-ui, sans-serif;
}


  
  /* Navbar Mejorada */
  .navbar-custom {
    background-color: var(--primary);
    padding: 1rem 0;
    transition: all 0.3s ease;
  }

  

  .navbar-custom.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar-brand {
    color: var(--secondary) !important;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
  }

.navbar-brand svg {
    width: 250px;  /* ajusta según tu diseño */
    height: auto;
    display: block;
    
}
.navbar>.container {
    display: flex;
    flex-wrap: inherit;
  
    justify-content: space-between;
}


  .navbar-brand span {
    color: white;
  }

  .nav-link {
    color: white !important;
    margin: 0 0.8rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0 !important;
  }

  .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
  }

  .nav-link:hover::before,
  .nav-link.active::before {
    width: 100%;
  }

  .btn-cta {
    background-color: var(--secondary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 1rem;
  }

  .btn-cta:hover {
    background-color:#4c4c4c;
    color:white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.3);
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  /* Hero Carousel Mejorado */
  .carousel {
    position: relative;
  }

  .carousel-item {
    height: 90vh;
  }

  .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
  }

  .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    width: 80%;
    padding: 2rem;
    border-radius: 10px;
    z-index: 2;
  }

  .carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
  }

  .carousel-caption h2 span {
    color: var(--secondary);
  }

  .carousel-caption p {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 2rem;
    width:500px;
  }

  .carousel-caption .btn {
    margin-top: 0.5rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
  }
.carousel-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* negro semi-transparente */
  z-index: 1;
}
  .btn-outline-light {
    border: 2px solid white;
    background-color: transparent;
    color: white;
  }

  .btn-outline-light:hover {
    background: white;
    color: var(--primary);
  }

  /* Indicadores (puntos) redondos y rojos */


.carousel-indicators [data-bs-target] {
  width: 12px;        /* ancho del punto */
  height: 12px;       /* alto del punto */
  border-radius: 50%; /* hace el punto redondo */
  background-color: #fff; /* color inactivo */
  opacity: 0.5;
  border: none;
  margin: 0 5px;      /* espacio entre puntos */
  cursor: pointer;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: #ED1C24; /* punto activo rojo */
  opacity: 1;
}
.slide-bajada {
  display: inline-flex;       /* ajusta al contenido, no ocupa toda la línea */
  align-items: flex-start;    /* alinea el triángulo con la primera línea del texto */
  gap: 10px;                  /* espacio entre triángulo y texto */
  font-size: 1.5rem;
  color: #fff;
  max-width: 500px;           /* ancho máximo del texto */
  line-height: 1.3;           /* ajusta altura de línea si quieres */
}

.icon-play {
  width: 20px;
  height: 20px;
  background-color: #ED1C24;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  flex-shrink: 0;
  margin-top: 3px; /* ajuste fino para centrar con primera línea */
}

.slide-text {
  display: inline-block;      /* permite que el texto envuelva dentro del ancho */
}


  .padding3 {
    padding-left: 5rem !important;
  }

  /* Responsive */
  @media (max-width: 991.98px) {
    .navbar-collapse {
      background: var(--primary);
      padding: 1rem;
      margin-top: 1rem;
      border-radius: 8px;
    }

    .nav-link {
      margin: 0.5rem 0;
      padding: 0.8rem 1rem !important;
    }

    .btn-cta {
      margin: 1rem 0 0;
      width: 100%;
    }

    .expertise-section {
      margin-top: -40px;
    }
  }

  @media (max-width: 768px) {
    .carousel-caption {
      width: 90%;
      padding: 1.5rem;
      margin-top: -52px;
    }

    .carousel-caption h2 {
      font-size: 2.2rem;
    }

    .carousel-caption p {
      font-size: 1.1rem;
    }

    .navbar-brand {
      font-size: 1.4rem;
    }

    .expertise-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 576px) {
    .topbar .container {
      flex-direction: column;
      text-align: center;
    }

    .social-icons {
      margin-top: 0.5rem;
    }

    .carousel-caption h2 {
      font-size: 2.7rem;
    }

    .carousel-caption p {
      font-size: 1rem;
    }

    .carousel-item {
      height: 80vh;
    }

    .expertise-grid {
      grid-template-columns: 1fr;
    }

    .expertise-title {
      font-size: 1.6rem;
    }
  }

  /***************************************************************************/

  /* Fondo y sección */
.talent {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  padding: 2rem;
}



/* Contenedor principal */
.talent-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Columnas */
.talent-column {
  flex: 1;
  display: flex;
  align-items: center;
}

.text-column {
  justify-content: flex-start;
  text-align: left;
}

.button-column {
  justify-content: center; /* botón centrado horizontalmente */
}

/* Texto */
.text-column h2 {
  color: #000;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.text-column h2 .highlight-red {
  color: #ED1C24; /* rojo */
}

.text-column p {
  color: #000;
  font-size: 1.7rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.slide-bajada-2 {
  display: flex;
  align-items: flex-start; /* alinea icono con el inicio del texto */
  gap: 12px;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #000;
}

.icon-play-2 {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-color: #ED1C24;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  /* El truco: usar 'align-self: flex-start' y ajustar con 'transform' en lugar de margin-top */
  align-self: flex-start;
  transform: translateY(4px); /* ajusta verticalmente según tu diseño */
}


/* Botón */
.talent-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--secondary);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .talent-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .text-column, .button-column {
    justify-content: center;
  

  }
   .talent{
    height: 107vh;
  }

 
  .text-column p {
    font-size: 1.7rem;
    
  }

  .talent-btn {
    width: auto;
    text-align: center;
  }
  .text-column h2 {
    font-size: 2.7rem;
    margin-top:70px;
 
  }
  .slide-bajada-2{
    margin-top:50px;
  }

}
/***********************************************************************************/
.stats-banner {
  background: var(--stats-banner-red);
  color: #fff;
  position: relative;
  width: 100%;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 200px;
}

.stats-banner::before,
.stats-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: calc(var(--stats-banner-triangle-size) * 0.8) solid transparent;
  border-bottom: calc(var(--stats-banner-triangle-size) * 0.8) solid transparent;
  /* fuerza el mismo tamaño exacto */
}

.stats-banner::before {
  left: 0;
  border-left: var(--stats-banner-triangle-size) solid var(--stats-banner-black);
}

.stats-banner::after {
  right: 0;
  border-right: var(--stats-banner-triangle-size) solid var(--stats-banner-black);
}

/* Contenido centrado */
.stats-banner-inner {
  width: 100%;
  max-width: 1300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-banner-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.stats-banner-item {
  text-align: center;
  min-width: 120px;
}

.stats-banner-number {
  display: block;
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
}

.stats-banner-caption {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.6px;
}

/* Responsive */
/* MOBILE */
@media (max-width: 768px) {
  .stats-banner-items {
    flex-direction: column;
    gap: 16px;
  }

  /* Reducimos triángulos para móviles */
  :root {
    --stats-banner-triangle-size: clamp(30px, 12vw, 60px);
  }

  .stats-banner-number {
    font-size: 3rem;
  }

  .stats-banner-caption {
    font-size: 1rem;
  }

  .stats-banner {
    height: auto;
    padding: 40px 0;
    margin-top:50px;
  }

}


/********************************************************************************************/

 /* Contenedor principal de la sección */
.featured-courses-section {
    display: flex;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto; 
    gap: 40px; 
    padding: 50px 0;
    box-sizing: border-box;
    padding-top: 200px;
    
}

/* 1. Estilos del Contenido Izquierdo */
.text-content {
    flex: 1; /* Permite que el contenido tome el espacio necesario */
    max-width: 350px; /* Limita el ancho del texto */
}

.section-title {
    font-size: 2.7rem;
    font-weight: 800; /* Negrita */
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333; /* Color oscuro para el 'Destacados' */
}

.title-red {
    color: var(--red-color); /* Color rojo para 'Cursos' */
    font-weight: 300; /* Menos negrita, como en la imagen */
     font-size: 3.5rem;
}

.intro-text {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 30px;
    font-size: 1.3em;
    line-height: 1.5;
}

.arrow-red {
    color: var(--red-color);
    font-size: 1.2em;
    margin-top: 3px;
}

.intro-text p {
    margin: 0;
}

.btn-red {
    display: inline-block;
    background-color: #ED1C24;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px; /* Bordes ligeramente redondeados */
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-red:hover {
    background-color: #c9171b; /* Rojo más oscuro al pasar el ratón */
}

/* 2. Estilos de la Cuadrícula de Cursos */
.grid-courses {
    flex: 2; /* Permite que la cuadrícula ocupe más espacio */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas de igual ancho */
    gap: 15px; /* Espacio entre las tarjetas */
}



.course-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el espacio */
    z-index: 1;
}


/* Superposición de color (Overlay) */
.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Entre la imagen y el texto */
    /* El color base se define en las clases específicas */
}

/* Superposición Negra (Dark Overlay) */
.dark-overlay::after {
    background-color: var(--dark-overlay-color);
    
}

/* Superposición Roja (Red Overlay) - Para el curso central superior */
.red-bg-overlay::after {
    /* Usamos el color rojo corporativo directamente como overlay */
    background-color: var(--dark-overlay-color);
    /* Podemos agregar una ligera opacidad si queremos que la imagen de fondo se vea */
    /* background-color: rgba(229, 29, 33, 0.9); */
}

/* Estilos para las tarjetas de curso (modificados) */
.course-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px; 
    min-height: 200px; 
    display: flex;
    align-items: flex-end; 
    padding: 15px;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* CLAVE: Habilitar transición para el efecto hover */
    transition: transform 0.3s ease-in-out; 
    height: 250px;
}

/* Estilo para el texto original (mantenerlo visible) */
.card-text {
    position: relative;
    z-index: 3; 
    font-size: 1rem;
    line-height: 1.3;
    font-weight: bold;
    margin: 0;
    /* CLAVE: Transición para que se mantenga estable */
    transition: opacity 0.3s; 
}

/* ------------------------------------------------ */
/* EFECTO HOVER: LA CORTINA Y LA DESCRIPCIÓN */
/* ------------------------------------------------ */

/* Superposición de color (Overlay) - Será la "cortina" */
.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* CLAVE: Altura inicial completa (cubriendo todo) */
    height: 100%; 
    z-index: 2; 
    /* CLAVE: Transición para el movimiento */
    transition: height 0.4s ease-out; 
}

/* Contenedor de la descripción que se revela */
.course-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 3; /* Asegura que esté por encima de la imagen */
    background-color: rgba(236, 28, 35, 0.8); /* Color de fondo de la descripción */
    
    /* CLAVE: Inicialmente oculta, con un efecto de 'cortina abajo' */
    transform: translateY(100%); 
    transition: transform 0.4s ease-out;
    
    /* Estilos internos de la descripción */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0; /* Opacidad inicial para un mejor efecto visual */
}

.course-description p {
    margin-top: 15px;
}


/* ------------------------------------------------ */
/* ESTADOS HOVER */
/* ------------------------------------------------ */

.course-card:hover {
    /* Efecto opcional: La tarjeta se levanta ligeramente */
    transform: translateY(-5px); 
    cursor: pointer;
}

/* Al hacer hover, la superposición (cortina) se 'levanta' */
.course-card:hover::after {
    height: 0; /* Esto hace que la cortina se encoja hacia arriba, desapareciendo */
}

/* Al hacer hover, la descripción se 'desliza' hacia arriba y aparece */
.course-card:hover .course-description {
    transform: translateY(0); /* Mueve la descripción a su posición normal */
    opacity: 1; /* La hace completamente visible */
}

/* Ocultar el texto original para que no choque con la descripción */
.course-card:hover .card-text {
    opacity: 0;
}
@media (max-width: 992px) {
    
    .featured-courses-section {
        /* CLAVE: Cambiamos a columna (el texto y los cursos se apilan) */
        flex-direction: column; 
        gap: 30px; 
         padding-top: 50px;
    }

    .text-content {
        max-width: 100%;
        text-align: center; 
    }
    
    /* Centramos el botón y ajustamos el intro-text */
    .btn-red {
        margin: 0 auto;
    }
    .intro-text {
        justify-content: center;
    }

    /* CLAVE: La cuadrícula de cursos se vuelve 1 columna. */
    /* Esto hace que todos los cursos se apilen, uno debajo del otro. */
    .grid-courses {
        grid-template-columns: 1fr;
        gap: 15px; /* Espacio vertical entre los cursos */
    }

    /* Ajuste de título */
    .section-title {
        font-size: 2.2em;
    }

    
  .title-red {
  
      font-size: 3rem;
  }
}

/* Punto de Quiebre 2: Ajustes para Móviles más pequeños (Max-width: 600px) */
@media (max-width: 600px) {
    
    .featured-courses-section {
        padding: 75px 0; 
    }
    
    /* El botón se vuelve full-width */
    .btn-red {
        display: block;
        width: 80%;
        margin: 20px auto;
    }

    /* Asegura que la descripción del intro-text no se vea forzada */
    
}

/***********************************Experiencia******************************************************/

 /* Contenedor principal */
    .experience-section {
        display: flex;
        width: 100%;
        min-height: 500px;
        overflow: hidden;
    }

    /* -------------------- */
  

    .text-content {
        position: relative;
        z-index: 2; /* Para que el texto quede encima del overlay */
    }

    .section-title-2 {
        font-size: 2.2em;
        font-weight: bold;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .title-red {
        color: var(--red-color);
        font-weight: normal;
       
    }

    .intro-text {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.9em;
        line-height: 1.5;
    }

    .intro-text p {
        margin: 0;
    }

    .arrow-red {
        color: var(--red-color);
        font-size: 1.7em;
        margin-top: 3px;
    }

    /* -------------------- */
    /* Columna derecha: galería */
    .image-gallery {
        flex: 1;
        position: relative;
        background-color: #333;
    }

    .gallery-background-image {
        position: absolute;
        top: 0;
       /* left: -7%;*/
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
    }

    .main-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: opacity 0.3s ease-in-out;
    }

    /* Carrusel miniaturas */
    .thumbnails-carousel {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        z-index: 20;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .thumbnail-item {
        width: 15%;
        max-width: 100px;
        aspect-ratio: 16/9;
        border: 2px solid transparent;
        cursor: pointer;
        overflow: hidden;
        opacity: 0.8;
        transition: opacity 0.3s, border-color 0.3s;
        flex-shrink: 0;
    }

    .thumbnail-item.active {
        border-color: white;
        opacity: 1;
    }

    .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .nav-arrow {
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
        padding: 0 10px;
        transition: color 0.3s;
        outline: none;
    }

    .nav-arrow:hover {
        color: var(--red-color);
    }

    /* Banda roja inferior */
    .red-footer-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 10px;
        background-color: var(--red-color);
        z-index: 25;
    }

    /* -------------------- */
    /* RESPONSIVE DESIGN */
    @media (max-width: 992px) {
        .experience-section {
            flex-direction: column;
        }

        .text-content-container {
            width: 100%;
            padding: 30px 20px;
            background:
                linear-gradient(to bottom, rgba(34,34,34,0.4), rgba(34,34,34,0.4)),
                url('imagen-izquierda.png') no-repeat center center;
            background-size: cover;
            text-align: center;
        }

        .image-gallery {
            width: 100%;
            min-height: 400px;
            height: 400px;
        }

        .gallery-background-image {
            left: 0;
            width: 100%;
        }

        .thumbnails-carousel {
            gap: 5px;
            padding: 10px 5px;
        }

        .thumbnail-item {
            max-width: 80px;
        }
    }

    @media (max-width: 600px) {
        .text-content-container {
            padding: 20px 15px;
        }

        .section-title {
            font-size: 2.7rem;
        }

        .image-gallery {
            min-height: 300px;
            height: 300px;
        }

        .thumbnails-carousel {
            gap: 3px;
            padding: 8px 0;
        }

        .thumbnail-item {
            max-width: 60px;
        }

        .nav-arrow {
            font-size: 1.2em;
            padding: 0 5px;
        }
    }
/*******************************************Experiencia**************************************************************/

 /* ===== SECCIÓN PRINCIPAL ===== */
.quality-certification {
  position: relative;
  width: 100%;
  height: 600px;
  background-image: url('../img/logos/1.png'); /* ✅ Ruta correcta de imagen en WP */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Capa roja transparente */
.quality-certification .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /*background-color:  rgba(237, 28, 36, 0.75);*/
  z-index: 1;
}

.quality-certification .content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

/* ===== TEXTO ===== */
.quality-certification h1 {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 20px;
}

.quality-certification p {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* ===== LOGOS ===== */
.quality-certification .logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.quality-certification .logos img {
  max-height: 100px;
  width: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Solo ampliar al hacer hover */
.quality-certification .logos img:hover {
  transform: scale(1.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .quality-certification {
    height: auto;
    padding: 60px 20px;
    margin-top: 100px;
  }
  .quality-certification h1 {
    font-size: 2.7em;
  }
  .quality-certification p {
    font-size: 1.7rem;
  }
  .quality-certification .logos img {
    max-height: 120px;
  }
}

@media (max-width: 480px) {
  .quality-certification .logos img {
    max-height: 90px;
  }
}
































/******************************************************clientes*****************************************/
/* Estilos del Contenedor Principal con Fondo Oscuro */
.clientes-seccion {
    background-color: rgba(34, 34, 34, 0.01);
    background-image: url('../img/logos/aaa.png'); 
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding: 80px 20px; 
    position: relative;
    overflow: hidden;
    height: 550px;
        background-size: cover;
   
 
}

/* Imagen de Fondo (Simulación de la imagen semi-transparente) */
.clientes-seccion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reemplazar con la URL/Path de tu imagen de fondo */
    

}

/* Contenido principal (texto + logos) */
.clientes-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Estilos del Texto (Izquierda) */
.clientes-texto {
    flex: 0 0 30%; 
    /*max-width: 300px;*/
    padding-right: 10px;
    margin-left: -50px;
}

.texto-rojo {
    color: #FF0000;
    font-size: 2.9rem;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

.texto-blanco {
    color: #ffffff;
    font-size: 2.9rem;
    font-weight: bold;
    line-height: 1;
    margin: 0 0 15px 0;
}

.subtitulo-clientes {
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.5;
}

/* 🔺 Corrección del Triángulo */
.triangulo-rojo {
    color: #FF0000;
    margin-right: 5px;
    font-size: 0.8em;
    display: inline-block;
    /* Rotación a -90 grados para que apunte de lado (hacia la derecha) */
    transform: rotate(-120deg); 
}

/* Contenedor de Logos (Derecha) */
.clientes-logos-contenedor {
    flex: 0 0 65%;
    display: flex; 
    flex-direction: column; /* Apila las filas verticalmente */
    gap: 40px; /* Espacio vertical entre las filas de logos */
    padding-top: 20px;
}

/* Estilo para cada fila */
.logo-fila {
    display: flex;
    justify-content: center; /* Centra los logos dentro de la fila */
    align-items: center;
    width: 100%;
    flex-wrap: wrap; 
    gap: 40px; /* Espacio horizontal entre logos */
}

/* Distribución 2, 3, 2 (Desktop) */
.logo-fila.fila-dos .logo-item {
    /* Ocupa el 40% del espacio, permitiendo 2 logos + gap en la fila */
    flex-basis: 40%; 
}

.logo-fila.fila-tres .logo-item {
    /* Ocupa el 25% del espacio, permitiendo 3 logos + gap en la fila */
    flex-basis: 25%;
}

.logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 100%;
    max-height: 80px; 
    width: auto;
    height: auto;
    /* Convierte logos a blanco/gris para el fondo oscuro */
    filter: brightness(0) invert(1) grayscale(100%); 
    transition: all 0.3s ease; 
    
    /* ➡️ AÑADIDO: Asegura que el logo tenga un punto de origen para la transformación (por defecto es center) */
    transform-origin: center center;
   
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.75;
  transform: scale(1.1);

}

/* --- RESPONSIVIDAD (Media Queries) --- */

/* Para pantallas medianas (ej. tablets, 992px y menos) */
@media (max-width: 992px) {
    .clientes-contenido {
        flex-direction: column;
        align-items: center;
    }

    .clientes-texto {
        flex: auto;
        max-width: none;
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
        margin-left: 0px;
    }
    
    .texto-rojo, .texto-blanco {
        font-size: 2.5em;
        line-height: 1.1;
    }

    .clientes-logos-contenedor {
        flex: auto;
        width: 100%;
        gap: 30px;
    }
    
    /* En tablet, permitimos que las filas se ajusten más libremente */
    .logo-fila.fila-dos .logo-item,
    .logo-fila.fila-tres .logo-item {
        /* Permite que los ítems ocupen el 30% del espacio */
        flex-basis: 30%; 
    }
}

/* Para pantallas pequeñas (ej. móviles, 576px y menos) */
@media (max-width: 576px) {
    .clientes-seccion {
        padding: 40px 10px;
    }
    
    .clientes-logos-contenedor {
        gap: 20px;
    }
    
    .logo-fila {
        gap: 20px;
    }
    
    .logo-fila.fila-dos .logo-item,
    .logo-fila.fila-tres .logo-item {
        /* 2 logos por fila en móvil */
        flex-basis: 45%; 
    }
    
    .texto-rojo, .texto-blanco {
        font-size: 3em;
    }
}


/***************************************************************contacto***************************************/
/* CONTENEDOR GENERAL */
.contacto-seccion {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
  position: relative;
 
  background-image: url('../img/foto-contact.png'); 
     background-size: cover;
    background-position: center;
}


/* Imagen de fondo (sin cambios) */
.contacto-seccion::before {
    /* ... (Estilos de fondo) ... */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
 
    opacity: 0.2;
    z-index: 1;
}

/* Contenedor principal: Cambiamos la alineación para evitar el estiramiento automático */
.contacto-contenido-wrapper {
    display: flex;
    max-width: 1100px; 
    position: relative;
    z-index: 2; 
    background-color: transparent; 
    overflow: visible;
    margin: 0 auto;
    /* 🔑 CLAVE: Permite que los elementos no se estiren verticalmente */
    align-items: flex-start; 
     margin-top: 150px;
  margin-bottom: 150px;
}

/* 🟥 Columna de Información (Roja): Aumenta su padding vertical para crecer */
.contacto-info-columna {
  background-color: #EC1C23;
  color: #ffffff;
  padding: 50px;
  flex: 1;
  min-width: 350px;
  position: relative;
  z-index: 3;

  /* 🔥 Aquí está la clave: sobresale arriba y a la derecha */
  margin-top: -30px;   /* Se eleva hacia arriba */
  margin-bottom: -30px;/* También baja más que la negra */
  margin-right: -20px; /* Se superpone hacia la negra */
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  height: 550px;
}

/* ⬛ Columna del Formulario (Gris Oscuro): Su altura se basa en el contenido (por align-items: flex-start) */
.contacto-formulario-columna {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 50px;
  flex: 1;
  min-width: 450px;
  position: relative;
  z-index: 2;
  border-radius: 10px;
}

/* [El resto de estilos de tipografía, formulario y media queries permanecen igual] */

/* --- Estilos de Tipografía y Formulario (sin cambios funcionales) --- */

.contacto-titulo {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 10px;
}
.contacto-subtitulo {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}
.contacto-descripcion {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 30px;
}
.contacto-lista {
  margin-left: 10px;

    margin-bottom: 40px;
}
.contacto-redes {
   
     font-size: 1.3em;
}
.contacto-lista li {
    margin-bottom: 10px;
    font-size: 1.3em;
    line-height: 1.4;
}
.linkedin-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 2em;
    margin-left: 10px;
    transition: color 0.3s ease;
}
.contacto-formulario input[type="text"],
.contacto-formulario input[type="email"],
.contacto-formulario textarea {
    width: calc(100% - 20px);
    padding: 15px 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background-color: #e0e0e0;
    color: #333;
    font-size: 1em;
    box-sizing: border-box;
}
.contacto-formulario textarea {
    resize: vertical;
    min-height: 120px;
}
/* Bloque .boton-enviar con los cambios */
.boton-enviar {
    background-color: #FF0000;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    
    /* 🔑 CAMBIOS CLAVE PARA CENTRAR EN DESKTOP */
    width: 250px; 
    display: block; /* Debe ser un bloque para que margin: auto funcione */
    margin-left: auto; /* Margen izquierdo automático */
    margin-right: auto; /* Margen derecho automático */
    /* El resultado de esto es: el botón se centra */
}
.boton-enviar:hover {
    background-color: #e60000;
}

/* --- RESPONSIVIDAD (Media Queries) --- */
/* --- RESPONSIVIDAD (Media Queries) --- */

/* Para pantallas medianas (ej. tablets, 992px y menos) */
@media (max-width: 992px) {
    
    /* Contenedor principal: Cambiar a columna y liberar el ancho */
    .contacto-contenido-wrapper {
        flex-direction: column; 
        max-width: 90%; /* Ajuste de ancho para tablet */
        margin: 0 auto;
        padding: 0;
    }

    /* 🟥 Columna Roja: Restablecer y apilar */
    .contacto-info-columna {
        flex: auto;
        min-width: unset;
        width: 100%;
        height: auto; /* ⬅️ CRUCIAL: Eliminar altura fija */
        
        /* ⬅️ CRUCIAL: Eliminar el solapamiento de escritorio */
        margin-top: 0; 
        margin-bottom: 0;
        margin-right: 0; 
        
        /* Ajustar redondeo para la parte superior del stack */
        border-radius: 10px 10px 0 0;
        box-shadow: none; /* La sombra se aplicará al contenedor principal */
        padding: 30px; /* Reducir padding en móvil/tablet */
    }

    /* ⬛ Columna Negra: Restablecer y apilar */
    .contacto-formulario-columna {
        flex: auto;
        min-width: unset;
        width: 100%;
        
        /* Ajustar redondeo para la parte inferior del stack */
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Sombra para el conjunto apilado */
        padding: 30px; /* Reducir padding en móvil/tablet */
        margin-bottom: 50px;
    }
}

/* Para pantallas pequeñas (ej. móviles, 576px y menos) */
@media (max-width: 576px) {
    .contacto-seccion {
        padding: 0 10px; /* Menos padding lateral en la sección principal */
        margin-top: -79px;
       
    }
    
    /* Reducción de tamaño de texto */
    .contacto-titulo {
        font-size: 2em;
    }
    .contacto-subtitulo {
        font-size: 1.1em;
    }
    
    .contacto-formulario input[type="text"],
    .contacto-formulario input[type="email"],
    .contacto-formulario textarea {
        padding: 12px 8px;
        margin-bottom: 15px;
    }
    
    /* Botón centrado en móvil */
    .boton-enviar {
        width: 100%; /* Ocupa todo el ancho en móvil para mejor usabilidad */
        padding: 15px 0;
    }
}

/***************************************************FOOTER*******************************************/

/* ===== Estilos Generales del Footer ===== */
.main-footer {
    background-color: #222222;
    color: #cccccc;
    font-family: Arial, sans-serif;
    padding: 20px 0 10px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Columnas ===== */
.footer-columns {
    display: flex;
    justify-content: center; /* Centra las columnas horizontalmente */
    align-items: flex-start;
    padding: 40px 0;
    gap: 50px; /* Espacio horizontal entre columnas */
}

/* ===== Logo Column ===== */
.footer-logo-col {
    flex-grow: 0; /* Solo ocupa el espacio del contenido */
    display: flex;
    align-items: center;
    padding-right: 0;
}

/* ===== Contact Column ===== */
.footer-contact-col {
    position: relative; /* Para el pseudo-elemento de la línea */
    padding-left: 50px;
    margin-right: 0;
}

/* Línea vertical con pseudo-elemento */
.footer-contact-col::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px; /* grosor de la línea */
    height: 100%; /* altura de la columna */
    background-color: #444444;
}
.footer-address-col::before {
    content: "";
    position: absolute;
    left: 0; /* al inicio de la columna Dirección */
    top: 0;
    width: 1px; 
    height: 100%;
    background-color: #444444;
}

/* ===== Address Column ===== */
.footer-address-col {
    padding-left: 50px; /* separa el contenido, sin línea */
    margin-right: 0;
     position: relative;
}

/* ===== Tipografía ===== */
.footer-heading {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 15px 0;
}

.footer-phone,
.footer-email,
.footer-address-line {
    font-size: 0.95em;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

/* Línea divisoria y copyright */
.footer-divider {
    border: none;
    border-top: 1px solid #808080;
    margin: 10px 0 20px 0;
}

.footer-bottom {
    text-align: center;
    padding-bottom: 20px;
    font-size: 0.85em;
    line-height: 1.5;
}

.footer-poweredby span {
    font-weight: bold;
    color: #ffffff;
}

/* ===== RESPONSIVE: Mobile / Tablet ===== */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column; /* Apilar columnas */
        align-items: center;
        text-align: center;
        padding: 30px 0 10px 0;
        gap: 20px; /* Espacio entre columnas */
    }

    /* Quitar la línea vertical en mobile */
    .footer-contact-col::before,
    .footer-address-col::before {
        display: none;
    }

    /* Ajustar padding y margen de columnas apiladas */
    .footer-contact-col,
    .footer-address-col {
        padding-left: 0;
        margin-top: 0;
    }

    /* Logo centrado con espacio inferior */
    .footer-logo-col {
        justify-content: center;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .footer-heading {
         
          font-size: 1.3em;
       
      }

      .footer-phone,
      .footer-email,
      .footer-address-line {
          font-size: 1em;
        
      }
}
