@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
:root {
  --azul-oscuro: #0f0c29;
  --azul: #4e54c8;
  --celeste: #8f94fb;
  --morado: #5e60ce;
  --fondo: #0b0c2a;
  --gradient-color-1: #6ec3f4;
  --gradient-color-2: #3a3aff;
  --gradient-color-3: #ff61ab;
  --gradient-color-4: #E63946;
}

/* ESTILOS GENERALES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: whitesmoke;
  scroll-behavior: smooth;
  overflow-x: hidden;
    scrollbar-color: #a0a0a0 transparent;
  scrollbar-width: thin;
}

/* Para navegadores WebKit (Chrome, Safari, etc.) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #a0a0a0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #707070;
}

/* NAV */

.menu-principal {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

/* LOGO */
.logo img {
  height: 5px;
  width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo {
  position: relative;
  height: 40px;
  width: 30px;
}

.logo img {
  position: absolute;
  top: 0;
  left: 0;
  height: 30px;
  width: 40px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Mostrar logo por defecto al inicio */
.logo .logo-default {
  opacity: 1;
  z-index: 2;
}

/* Al hacer scroll: cambiar logo con efecto fade */
.menu-principal.scroll-activo .logo .logo-default {
  opacity: 0;
}

.logo img.logo-scroll {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.logo img.logo-default {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.menu-principal.scroll-activo .logo img.logo-default {
  display: none;
  opacity: 0;
}

.menu-principal.scroll-activo .logo img.logo-scroll {
  display: block;
  opacity: 1;
}

.menu-principal.scroll-activo .logo .logo-scroll {
  opacity: 1;
  z-index: 3;
}

/* NAVEGACIÓN */
.navegacion {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navegacion ul {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navegacion ul li a {
  position: relative;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navegacion ul li a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #704d9f, #ff61ab);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navegacion ul li a:hover::after {
  width: 100%;
}

.navegacion ul li a:hover {
  color: #000;
  transform: translateY(-2px);
}

/* MENU TOGGLE PARA MÓVILES */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #111827;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* === CAMBIOS AL HACER SCROLL === */
.menu-principal.scroll-activo {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-principal.scroll-activo .navegacion ul li a {
  color: #111827;
}

.menu-principal.scroll-activo .navegacion ul li a:hover {
  color: #000;
}

.menu-principal.scroll-activo .logo img {
  transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navegacion {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgb(255, 255, 255);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 6rem;
    transition: right 0.4s ease;
  }

  .navegacion ul {
    flex-direction: column;
    gap: 2.5rem;
  }

  .navegacion ul li a {
  color: #000;
}

  
  .menu-toggle {
    display: flex;
  }

  .navegacion.activo {
    right: 0;
  }

  .menu-toggle.abierto span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.abierto span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.abierto span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* CSS ACERCA DE */

.seccion-nosotros {
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8); /* fondo claro semitransparente */
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.contenedor-nosotros {
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

.texto-nosotros {
  flex: 1 1 500px;
  color: #333;
  font-size: 1rem;
}

.titulo-seccion {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitulo-rosa {
  color: #e91e63;
  font-weight: bold;
  margin-top: 20px;
  font-size: 1.3rem;
}

.texto-nosotros p {
  margin-top: 10px;
  line-height: 2.7;
  text-align: justify;
}

.imagen-nosotros {
  flex: 1 1 400px;
  text-align: center;
}

.imagen-nosotros img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Animación de flotación */
.flotante {
  animation: flotar 4s ease-in-out infinite;
}

@keyframes flotar {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-nosotros {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .texto-nosotros {
    text-align: center;
  }

  .texto-nosotros p {
    text-align: justify;
  }
}

/* CSS NUESTROS SERVICIOS */

/* Estilos generales para la sección de servicios */
.sectionServicios {
    width: 100%;
    /* height: 105vh; Si ya no necesitas esta altura fija, es mejor height: auto; */
    padding-bottom: 60px; /* Para asegurar espacio al final de la sección */
}

/* Título principal de la sección */
.sectionServicios .tituloServicios {
    padding-left: 40px;
    font-style: normal;
    font-weight: 500;
    font-size: 30px;
    line-height: 85px; /* Ajusta según sea necesario para el espacio vertical del título */
    letter-spacing: -0.015em;
    color: #ee3d8b;
    margin-bottom: 20px; /* Añadido espacio debajo del título */
}

/* Contenedor principal de la cuadrícula de servicios */
.sectionServicios .contenedor-grid {
    position: relative;
    display: grid;
    /* Definimos las columnas: 2fr para la primera, 50% para la segunda. */
    /* Esto es bueno para escritorio. Puedes ajustar si 2fr y 50% no te dan la proporción deseada. */
    grid-template-columns: 2fr 50%;
    gap: 30px; /* Espacio entre las columnas del grid (entre contenedorFila1 y contenedorFila2) */
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    /* Alinea el grid horizontalmente si es más pequeño que el 90% */
}

/* Estilos para las filas de widgets (columnas lógicas en el grid) */
.contenedor-grid .contenedorFila1,
.contenedor-grid .contenedorFila2 {
    display: flex; /* Hacemos que cada fila sea un contenedor flex */
    flex-direction: column; /* Para que los widgetSer se apilen verticalmente dentro de cada fila */
    gap: 20px; /* Espacio entre los widgetSer dentro de cada fila */
    /* position: relative; ya lo tienes, se puede mantener si es necesario para otros elementos */
}

/* Estilos para cada widget de servicio individual */
.contenedor-grid .widgetSer {
    /* width: auto; Permitir que el flex item tome el ancho disponible */
    /* Puedes añadir padding o border para visualizarlos mejor */
    padding: 20px; /* Añadido para dar espacio interno a cada tarjeta */
    border: 1px solid #eee; /* Opcional: para ver los límites de cada tarjeta */
    border-radius: 8px; /* Opcional: bordes redondeados */
    background-color: #fff; /* Opcional: fondo para las tarjetas */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Opcional: sombra para las tarjetas */
    display: flex; /* Hacemos cada widget flex para organizar su contenido */
    flex-direction: column; /* Apilar imagen, título, texto y botón */
    justify-content: space-between; /* Para empujar el botón hacia abajo si el texto es más corto */
    height: 100%; /* Para que todos los widgets dentro de la misma fila tengan la misma altura si están en el mismo contenedor flex. Ojo con esto si hay muchas diferencias de contenido. */
    box-sizing: border-box; /* Asegura que padding y border no aumenten el width/height */
    transition: all 0.3s ease-in-out;
}

.contenedor-grid .widgetSer {
  animation: surroundingShadow 3s infinite alternate;
}

@keyframes surroundingShadow {
    0% {
        box-shadow:
            /* Layer 1: Top-left emphasis, similar to your example */
            2px 2px 8px 0 rgb(209, 102, 221),
            /* Layer 2: Bottom-right, different color */
            -2px -2px 8px 0 rgb(102, 221, 209),
            /* Layer 3: Larger, more diffused, perhaps a third color */
            0px 0px 15px 2px rgba(221, 197, 102, 0.7);
    }
    25% {
        box-shadow:
            2px -2px 10px 0 rgb(209, 102, 221),
            -2px 2px 10px 0 rgb(102, 221, 209),
            0px 0px 18px 3px rgba(221, 197, 102, 0.7);
    }
    50% {
        box-shadow:
            -2px -2px 12px 0 rgb(209, 102, 221),
            2px 2px 12px 0 rgb(102, 221, 209),
            0px 0px 20px 4px rgba(221, 197, 102, 0.7);
    }
    75% {
        box-shadow:
            -2px 2px 10px 0 rgb(209, 102, 221),
            2px -2px 10px 0 rgb(102, 221, 209),
            0px 0px 18px 3px rgba(221, 197, 102, 0.7);
    }
    100% {
        box-shadow:
            /* Return to initial state, or slightly varied */
            2px 2px 8px 0 rgb(209, 102, 221),
            -2px -2px 8px 0 rgb(102, 221, 209),
            0px 0px 15px 2px rgba(221, 197, 102, 0.7);
    }
}

/* Contenedor de imagen y subtítulo dentro del widget */
.contenedor-grid .titulosServicios {
    display: flex; /* Para que la imagen y el span estén lado a lado */
    align-items: center; /* Alinea verticalmente la imagen y el texto */
    margin-bottom: 10px; /* Espacio entre el título y el texto del servicio */
}

/* Imagen del servicio */
.contenedor-grid .serviciosImg {
    width: 40px; /* Tu ancho actual */
    height: 40px; /* Opcional: para que las imágenes tengan la misma altura */
    margin-right: 15px; /* Espacio entre la imagen y el subtítulo */
    object-fit: contain; /* Para asegurar que la imagen se ajuste sin distorsionarse */
}

/* Subtítulo del servicio (nombre del servicio) */
.contenedor-grid .subtitulosServicios {
    /* padding-left: 100px; Esto causa un gran indentado. Lo eliminaremos aquí y dependeremos de margin-right en la imagen. */
    padding-left: 0; /* Asegurarse de que no haya padding extra que desalinee */
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: normal; /* Ajusta a normal o un valor específico */
    letter-spacing: -0.015em;
    color: #ee3d8b;
    flex-grow: 1; /* Permite que el span ocupe el espacio restante */
}

/* Texto de descripción del servicio */
.contenedor-grid .textoServicios {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 25px;
    text-align: justify; /* Mantenemos justificado si lo deseas */
    letter-spacing: -0.015em;
    color: #242729;
    margin-bottom: 15px; /* Espacio entre el texto y el botón */
    flex-grow: 1; /* Permite que el texto ocupe el espacio restante, ayudando a que los botones se alineen en la parte inferior si sus descripciones son de diferente longitud. */
}

/* Estilos para el botón */
.boton {
    margin-top: 10px;
    display: inline-flex; /* Asegura que el botón sea un flex container */
    align-items: center;
    justify-content: center;
    width: 35%;
    height: 30px;
    background: #fff;
    color: #6A41BD;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    /* text-transform: uppercase; */
    transition: .1s ease all;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    /* Alineación del botón */
    margin-left: 0; /* Elimina cualquier margin left que pueda haber si no es intencional */
    /* Para centrar el botón dentro de su widget si lo quieres */
    /* align-self: center; */
}

/* Animaciones del botón (mantener como están) */
.boton.cinco span,
.boton.cuatro span {
    transition: .4s ease-in-out all;
    position: absolute;
    left: 40%;
}

.boton.cinco .icono,
.boton.cuatro .icono {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 2;
    left: -40px;
    transition: .5s ease-in-out all;
    opacity: 0;
}

.boton.cinco svg,
.boton.cuatro svg {
    color: #6A41BD;
    width: 35px;
    height: 35px;
}

.boton.cinco:hover,
.boton.cuatro:hover {
    background: #fff;
    font-weight: 700;
}

.boton.cinco:hover .icono {
    left: calc(100% - 90px);
    opacity: 1;
}

.boton.cuatro:hover .icono {
    left: calc(100% - 30px) !important;
    opacity: 1;
}

.boton.cinco:hover span,
.boton.cuatro:hover span {
    left: 20px;
}

/* MEDIA QUERIES PARA RESPONSIVE DESIGN */
@media all and (max-width: 900px) {
    /* Consolidamos y corregimos el comportamiento del grid en pantallas pequeñas */
    .sectionServicios .contenedor-grid {
        display: block; /* Los contenedores de fila se apilarán */
        width: 95%; /* Ocupa más ancho en móvil */
        margin: 0 auto; /* Centrar el contenedor principal */
    }

    /* Ajustes específicos para los widgets en móvil */
    .contenedor-grid .widgetSer {
        width: auto; /* Permite que ocupe el ancho disponible */
        padding-right: 10px; /* Ya lo tenías, ajusta si es necesario */
        margin-bottom: 20px; /* Espacio entre los widgets apilados en móvil */
    }

    .sectionServicios .tituloServicios {
        font-size: 25px;
        line-height: normal; /* Asegura que el título sea visible */
        padding-bottom: 2rem;
        padding-left: 15px; /* Ajusta el padding para móviles */
        text-align: center; /* Centrar el título en móvil */
    }

    .contenedor-grid .widgetSer .subtitulosServicios {
        padding-left: 0; /* Elimina padding extra en móvil para alinear */
        font-size: 15px; /* Un poco más grande para mejor lectura */
        line-height: normal; /* Asegura visibilidad */
    }

    .contenedor-grid .textoServicios {
        font-size: 13px;
        text-align: left; /* O justifica si lo prefieres */
    }

    /* Alineación de la imagen y subtítulo en móvil */
    .contenedor-grid .titulosServicios {
        justify-content: flex-start; /* Alinea al inicio */
        /* Si quieres centrarlos: justify-content: center; */
    }

    /* Botón en móvil */
    .boton {
        width: 60%; /* Aumenta el ancho del botón en móvil para mejor interacción */
        font-size: 12px; /* Un poco más grande para mejor lectura */
        margin-left: auto; /* Para centrar el botón si width es menor al 100% */
        margin-right: auto; /* Para centrar el botón */
    }

    /* Ajustes adicionales para las animaciones del botón en móvil si es necesario */
    .boton.cinco:hover .icono {
        left: calc(100% - 70px); /* Ajusta si es necesario para el nuevo ancho del botón */
    }
}

    .container {
            max-width: 1500px;
            background: white;
            margin: 0 auto;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
          }

        .header {
            text-align: start;
            margin-bottom: 60px;
            color: #2c3e50;

        }

        .header h1 {
            font-size: 35px;
            font-weight: 400;
            margin-bottom: 15px;
            background: black;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header p {
            font-size: 1.2rem;
            color: #475569;
            max-width: auto;
            margin: 0;
            line-height: 1.6;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .service-card {
            background: white;
            border-radius: 16px;
            padding: 35px 25px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #704d9f, #ff61ab);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.6s ease;
        }

        .service-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(112, 77, 159, 0.1), rgba(255, 97, 171, 0.1), transparent);
            transition: left 0.8s ease;
            pointer-events: none;
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-card:hover::after {
            left: 100%;
        }

        .service-card:hover {
            transform: translateY(-12px) scale(1.03);
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
        }

        .icon-container {
            width: 80px;
            height: 80px;
            margin: 0 auto 25px;
            background: linear-gradient(135deg, #704d9f, #ff61ab);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: 0 8px 25px rgba(112, 77, 159, 0.3);
            transition: all 0.4s ease;
        }

        .icon-container::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, #704d9f, #ff61ab);
            opacity: 0;
            transform: scale(1);
            transition: all 0.4s ease;
        }

        .service-card:hover .icon-container {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 12px 35px rgba(112, 77, 159, 0.4);
        }

        .service-card:hover .icon-container::after {
            opacity: 0.2;
            transform: scale(1.3);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1.3); opacity: 0.2; }
            50% { transform: scale(1.5); opacity: 0.1; }
            100% { transform: scale(1.3); opacity: 0.2; }
        }

        .icon {
            width: 40px;
            height: 40px;
            fill: white;
            z-index: 1;
        }

        .service-title {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: #000;
            line-height: 1.3;
        }

        .service-description {
            color: #475569;
            line-height: 1.6;
            font-size: 1rem;
        }

        /* Iconos específicos para cada servicio */
        .service-card:nth-child(1) .icon svg {
            fill: white;
        }

        .service-card:nth-child(2) .icon svg {
            fill: white;
        }

        .service-card:nth-child(3) .icon svg {
            fill: white;
        }

        .service-card:nth-child(4) .icon svg {
            fill: white;
        }

        .service-card:nth-child(5) .icon svg {
            fill: white;
        }

        .service-card:nth-child(6) .icon svg {
            fill: white;
        }

        .service-card:nth-child(7) .icon svg {
            fill: white;
        }

        .service-card:nth-child(8) .icon svg {
            fill: white;
        }

        @media (max-width: 1200px) {
            .services-grid {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
                gap: 25px;
            }
        }

        @media (max-width: 768px) {
            
            .header {
                margin-bottom: 40px;
            }
            
            .header h1 {
                font-size: 2.5rem;
            }
            
            .header p {
                font-size: 1.1rem;
                padding: 0 10px;
            }
            
            .services-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .service-card {
                padding: 30px 20px;
            }
            
            .icon-container {
                width: 70px;
                height: 70px;
            }
            
            .service-title {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 480px) {
            
            .header h1 {
                font-size: 2rem;
            }
            
            .header p {
                font-size: 1rem;
            }
            
            .service-card {
              justify-content: center;
              width: 360px;
                padding: 25px 15px;
                border-radius: 12px;
            }
            
            .icon-container {
                width: 60px;
                height: 60px;
                margin-bottom: 20px;
            }
            
            .service-title {
                font-size: 1.2rem;
                margin-bottom: 12px;
            }
            
            .service-description {
                font-size: 0.95rem;
            }
        }

        /* Animación de entrada */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .service-card {
            animation: fadeInUp 0.6s ease forwards;
        }

        .service-card:nth-child(1) { animation-delay: 0.1s; }
        .service-card:nth-child(2) { animation-delay: 0.2s; }
        .service-card:nth-child(3) { animation-delay: 0.3s; }
        .service-card:nth-child(4) { animation-delay: 0.4s; }
        .service-card:nth-child(5) { animation-delay: 0.5s; }
        .service-card:nth-child(6) { animation-delay: 0.6s; }
        .service-card:nth-child(7) { animation-delay: 0.7s; }
        .service-card:nth-child(8) { animation-delay: 0.8s; }
/* CSS CONTENEDORES */
.seccion-contenedores {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 50vh;
    justify-content: center; /* CENTRA HORIZONTALMENTE el grupo de tarjetas */
    align-items: center;   /* CENTRA VERTICALMENTE el grupo de tarjetas */
    gap: 2.5rem; /* Espacio entre las tarjetas */
    flex-wrap: wrap; /* Permite que las tarjetas se envuelvan a la siguiente línea en pantallas pequeñas */
    padding: 2rem 1rem; /* Añade un padding general para evitar que toquen los bordes */
    box-sizing: border-box;
}

.zona-izquierda,
.zona-derecha {
    /* REMOVIDO: flex: 1; Esto hacía que se expandieran y separaran */
    display: flex;
    justify-content: center; /* Centra la tarjeta *dentro* de cada zona */
    align-items: center;
    padding: 0;
    /* min-width: 350px; /* Opcional: Un valor razonable para que la tarjeta quepa, ajusta si es necesario */
}

.cuadro {
    background-color: #111;
    border-radius: 24px;
    padding: 3rem;
    width: 100%; /* Ocupará el 100% del ancho disponible de su padre (la zona) */
    max-width: 480px; /* Tamaño máximo para esta tarjeta en pantallas grandes */
    min-height: 600px; /* Asegura un mínimo, pero permite que crezca/encoga */
    max-height: 30vh; /* Establece un máximo basado en el viewport height */
    box-sizing: border-box; /* Asegura que el padding se incluya en el ancho/alto */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cuadro:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.15);
}

/* Las reglas comentadas .cuadro:hover .contenido, etc. déjalas como están si las tienes comentadas. */

.cuadro video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cuadro:hover video {
    opacity: 0.25;
}

.cuadro:hover .boton-outline {
    background: white;
    color: black;
}

.contenido {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    color: white;
    transition: 2s;
}

.contenido h1,
.contenido h2 {
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.contenido p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.boton-outline {
    padding: 14px 28px;
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.boton-outline:hover {
    background: white;
    color: black;
}

@media (max-width: 768px) {
    .seccion-contenedores {
        flex-direction: column; /* Apila las tarjetas verticalmente */
        align-items: center;
        gap: 2rem;
        padding: 2rem 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .zona-izquierda,
    .zona-derecha {
        width: 100%; /* Cada zona ocupa todo el ancho disponible */
        justify-content: center;
    }

    .cuadro {
        width: 100%; /* Ocupa el 100% de la zona (que es 100% de la pantalla, hasta su max-width) */
        max-width: 400px; /* Opcional: un max-width un poco más pequeño para móviles si 480px es muy grande */
        height: auto; /* ¡IMPORTANTE! Deja que la altura se ajuste al contenido en móviles */
        min-height: 300px; /* Un mínimo para que no se vea demasiado pequeño si tiene poco contenido */
        max-height: 80vh; /* Permite que ocupe más altura en móviles si es necesario */
        padding: 2rem 1.5rem; /* Ajusta el padding para móviles */
        border-radius: 20px;
        /* margin-bottom: 1rem; REMOVIDO, ya que usamos gap en seccion-contenedores */
        text-align: center; /* Mantener si quieres que el texto se centre en móvil */
    }

    .contenido h1,
    .contenido h2 {
        font-size: 1.8rem;
    }

    .contenido p {
        font-size: 1.1rem;
    }

    .boton-outline {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .cuadro video {
        opacity: 0.35;
    }
}

/* CAROUSEL */

 .carousel-section {
      border-radius: 20px;
      max-width: 1300px;
      margin: 4rem auto;
      padding: 2rem;
      overflow: hidden;
      background-color: #ffffff;
    }

    .carousel-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-bottom: 2rem;
      gap: 1rem;
    }

    .carousel-header h2 {
      font-size: 2.2rem;
    }

    .carousel-header p {
      font-size: 1rem;
      color: #475569;
      max-width: 600px;
    }

    .carousel-buttons {
      display: flex;
      gap: 0.75rem;
      justify-content: center;
    }

    .carousel-buttons button {
      background-color: #e0e7ff;
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      cursor: pointer;
      font-size: 1rem;
      transition: background 0.3s ease;
      color: #1e3a8a;
    }

    .carousel-buttons button:hover {
      background-color: #c7d2fe;
    }

    .carousel-container {
      overflow: hidden;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.5s ease;
      will-change: transform;
    }

    .carousel-item {
      flex: 0 0 24%;
      padding: 1rem;
      background: white;
      border-radius: 12px;
      margin-right: 2rem;
      position: relative;
      min-height: 260px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    }

    .carousel-item:hover {
      transform: translateY(-6px) scale(1.04);
      box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
    }

    .carousel-item::before {
      content: "";
      display: block;
      height: 4px;
      width: 100%;
      background: var(--morado);
      position: absolute;
      top: 0;
      left: 0;
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
    }

    .carousel-item h3 {
      font-size: 1.1rem;
      text-align: center;
      margin-top: 1rem;
    }

    .carousel-item p {
      font-size: 0.85rem;
      color: #475569;
      text-align: center;
    }

    .carousel-item .icons {
      display: flex;
      gap: 1.2rem;
      align-items: center;
      justify-content: center;
      padding-top: 1rem;
      margin-top: auto;
      border-top: 2px solid #e2e8f0;
    }

    .carousel-item .icons i {
      font-size: 1.5rem;
      color: var(--morado);
      transition: transform 0.3s ease, color 0.3s ease;
    }

    .carousel-item:hover .icons i {
      transform: scale(1.2);
      color: var(--morado);
    }

    @media (max-width: 900px) {
      .carousel-section {
        padding: 1.5rem 1rem;
      }

      .carousel-track {
        flex-wrap: nowrap;
      }

      .carousel-item {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
      }
    }

/* CSS SECCION NUESTROS SERVICIOS */

.servicios-section {
  position: relative;
  padding: 6rem 3.5rem;
  background: #f9f9fb;
  color: #333;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
}

.titulo-servicios {
  font-size: 2.7rem;
  background: linear-gradient(to right, #ef4444, #10b981, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  text-align: center;
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

.grid-servicios {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
}

.item-servicio {
  padding: 2rem;
  border-radius: 1.5rem;
  background: white;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(40px);
}

.item-servicio.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.item-servicio:hover {
  transform: translateY(-6px);
}

.icono-servicio {
  font-size: 2.4rem;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.item-servicio h3 {
  color: #111827;
  font-size: 1.3rem;
  margin: 0;
}

.item-servicio p {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

.link-servicio {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: #3b82f6;
  text-transform: uppercase;
  text-decoration: none;
  gap: 0.5rem;
  margin-top: auto;
  transition: all 0.3s ease;
  position: relative;
}

.link-servicio .flecha {
  transform: translateX(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.link-servicio:hover .flecha {
  transform: translateX(4px);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .grid-servicios {
    grid-template-columns: 1fr;
  }
  .item-servicio {
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  }
  .titulo-servicios {
    font-size: 2.2rem;
  }
}

/* CSS CONTACTO */

/* Estilos para el mapa de Google Maps */
.contenedor-mapa {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9, más moderno */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil para el mapa */
}

.contenedor-mapa iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Estilos para los íconos de redes sociales */
.social-icon {
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    font-size: 1.5rem; /* Tamaño más grande para los íconos */
}

.social-icon:hover {
    transform: scale(1.2); /* Aumento de tamaño al pasar el cursor */
    color: #ffccff; /* Color al pasar el cursor sobre los íconos */
}

/* Estilos de footer */
footer {
    background: #3d4f5d;
    color: #a8b5c1;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    width: 100%;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    footer {
        padding: 0.8rem 0;
        font-size: 0.8rem;
    }
    .footer-container {
        padding: 0 0.5rem;
    }
}

        /* Contenedor principal del botón */
        .whatsapp-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
        }

        /* Botón principal */
        .whatsapp-button {
            position: relative;
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #25d366, #128c7e);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            font-size: 35px;
            box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
            transition: all 0.3s ease;
            animation: pulse 2s infinite, bounce 3s infinite;
            cursor: pointer;
            overflow: hidden;
        }

        /* Efecto de pulso continuo */
        @keyframes pulse {
            0% {
                box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
            }
            50% {
                box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7), 
                           0 0 0 0 rgba(37, 211, 102, 1);
            }
            100% {
                box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4),
                           0 0 0 20px rgba(37, 211, 102, 0);
            }
        }

        /* Animación de rebote sutil */
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-10px);
            }
            60% {
                transform: translateY(-5px);
            }
        }

        /* Animación de rotación en hover */
        @keyframes wiggle {
            0%, 7% {
                transform: rotateZ(0);
            }
            15% {
                transform: rotateZ(-15deg);
            }
            20% {
                transform: rotateZ(10deg);
            }
            25% {
                transform: rotateZ(-10deg);
            }
            30% {
                transform: rotateZ(6deg);
            }
            35% {
                transform: rotateZ(-4deg);
            }
            40%, 100% {
                transform: rotateZ(0);
            }
        }

        /* Efectos en hover */
        .whatsapp-button:hover {
            transform: scale(1.1);
            animation: wiggle 0.6s ease-in-out;
            box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
        }

        /* Anillos de pulso */
        .pulse-ring {
            content: '';
            width: 80px;
            height: 80px;
            border: 3px solid #25d366;
            border-radius: 50%;
            position: absolute;
            animation: pulsate 2s ease-out infinite;
            opacity: 0;
        }

        .pulse-ring:nth-child(2) {
            animation-delay: 0.5s;
        }

        .pulse-ring:nth-child(3) {
            animation-delay: 1s;
        }

        @keyframes pulsate {
            0% {
                transform: scale(0.1, 0.1);
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
            100% {
                transform: scale(1.3, 1.3);
                opacity: 0;
            }
        }

        /* Texto flotante */
        .whatsapp-text {
            position: absolute;
            right: 90px;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            color: #333;
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            animation: slideText 4s infinite;
        }

        /* Flecha del mensaje */
        .whatsapp-text::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -8px;
            width: 0;
            height: 0;
            border: 8px solid transparent;
            border-left-color: white;
            transform: translateY(-50%);
        }

        /* Animación del texto */
        @keyframes slideText {
            0%, 80% {
                opacity: 0;
                visibility: hidden;
                transform: translateY(-50%) translateX(-10px);
            }
            85%, 95% {
                opacity: 1;
                visibility: visible;
                transform: translateY(-50%) translateX(0);
            }
            100% {
                opacity: 0;
                visibility: hidden;
                transform: translateY(-50%) translateX(-10px);
            }
        }

        /* Mostrar texto en hover */
        .whatsapp-container:hover .whatsapp-text {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) translateX(0);
        }

        /* Brillo interior */
        .whatsapp-button::before {
            content: '';
            position: absolute;
            top: 20%;
            left: 20%;
            width: 60%;
            height: 60%;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0%, 100% {
                opacity: 0.2;
                transform: scale(0.9);
            }
            50% {
                opacity: 0.4;
                transform: scale(1);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .whatsapp-container {
                bottom: 20px;
                right: 20px;
            }
            
            .whatsapp-button {
                width: 70px;
                height: 70px;
                font-size: 32px;
            }
            
            .whatsapp-button i {
                font-size: 32px;
            }
            
            .whatsapp-text {
                font-size: 12px;
                padding: 10px 15px;
                right: 80px;
            }
        }


/* 
.chat-flotante {
      position: fixed;
      right: 20px;    
      bottom: 24px;
      z-index: 9999;
    }

    .chat-boton {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: #ffffff; 
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 18px rgba(0,0,0,0.2);
      cursor: pointer;
      border: none;
      outline: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      animation: rebote 2s infinite;
    }

    .chat-boton:hover {
      transform: scale(1.1);
      box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    }

    .chat-icono {
      width: 70px;
      height: 70px;
      object-fit: contain;
    }

    @keyframes rebote {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }

    .chat-pulso {
      position: absolute;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.05); 
      animation: pulso 2.5s infinite;
      z-index: -1;
      left: 0;
      top: 0;
    }

    @keyframes pulso {
      0% { transform: scale(1); opacity: 0.6; }
      70% { transform: scale(1.6); opacity: 0; }
      100% { transform: scale(1.6); opacity: 0; }
    } */