/*
 Theme Name:   Hello Child TIC
 Description:  Tema hijo para Hello Elementor personalizado para TIC Soluciones.
 Author:       TIC Soluciones
 Template:     hello-elementor
 Version:      1.0.1
 Text Domain:  hello-child
*/
/* ================ */
/*  Hello Child CSS */
/* ================ */

/* --- Estilos generales --- */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita scroll horizontal */
    width: 100%;
}

#content {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Evita scroll horizontal */
    border: none; /* Eliminamos cualquier borde */
}

/* --- Cabecera --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

/* --- Cabecera --- */
.site-header {
    background-color: #fff;
    box-shadow: none; /* Eliminamos la sombra */
    border: none; /* Eliminamos cualquier borde */
    padding: 0.5rem 0; /* Reducimos el padding vertical */
    margin: 0; /* Eliminamos cualquier margen */
    width: 100%; /* Aseguramos que ocupe todo el ancho */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Forzamos ancho completo */
    max-width: 100%; /* Aseguramos que ocupe todo el ancho */
    padding: 0 2rem; /* Movemos el padding aquí para mantener el espacio horizontal */
    box-sizing: border-box;
    border: none; /* Eliminamos cualquier borde */
}

.site-branding .custom-logo {
    max-height: 50px; /* Ajusta esta altura como prefieras */
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* Estilo mejorado para el menú de navegación */
.site-navigation .nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-navigation .nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1.05rem;
}

/* Efecto de subrayado al pasar el mouse */
.site-navigation .nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #e96e00;
    transition: width 0.3s ease;
}

.site-navigation .nav-menu a:hover {
    color: #e96e00;
}

.site-navigation .nav-menu a:hover:after {
    width: 100%;
}

/* Transición suave entre el menú y el carrusel */
#carousel-section {
    position: relative;
    padding: 0; /* Eliminamos el espacio inferior */
    margin-top: -1px; /* Forzamos que se pegue al header */
    z-index: 1; /* Aseguramos que esté por debajo del header */
}

/* --- 2) Logo / branding --- */
.site-branding .custom-logo {
  max-height: 50px;   /* ajústalo a tu gusto */
  height: auto;
  width: auto;        /* mantiene proporción */
}
.site-branding .site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}
.site-branding {
  margin-right: 2rem; /* separa logo y menú */
}

/* --- 3) Menú --- */
.site-nav .nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.site-nav .nav-menu li {
  margin: 0;
}
.site-nav .nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.site-nav .nav-menu li a:hover {
  color: #E57200;
}

/* ================ */
/*  Contact Form 7  */
/* ================ */

/* 1) Grid 50|50 a pantallas anchas: 
   Aplica el grid al contenedor interno de Elementor, 
   no a la sección padre */
@media (min-width: 768px) {
  .contact-form-wrapper > .elementor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 1.5rem;
    align-items: start;
  }
}

/* 2) Margen entre campos */
.contact-form-wrapper .wpcf7-form p {
  margin-bottom: 1.5em;
}

/* 3) Estilos de inputs y textarea */
.contact-form-wrapper .wpcf7-form input[type="text"],
.contact-form-wrapper .wpcf7-form input[type="email"],
.contact-form-wrapper .wpcf7-form input[type="tel"],
.contact-form-wrapper .wpcf7-form textarea {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

/* 4) Estilos del botón de envío */
.contact-form-wrapper .wpcf7-form input[type="submit"] {
  background-color: #e96e00;
  color: #fff;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

/* 5) Hover en el botón */
.contact-form-wrapper .wpcf7-form input[type="submit"]:hover {
  opacity: 0.9;
}

/* 6) Etiquetas encima de los campos */
.contact-form-wrapper .wpcf7-form label {
  display: block;
  margin-bottom: 0.25em;
  font-weight: 600;
}

/* ============================ */
/*  Sección de Contacto Personalizada */
/* ============================ */

/* Estilos para el contenedor del shortcode */
.custom-contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#custom-contact-form {
    text-align: left;
}

#custom-contact-form p {
    margin-bottom: 1.5rem;
}

#custom-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

#custom-contact-form input[type="text"],
#custom-contact-form input[type="email"],
#custom-contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#custom-contact-form input[type="text"]:focus,
#custom-contact-form input[type="email"]:focus,
#custom-contact-form textarea:focus {
    outline: none;
    border-color: #e96e00;
}

#custom-contact-form input[type="submit"] {
    background-color: #e96e00;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    display: inline-block;
    width: auto;
}

#custom-contact-form input[type="submit"]:hover {
    background-color: #d66300;
}

.contact-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
}

/* ============================ */
/*  Diseño General Nueva Página   */
/* ============================ */

/* --- Reseteo y Fuentes --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-section {
    padding: 4rem 0;
    text-align: center;
}

/* Transición suave entre secciones */
.wave-transition-header {
    display: none;
}

/* --- Carrusel --- */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto; /* Permitimos que la altura se ajuste al contenido */
    min-height: 550px; /* Aumentamos la altura mínima para mantener consistencia */
}

.carousel-slide {
    display: none; /* Se mostrará con JS */
    position: relative;
    text-align: center;
    color: white;
    height: auto; /* Permitimos que la altura se ajuste a la imagen */
}

/* El degradado naranja */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(233, 110, 0, 0.6) 0%, rgba(233, 110, 0, 0) 70%);
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: auto; /* Altura automática para mantener proporciones */
    max-height: none; /* Sin límite de altura */
    min-height: 550px; /* Aseguramos altura mínima igual que el contenedor */
    object-fit: cover; /* Para que la imagen cubra todo el espacio disponible */
    display: block;
    vertical-align: bottom; /* Elimina posibles espacios debajo de las imágenes */
}

.carousel-caption {
    position: absolute;
    top: 30%;
    left: 10%;
    transform: translateY(-30%);
    z-index: 2;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: 40%;
    text-align: left;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.carousel-caption .divider {
    border-bottom: 2px solid #fff;
    width: 100px;
    margin: 1.5rem 0;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #e96e00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.btn:hover {
    background-color: #d66300;
}

/* Nuevo estilo para el botón del carrusel */
.btn.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
}

.btn.btn-outline:hover {
    background-color: #e96e00;
    border-color: #e96e00;
}


/* --- Publicidad E-commerce --- */
#ecommerce-section.page-section { /* Usamos el ID para máxima especificidad */
    background-color: #000;
    color: #fff;
    padding: 8rem 2rem; /* Ajustamos el padding */
}

.wave-transition {
    position: relative;
    line-height: 0;
    z-index: 2;
    margin-top: -1px; /* Ajuste para evitar espacio entre el carrusel y la transición */
    margin-bottom: -1px; /* Elimina espacio entre la ola y la sección de matrix */
    background: transparent !important; /* Fondo transparente para ver la ola */
}

.wave-transition svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px; /* Aumentamos la altura para que la ola sea más visible */
    transform: rotateY(180deg); /* Voltea horizontalmente para mejor efecto visual */
    background: transparent; /* Fondo transparente para el SVG */
    position: relative;
    z-index: 10;
}

.wave-transition .shape-fill {
    fill: #000000; /* Color del fondo de la sección de matrix */
    margin-bottom: 0; /* Ajustamos el margen */
}


.ecommerce-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ecommerce-text {
    flex: 1;
    text-align: left;
}

.ecommerce-text h2 {
    font-size: 3rem; /* Más grande */
    font-weight: bold;
}

.ecommerce-text h3 {
    font-size: 2.5rem; /* Más grande */
    margin-bottom: 2.5rem; /* Más espacio */
    font-weight: normal;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem; /* Más espacio */
    font-size: 1.2rem; /* Más grande */
}

.features-list .feature-icon {
    color: #e96e00;
}

.features-list .feature-icon svg {
    width: 30px; /* Iconos más grandes */
    height: 30px;
}

.features-list small {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
}

.ecommerce-image {
    flex: 1.2; /* Damos un poco más de espacio a la imagen */
    text-align: center;
}

.ecommerce-image img {
    max-width: 100%;
    height: auto;
}

.ecommerce-image h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}


/* --- Servicios --- */
#services-section h2 {
    color: #e96e00;
}

.services-features {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    text-align: left;
    margin: 3rem 0;
}

.feature-box {
    flex: 1;
    max-width: 300px;
}

.feature-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem; /* Un poco más grande */
}

.feature-icon-service svg {
    width: 36px; /* Iconos más grandes */
    height: 36px;
    flex-shrink: 0; /* Evita que el icono se encoja */
}

.services-button-container {
    margin: 2rem 0 4rem;
}

.btn.btn-outline-dark {
    color: #e96e00;
    border: 2px solid #e96e00;
    background-color: transparent;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn.btn-outline-dark:hover {
    color: #fff;
    background-color: #e96e00;
}

.services-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* Sin espacio entre imágenes */
    width: 100vw; /* Ancho completo de la ventana */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.service-image-item {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Color de fondo base (invertido) */
}

.service-image-item:nth-child(even) {
    background-color: #ffffff; /* Color alterno (invertido) */
}

.service-image-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-image-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso para cada imagen */
.service-image-item:nth-child(1) { transition-delay: 0.1s; }
.service-image-item:nth-child(2) { transition-delay: 0.2s; }
.service-image-item:nth-child(3) { transition-delay: 0.3s; }
.service-image-item:nth-child(4) { transition-delay: 0.1s; }
.service-image-item:nth-child(5) { transition-delay: 0.2s; }
.service-image-item:nth-child(6) { transition-delay: 0.3s; }


.service-image-item img {
    max-width: 100%;
    height: auto;
}

/* --- Sección Marcas --- */
#brands-section {
    background-color: #fff;
    padding: 0;
}

#brands-section .section-title {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 2rem;
    color: #e96e00; /* Color naranja */
    padding-top: 4rem;
}

.brands-carousel-container {
    overflow: hidden;
    padding: 2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 14)); } /* 250px (ancho logo) * 14 logos */
}


.brands-track-container {
   /* No necesita estilos ahora */
}

.brands-track {
    display: flex;
    animation: scroll 40s linear infinite;
    width: calc(450px * 28); /* 450px (ancho logo) * 28 logos (14*2) */
}

.brands-track.reverse {
    animation-direction: reverse;
}

.brand-logo {
    height: 280px; /* Logos más altos */
    width: 450px; /* Ancho fijo para cada logo */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 50px; /* Aumentamos la separación */
}

.brand-logo img {
    max-height: 100%;
    max-width: 500px; /* Ancho máximo más grande */
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
}


/* --- Sección Quiénes Somos --- */
#about-us-section {
    position: relative;
    background-image: url('../../uploads/2025/07/oficina-tic-services.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 6rem 2rem;
}

#about-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(233, 110, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.9) 100%); /* Degradado Naranja a Negro */
}

.about-us-container {
    position: relative;
    z-index: 2;
    display: grid; /* Usamos Grid para más control */
    grid-template-columns: 2fr 1fr; /* Dividimos en proporción 2:1 */
    gap: 4rem;
    align-items: flex-start;
}

.about-us-text {
    text-align: left;
}

.about-us-text h2 {
    font-size: 3rem;
}

.divider-white {
    border-bottom: 2px solid #fff;
    width: 100px;
    margin: 1.5rem 0;
}

.about-us-text .btn.btn-outline {
    margin-top: 2rem;
}

.about-us-certs {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinea el contenido hacia abajo */
    height: 100%;
}

.about-us-certs h4 {
    margin-bottom: 1rem;
}

.cert-logos {
    margin-top: 0;
    display: flex;
    gap: 2rem; /* Aumentamos la separación */
    align-items: center;
}

.cert-logos img {
    max-width: none;
    height: 150px; /* Fijamos la altura para igualar tamaño */
    width: auto;
}


/* --- Sección Contacto --- */
.contact-section-container {
    background-color: #f0f4ff;
    padding: 4rem 2rem; /* Restauramos padding inferior */
}

.contact-form-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 85% 100%, 0% 100%); /* Forma personalizada */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden; /* Importante para los pseudo-elementos */
}

/* Pseudo-elemento para el degradado en todos los bordes */
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 30px, rgba(0,0,0,0) calc(100% - 30px), rgba(0,0,0,0.7) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 30px, rgba(0,0,0,0) calc(100% - 30px), rgba(0,0,0,0.7) 100%);
    z-index: 0;
}

/* Pseudo-elemento específico para la esquina diagonal */
.contact-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%; /* Mayor cobertura */
    height: 40%; /* Mayor cobertura */
    /* Gradiente diagonal para la esquina */
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%);
    transform: rotate(-12deg) translate(20px, 15px) scale(1.2);
    pointer-events: none;
    z-index: 0;
    border-radius: 0 0 30px 0; /* Para suavizar la esquina */
}

.contact-form-column {
    flex: 1.5;
    position: relative;
    z-index: 1; /* Para que esté por encima de los pseudo-elementos */
}

.contact-info-column {
    position: relative;
    z-index: 1; /* Para que esté por encima de los pseudo-elementos */
}

.contact-form-column h2 {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    z-index: 1;
}

.contact-form-column p {
    color: #666;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

#custom-contact-form input[type="text"],
#custom-contact-form input[type="email"],
#custom-contact-form textarea {
    background-color: #f8f8f8;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 15px;
}
#custom-contact-form input[type="submit"] {
    background-color: #e96e00;
    box-shadow: 0 4px 15px rgba(233, 110, 0, 0.4);
}
#custom-contact-form input[type="submit"]:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(233, 110, 0, 0.5);
    transform: translateY(-2px);
}

.contact-info-column {
    flex: 1;
    text-align: left;
}

.contact-illustration img {
    max-width: 100%;
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    color: #555;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e96e00;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-family: sans-serif;
    transition: transform 0.3s;
}
.social-icon:hover {
    transform: scale(1.1);
}

/* --- Sección Ubicación --- */
#location-section {
    padding: 0;
    position: relative; /* Para posicionar el título */
}
.location-container h2 {
    position: absolute;
    z-index: 2;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: transparent; /* Fondo transparente */
    padding: 1rem 2rem;
    color: #fff; /* Texto blanco */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Sombra para legibilidad */
}
.map-wrapper {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.map-wrapper:hover {
    filter: grayscale(0%);
}


/* --- Pie de Página --- */
.footer-wave-transition {
    position: relative;
    background-color: transparent;
    line-height: 0;
    margin-top: -1px; /* Evita doble línea */
}

.footer-wave-transition svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.footer-wave-transition .shape-fill {
    fill: #333; /* Color del footer */
}

.site-footer {
    background-color: #333;
    color: #aaa;
    padding: 1.5rem 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    text-align: center;
    width: 100%;
}

.footer-copyright p {
    margin: 0;
}

/* Aseguramos que el menú de navegación sea horizontal */
.main-navigation ul,
.site-navigation .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social span {
    margin-right: 0.5rem;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    background-color: #555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.footer-social-icon:hover {
    background-color: #e96e00;
}

/* =============================== */
/*     ESTILOS RESPONSIVE         */
/* =============================== */

/* Tablet grande y pantallas medianas (1024px y menos) */
@media (max-width: 1024px) {
    .carousel-container {
        min-height: 450px;
    }
    
    .carousel-caption h2 {
        font-size: 2.8rem;
    }
    
    .ecommerce-text h2 {
        font-size: 2.5rem;
    }
    
    .ecommerce-text h3 {
        font-size: 2rem;
    }
    
    .about-us-text h2 {
        font-size: 2.5rem;
    }
    
    .brand-logo {
        height: 200px;
        width: 350px;
    }
    
    .cert-logos img {
        height: 120px;
    }
}

/* Tablet (768px y menos) */
@media (max-width: 768px) {
    .carousel-container {
        min-height: 500px; /* Aumentamos altura para tablets */
    }
    
    .carousel-slide img {
        min-height: 500px; /* Aseguramos que la imagen tenga la misma altura mínima */
    }
    
    .carousel-caption {
        width: 80%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.2); /* Fondo sutil para legibilidad */
        border-radius: 5px;
    }
    
    .carousel-caption h2 {
        font-size: 2.2rem;
    }
    
    .ecommerce-container {
        flex-direction: column;
    }
    
    .ecommerce-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .services-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-box {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .services-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-us-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-us-certs {
        justify-content: center;
    }
    
    .cert-logos {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        flex-direction: column;
        padding: 2rem;
        clip-path: none;
        border-radius: 20px;
    }
    
    .contact-info-column {
        width: 100%;
    }
    
    /* Ajuste para el menú de navegación */
    .site-navigation .nav-menu {
        gap: 1rem;
    }
    
    /* Ajuste para el carrusel de marcas en dispositivos móviles */
    .brand-logo {
        height: 220px;
        width: 300px;
        margin: 0 20px;
    }
    
    .brands-track {
        width: calc(300px * 28);
    }
    
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-300px * 14)); }
    }
}

/* Móvil grande (576px y menos) */
@media (max-width: 576px) {
    .carousel-container {
        min-height: 450px; /* Aumentamos la altura mínima para dispositivos Android */
    }
    
    .carousel-slide img {
        min-height: 450px; /* Aseguramos que la imagen tenga la misma altura mínima */
    }
    
    .carousel-caption {
        width: 90%;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0.8rem;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 5px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption .divider {
        margin: 1rem 0;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .ecommerce-text h2 {
        font-size: 2rem;
    }
    
    .ecommerce-text h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .features-list li {
        font-size: 1rem;
    }
    
    .services-image-grid {
        grid-template-columns: 1fr;
    }
    
    .about-us-text h2 {
        font-size: 2rem;
    }
    
    .cert-logos {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form-column h2 {
        font-size: 2rem;
    }
    
    /* El tamaño del carrusel de marcas ya está definido en la media query de 768px,
       así que no es necesario repetirlo aquí. */

    /* Ajuste para el menú móvil */
    .site-header {
        padding: 0.5rem;
    }
    
    .header-inner {
        padding: 0 1rem;
    }
    
    /* Estilos para menú móvil */
    .site-navigation .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
        z-index: 100;
        display: none;
    }
    
    .site-navigation.mobile-menu-open .nav-menu {
        display: flex;
    }
    
    .site-navigation .nav-menu a {
        padding: 0.8rem 2rem;
    }
    
    /* Botón de menú móvil */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
    }
}

/* Móvil pequeño (375px y menos) */
@media (max-width: 375px) {
    .carousel-container {
        min-height: 400px; /* Aumentamos significativamente la altura para móviles pequeños */
    }
    
    .carousel-slide img {
        min-height: 400px; /* Aseguramos que la imagen tenga la misma altura mínima */
    }
    
    .carousel-caption {
        top: 65%;
        padding: 0.5rem;
    }
    
    .carousel-caption h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }
    
    .btn.btn-outline {
        padding: 0.4rem 0.9rem;
    }
    
    .ecommerce-text h2 {
        font-size: 1.8rem;
    }
    
    .ecommerce-text h3 {
        font-size: 1.5rem;
    }
    
    .page-section {
        padding: 3rem 0;
    }
    
    #ecommerce-section.page-section {
        padding: 4rem 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    /* El tamaño del carrusel de marcas ya está definido en la media query de 768px,
       así que no es necesario repetirlo aquí. */
}

/* Ajuste para la navegación móvil */
@media (min-width: 577px) {
    .mobile-menu-toggle {
        display: none;
    }
}
