@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
}

/* Prevenir scroll horizontal global */
.container, .container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

/* Asegurar que las secciones no generen scroll pero permitan ancho completo */
section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Container general para todas las secciones */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box;
}

/* Responsive para desktop grande */
@media (min-width: 1400px) {
    .about,
    .services,
    .blue-circle-section,
    .comentarios-section,
    .resenas-form-section,
    .ubicacion-section,
    .footer {
        padding-left: 8%;
        padding-right: 8%;
    }
    
    .home {
        padding: 0 8%;
    }
    
    .about-content,
    .gallery-container,
    .benefits-cards-vertical,
    .comentarios-grid,
    .resenas-form-section .container,
    .ubicacion-section .container,
    .footer-content {
        max-width: 1600px;
        padding: 60px 40px;
    }
    
    .valores-section .container {
        padding: 0;
    }
}

/* Para pantallas grandes, asegurar que no haya espacios laterales */
@media (min-width: 1200px) {
    .valores-section {
        padding: 4rem 0;
    }
    
    .valores-section .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Asegurar centrado perfecto en desktop */
@media (min-width: 901px) {
    .blue-circle-section,
    .comentarios-section,
    .resenas-form-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* Prevenir que las imágenes causen overflow */
img {
    max-width: 100%;
    height: auto;
}

body {
    background: #1f242d;
    color: #fff;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Header con navegación optimizada para desktop */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 5%;
  background: #000000;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.3s ease;
  min-height: 60px;
}

/* Efecto adicional cuando se hace scroll (opcional) */
.header.scrolled {
    background: rgba(31, 36, 45, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Logo optimizado */
.logo {
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    flex-shrink: 0; /* Evita que se comprima */
    min-width: 200px; /* Espacio mínimo garantizado */
    margin-left: 0; /* Eliminado el margen negativo */
}

/* Navegación de escritorio optimizada */
.navbar {
  display: flex;
  gap: 14px; /* Reducido de 25px a 18px para unir más los apartados */
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin-left: 0; /* Eliminado el margen negativo */
}

.navbar a {
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0;
    transition: .3s;
    position: relative;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
    white-space: nowrap;
    padding: 8px 12px; /* Aumentado el padding para mejor espaciado */
}

.navbar a:hover,
.navbar a.activo {
    color: #0ef;
}

/* ===== ESTILOS MEJORADOS PARA SUBMENÚS DESPLEGABLES ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
    position: relative;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
    white-space: nowrap;
    padding: 8px 12px; /* Aumentado el padding para consistencia */
}

.dropdown-toggle:hover,
.dropdown-toggle.activo {
    color: #0ef;
}

.dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 3px;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999 !important;
    border: 1px solid rgba(0, 238, 255, 0.3);
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block !important;
    padding: 14px 20px !important;
    color: #1f242d !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    animation: none !important;
    position: relative !important;
    white-space: nowrap !important;
}

.dropdown-menu a:last-child {
    border-bottom: none !important;
}

.dropdown-menu a:hover {
    background: rgba(0, 238, 255, 0.15) !important;
    color: #0ef !important;
    padding-left: 30px !important;
    transform: translateX(5px) !important;
}

/* Ajuste para el último submenú para que no se salga de pantalla */
.dropdown:last-of-type .dropdown-menu {
    right: 0;
    left: auto;
}

/* Asegurar que los dropdowns funcionen en desktop */
@media (min-width: 901px) {
    .dropdown {
        display: inline-block !important;
    }
    
    .dropdown-menu {
        display: block !important;
    }
}

/* Ocultar dropdowns en móvil */
@media (max-width: 900px) {
    .dropdown {
        display: none !important;
    }
}

/* Para pantallas grandes, ajustar aún más */
@media (min-width: 1200px) {
    .navbar {
        gap: 30px;
        margin-left: 0;
    }
    
    .navbar a {
        font-size: 15px;
        padding: 8px 12px;
    }
}

/* Para pantallas medianas */
@media (max-width: 1200px) and (min-width: 901px) {
    .navbar {
        gap: 20px;
        margin-left: 0;
    }
    
    .navbar a {
        font-size: 15px;
        padding: 8px 10px;
    }
}

/* Responsive para pantallas más pequeñas pero aún desktop */
@media (max-width: 1000px) {
    .logo {
        min-width: 180px;
    }
}

/* Hamburguesa oculta en escritorio */
.hamburger {
  display: none;
}

/* Menú móvil oculto en escritorio */
.mobile-menu {
  display: none;
}

.menu-overlay {
  display: none;
}

.home {
    position: relative;
    width: 100%;
    /* height: 100vh; */
    height: auto;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: #1f242d;
    overflow: hidden;
}

.home-content {
    max-width: 600px;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 span {
    color: #0ef;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    color: #fff;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 16px;
    color: #fff;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home-img img {
    max-width: 450px;
    margin: 80px auto 0 auto;
    display: block;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: .2s, 3s;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.social-media a:hover {
    background: #0ef;
    color: #1f242d;
    box-shadow: 0 0 20px #0ef;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #0077b6;
    border-radius: 40px;
    box-shadow: 0 0 10px #0077b6;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.5px;
    font-weight: 600;
    opacity: 1;
    z-index: 10;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.btn:hover {
    background: #005f99;
    transform: translateY(-2px);
}

/*KEYFRAMES ANIMATION */
@keyframes slideRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
    100% {
        transform: translateY(0);
    }
}

/*Carrusel*/
.gallery {
    width: 100%;
}

/* Ajustar el contenedor para mejor espaciado */
.gallery-container {
    align-items: center;
    height: 400px;
    display: flex;
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
    width: 100%;
}

.gallery-item {
    height: 200px;
    opacity: 0;
    position: absolute;
    transition: all 0.3s ease-in-out;
    width: 330px;
    z-index: 0;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* Remover hover de todas las gallery-items por defecto */
.gallery-item::before,
.gallery-item::after {
    opacity: 0;
    pointer-events: none;
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    opacity: 0; /* Desactivar hover por defecto */
}

/* Solo permitir hover en la tarjeta central (gallery-item-3) */
.gallery-item-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    pointer-events: auto;
}

.gallery-item-3::after {
    content: attr(data-title) '\A Ver más';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    white-space: pre-line;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 11;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    pointer-events: auto;
}

.gallery-item-3:hover::before {
    opacity: 1;
}

.gallery-item-3:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Desactivar cursor pointer en tarjetas laterales */
.gallery-item-2,
.gallery-item-4 {
    cursor: default;
}

/* Mantener cursor pointer solo en la central */
.gallery-item-3 {
    cursor: pointer;
}

/* Estilos específicos para cada terapia */
.gallery-item[data-title="Terapia Manual"]::after {
    content: 'Terapia Manual\A Ver más';
}

.gallery-item[data-title="Electroterapia"]::after {
    content: 'Electroterapia\A Ver más';
}

.gallery-item[data-title="Rehabilitación Postural"]::after {
    content: 'Rehabilitación Postural\A Ver más';
}

.gallery-item[data-title="Ejercicio Terapéutico"]::after {
    content: 'Ejercicio Terapéutico\A Ver más';
}

.gallery-item[data-title="Terapia General"]::after {
    content: 'Terapia General\A Ver más';
}

.gallery-item[data-title="Masajes Terapéuticos"]::after {
    content: 'Masajes Terapéuticos\A Ver más';
}

/* Ocultar solo las tarjetas laterales extremas */
.gallery-item-1,
.gallery-item-5,
.gallery-item-6 {
    display: none !important;
}

/* Mantener visibles las 3 tarjetas centrales */
.gallery-item-2 {
    left: 20%; /* Tarjeta izquierda */
    transform: translateX(-50%);
    height: 250px;
    opacity: 0.8;
    width: 380px;
    z-index: 1;
}

.gallery-item-3 {
    box-shadow: 2px 5px 33px 6px rgba(0, 0, 0, 0.35);
    height: 300px;
    opacity: 1;
    left: 50%; /* Tarjeta central */
    transform: translateX(-50%);
    width: 430px;
    z-index: 2;
}

.gallery-item-4 {
    left: 80%; /* Tarjeta derecha */
    transform: translateX(-50%);
    height: 250px;
    opacity: 0.8;
    width: 380px;
    z-index: 1;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    height: 100px;
}

.gallery-controls button {
    background: linear-gradient(135deg, #0077b6, #005f99);
    color: #fff !important;
    border: 2px solid #0ef;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3), 0 2px 8px rgba(0, 238, 255, 0.2);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 15px;
    margin: 0 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none;
    width: 50px;
    height: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-controls button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.gallery-controls button:hover {
    background: linear-gradient(135deg, #0ef, #00d4ff);
    color: #0077b6 !important;
    border-color: #0077b6;
    box-shadow: 0 6px 25px rgba(0, 238, 255, 0.4), 0 4px 15px rgba(0, 119, 182, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.gallery-controls button:hover::before {
    left: 100%;
}

.gallery-controls button:active {
    transform: translateY(0) scale(1.02);
    transition: transform 0.1s;
}

.gallery-controls-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 238, 255, 0.3);
}

.gallery-controls-previous {
    position: relative;
}

.gallery-controls-previous::before {
    display: none;
}

/* Remover los estilos ::after ya que ahora usamos innerHTML */
.gallery-controls-previous::after,
.gallery-controls-next::after {
    display: none;
}

/* Agregar efectos hover para las flechas */
.gallery-controls-previous:hover {
    transform: translateY(-2px) scale(1.05) translateX(-2px);
}

.gallery-controls-next:hover {
    transform: translateY(-2px) scale(1.05) translateX(2px);
}

.gallery-nav {
    bottom: -15px;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    position: absolute;
    width: 100%;
}

.gallery-nav li {
    background: #ccc;
    border-radius: 50%;
    height: 10px;
    margin: 0 16px;
    width: 10px;
}

.gallery-nav li.gallery-item-selected {
    background: #555;
}

/* About Section */
.about {
    padding: 60px 5%;
    background: #fff;
    color: #333;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
    opacity: 1;
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: translateX(-100px); /* Mover 100px hacia la izquierda (aumentado de -50px) */
    margin-left: -50px; /* Añadir margen negativo para mover aún más a la izquierda */
}

.blob-shape {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobAnimation 8s ease-in-out infinite;
}

.blob-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.bubble-image {
    position: absolute;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
}

.bubble-1 {
    width: 80px;
    height: 80px;
    top: -30px;
    left: -35px;
    background-image: url('image/fotoacercade.jpeg');
    animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               float 7s infinite ease-in-out;
    animation-delay: 0.3s, 0.3s;
}

.bubble-2 {
    width: 50px;
    height: 50px;
    bottom: -20px;
    right: -20px;
    background-image: url('image/fotoacercade.jpeg');
    animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               float 9s infinite ease-in-out;
    animation-delay: 0.5s, 0.5s;
}

.bubble-3 {
    width: 70px;
    height: 70px;
    top: 50%;
    left: -40px;
    background-image: url('image/fotoacercade.jpeg');
    animation: bubblePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               float 8s infinite ease-in-out;
    animation-delay: 0.7s, 0.7s;
}

@keyframes blobAnimation {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.about-text {
    flex: 1;
    padding: 20px;
    opacity: 0;
    transform: translateX(100px);
    animation: slideInFromRight 1s ease-out forwards;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-text h2 {
    font-size: 2.5rem;
    color: #0077b6;
    margin-bottom: 20px;
}

.about-text .main-desc {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-section {
    margin-bottom: 25px;
}

.about-section h3 {
    font-size: 1.5rem;
    color: #0077b6;
    margin-bottom: 10px;
}

.about-section p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .about-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .about-image {
        max-width: 60%; /* Aumentado de 50% a 60% para hacer el logo aún más grande */
    }
}

/* Services Section */
.services {
    padding: 60px 5%;
    background: #fff;
    color: #333;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.services .gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0077b6;
    margin: 0 auto 40px;
    text-transform: uppercase;
    width: fit-content;
    max-width: 100%;
}

.heading span {
    color: #0ef;
}

.services-instruction {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin: -20px auto 30px;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .services-instruction {
        font-size: 1rem;
        margin: -15px auto 25px;
        padding: 0 20px;
    }
}

/* ===== SECCIÓN BENEFICIOS - DISEÑO PROFESIONAL CON IMÁGENES ===== */

/* Contenedor principal de beneficios */
.blue-circle-section {
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 50%, #f0fdfc 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.blue-circle-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 119, 182, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 180, 216, 0.03) 0%, transparent 50%);
    z-index: 1;
}

/* Título de la sección */
.benefits-title {
    position: relative;
    z-index: 2;
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0 auto 3rem;
    text-transform: uppercase;
}

.benefits-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

/* Contenedor de tarjetas de beneficios */
.benefits-cards-vertical {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* Tarjetas individuales de beneficios */
.benefit-card-vertical {
    background: #ffffff;
    color: #0077b6;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.08);
    width: 150px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    padding: 15px 10px;
    border: 2px solid rgba(0, 119, 182, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo superior */
.benefit-card-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8, #0077b6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.benefit-card-vertical:hover::before {
    transform: scaleX(1);
}

/* Iconos de las tarjetas */
.benefit-card-vertical i {
    font-size: 2.5rem !important;
    margin-bottom: 8px;
    display: block;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #e6f7ff, #f0fdfc);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 119, 182, 0.1);
}

/* Estados hover y activo */
.benefit-card-vertical:hover,
.benefit-card-vertical.active {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 119, 182, 0.2);
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #ffffff;
    border-color: #0077b6;
}

.benefit-card-vertical:hover i,
.benefit-card-vertical.active i {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Fuerza el color blanco en todo momento para el texto de las cards de valores */
.valor-card .card-text,
.valor-card.active .card-text,
.valor-card:hover .card-text {
  color: #090000 !important;
}

/* Tarjeta expandida de información - LAYOUT MEJORADO */
.benefit-card-large-flex {
    display: none;
    max-width: 1000px;
    width: 100%;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.12);
    overflow: hidden;
    flex-direction: row;
    border: 1px solid rgba(0, 119, 182, 0.1);
    position: relative;
    z-index: 2;
    min-height: 300px;
}

.benefit-card-large-flex.active {
    display: flex;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Información de la tarjeta expandida */
.benefit-large-info {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #333;
    font-size: 1.1rem;
    background: #fff;
    text-align: left;
    line-height: 1.6;
    min-width: 0; /* Permite que el flex item se encoja */
}

.benefit-large-info h3 {
    margin: 0 0 15px 0;
    color: #0077b6;
    font-size: 1.5rem;
    font-weight: 700;
}

.benefit-large-info p {
    color: #4a5568;
    margin: 0;
}

/* Contenedor de imagen mejorado */
.benefit-large-img {
    flex: 0 0 350px; /* Ancho fijo para la imagen */
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

/* Mini imagen posicionada correctamente */
.benefit-large-img .mini-img {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.25);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #fff;
    z-index: 3;
}

/* ===== RESPONSIVE DESIGN MEJORADO ===== */

/* Tablets grandes */
@media (max-width: 1024px) {
    .benefit-card-large-flex {
        max-width: 95vw;
        margin: 25px 15px;
    }
    
    .benefit-large-img {
        flex: 0 0 300px;
        height: 280px;
    }
    
    .benefit-large-info {
        padding: 30px 25px;
    }
}

/* Tablets */
@media (max-width: 900px) {
    .benefit-card-large-flex {
        flex-direction: column;
        max-height: none;
    }
    
    .benefit-large-img {
        flex: none;
        width: 100%;
        height: 250px;
        order: 1; /* Imagen arriba */
    }
    
    .benefit-large-info {
        order: 2; /* Texto abajo */
        padding: 25px 20px;
        text-align: center;
    }
    
    .benefit-large-img .mini-img {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px; /* Se superpone al texto */
    }
}

/* Móviles */
@media (max-width: 768px) {
    .blue-circle-section {
        padding: 3rem 0;
    }
    
    .benefits-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .benefits-cards-vertical {
        gap: 15px;
        padding: 20px 10px;
    }
    
    .benefit-card-vertical {
        width: 130px;
        height: 140px;
        font-size: 0.9rem;
    }
    
    .benefit-card-vertical i {
        font-size: 2rem !important;
        width: 50px;
        height: 50px;
    }
    
    .benefit-card-large-flex {
        margin: 20px 10px;
    }
    
    .benefit-large-img {
        height: 200px;
    }
    
    .benefit-large-img .mini-img {
        width: 80px;
        height: 80px;
        bottom: -10px;
    }
    
    .benefit-large-info {
        padding: 30px 20px 20px 20px; /* Más padding top para la mini imagen */
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .benefits-title {
        font-size: 1.8rem;
    }
    
    .benefits-cards-vertical {
        gap: 10px;
    }
    
    .benefit-card-vertical {
        width: 110px;
        height: 120px;
        font-size: 0.8rem;
        padding: 10px 5px;
    }
    
    .benefit-card-vertical i {
        font-size: 1.8rem !important;
        width: 45px;
        height: 45px;
    }
    
    .benefit-large-img {
        height: 180px;
    }
    
    .benefit-large-img .mini-img {
        width: 70px;
        height: 70px;
    }
    
    .benefit-large-info {
        padding: 25px 15px 15px 15px;
    }
    
    .benefit-large-info h3 {
        font-size: 1.3rem;
    }
}

/* Mejoras para la sección de valores - Diseño más profesional */
.valores-section {
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 50%, #f0fdfc 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.valores-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 119, 182, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 180, 216, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.valores-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.valores-section .row {
    justify-content: center;
    align-items: stretch;
    margin: 0;
}

.valores-section h2 {
    color: #2d3748;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.valores-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

.valores-section p {
    color: #4a5568;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.6;
}

.valor-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    border: 1px solid rgba(0, 119, 182, 0.1);
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8, #0077b6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.valor-card:hover::before {
    transform: scaleX(1);
}

.valor-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0, 119, 182, 0.15);
    border-color: rgba(0, 119, 182, 0.2);
}

.valor-card .card-inner {
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.valor-card .card-icon {
    font-size: 3.5rem;
    color: #0077b6;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #e6f7ff, #f0fdfc);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 119, 182, 0.1);
}

.valor-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #ffffff;
    border-color: #0077b6;
}

.valor-card .card-title {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.valor-card:hover .card-title {
    color: #0077b6;
}

.valor-card .card-text {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
    opacity: 1;
    max-height: none;
    overflow: visible;
    text-align: center;
    padding: 0;
    width: 100%;
}

.valor-card:hover .card-text {
    color: #2d3748;
}

.card-icon {
    font-size: 3.5rem;
    color: #0077b6;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.card-title {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    transition: color 0.3s ease;
}

.card-text {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .valores-section {
        padding: 2rem 0;
    }

    .valor-card {
        min-height: 180px;
        max-width: 90%;
    }

    .valor-card:hover {
        transform: translateY(-10px);
    }

    .card-icon {
        font-size: 3rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-text {
        font-size: 1rem;
    }

    .row.justify-content-center {
        flex-direction: column;
        align-items: center;
    }

    .col-12.col-md-6.col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

@media (min-width: 769px) {
    .row.justify-content-center {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
    }

    .col-12.col-md-6.col-lg-4 {
        flex: 0 0 auto;
        width: 33.33%; /* Ajuste para 3 por fila en lg */
        max-width: 600px;
    }
}

/* Asegura que las animaciones sean suaves en touch devices */
@media (hover: none) and (pointer: coarse) {
    .valor-card:active {
        transform: translateY(-15px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .valor-card:active .card-icon {
        transform: scale(1.3);
        color: #fff;
    }

    .valor-card:active .card-text {
        max-height: 500px;
        opacity: 1;
    }

    .valor-card:active .card-title {
        color: #e0e0e0;
    }
}

/* Comentarios Section - Nuevo diseño */
.comentarios-section {
    position: fixed;
    top: auto;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%) !important;
    padding: 80px 0 !important;
    overflow: hidden;
    margin: 0 !important;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box !important;
    z-index: 1;
    transform: none !important;
}

.comentarios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 119, 182, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 119, 182, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.comentarios-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.comentarios-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.comentarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
}

.comentario-card {
    perspective: 1000px;
    height: 350px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.1);
    
}

.comentario-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.1);
}

.card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
}

.card-back {
    background: linear-gradient(135deg, #0077b6 0%, #005f99 100%);
    color: white;
    transform: rotateY(180deg);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 4px solid #0077b6;
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0077b6;
    margin-bottom: 0.5rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.rating-stars i {
    font-size: 1.2rem;
    color: #ffc107;
}

.rating-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0077b6;
}

.comment-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    font-family: serif;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.rating-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .comentarios-section {
        padding: 60px 0;
    }
    
    .comentarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comentario-card {
        height: 300px;
    }
    
    .card-front,
    .card-back {
        padding: 1.5rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 1.1rem;
    }
    
    .comment-text {
        font-size: 0.9rem;
    }
}

/* Responsive: Mostrar sección comentarios en móvil */
@media (max-width: 600px) {
    .comentarios-section {
        display: flex !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        padding: 30px 0 !important;
        margin: 0 !important;
        min-height: 50vh !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%) !important;
        box-sizing: border-box !important;
        z-index: 1 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .comentarios-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 20px 10px !important;
        display: grid !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .comentario-card {
        height: 280px;
    }
    
    .quote-icon {
        font-size: 3rem;
    }
    
    .user-name {
        font-size: 1rem;
    }
    
    .rating-number {
        font-size: 1rem;
    }
}

/* Comentarios Section - Nuevo diseño */
.comentarios-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.comentarios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 119, 182, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 119, 182, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.comentarios-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.comentarios-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.comentarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
}

.comentario-card {
    perspective: 1000px;
    height: 350px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.1);
}

.comentario-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.1);
}

.card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
}

.card-back {
    background: linear-gradient(135deg, #0077b6 0%, #005f99 100%);
    color: white;
    transform: rotateY(180deg);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 4px solid #0077b6;
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0077b6;
    margin-bottom: 0.5rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.rating-stars i {
    font-size: 1.2rem;
    color: #ffc107;
}

.rating-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0077b6;
}

.comment-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    font-family: serif;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.rating-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .comentarios-section {
        padding: 60px 0;
    }
    
    .comentarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comentario-card {
        height: 300px;
    }
    
    .card-front,
    .card-back {
        padding: 1.5rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 1.1rem;
    }
    
    .comment-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .comentarios-section {
        position: fixed;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        padding: 30px 0 !important;
        margin: 0 !important;
    }
    
    .comentarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .comentario-card {
        height: 280px;
    }
    
    .quote-icon {
        font-size: 3rem;
    }
    
    .user-name {
        font-size: 1rem;
    }
    
    .rating-number {
        font-size: 1rem;
    }
}

/* Comentarios Section - Nuevo diseño */
.comentarios-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f8f9fa 100%);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.comentarios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 119, 182, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 119, 182, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.comentarios-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.comentarios-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.comentarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
}

.comentario-card {
    perspective: 1000px;
    height: 350px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.1);
}

.comentario-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 119, 182, 0.1);
}

.card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
}

.card-back {
    background: linear-gradient(135deg, #0077b6 0%, #005f99 100%);
    color: white;
    transform: rotateY(180deg);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 4px solid #0077b6;
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0077b6;
    margin-bottom: 0.5rem;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.rating-stars i {
    font-size: 1.2rem;
    color: #ffc107;
}

.rating-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0077b6;
}

.comment-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    font-family: serif;
}

.comment-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.rating-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .comentarios-section {
        padding: 60px 0;
    }
    
    .comentarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comentario-card {
        height: 300px;
    }
    
    .card-front,
    .card-back {
        padding: 1.5rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 1.1rem;
    }
    
    .comment-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .comentarios-section {
        position: fixed;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        padding: 30px 0 !important;
        margin: 0 !important;
    }
    
    .comentarios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 20px 10px;
    }
}

@media (max-width: 480px) {
    .comentario-card {
        height: 280px;
    }
    
    .quote-icon {
        font-size: 3rem;
    }
    
    .user-name {
        font-size: 1rem;
    }
    
    .rating-number {
        font-size: 1rem;
    }
}

/* RESEÑAS */
.resenas-form-section {
    position: fixed;
    top: auto;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    min-height: 80vh;
    margin: 0 !important;
    padding: 80px 0 !important;
    background: #2596BE;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    box-sizing: border-box !important;
    z-index: 1;
    transform: none !important;
}

.resenas-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.resenas-form-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    padding: 40px 20px;
}

.resenas-form-section h2 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    text-align: center;
}

.resenas-form-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

.resenas-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transition: box-shadow 0.3s;
    border: 1.5px solid #eaf6fb;
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.92) translateY(40px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.resenas-form input,
.resenas-form textarea {
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    background: #f8fafc;
    font-size: 1.05rem;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #003566;
    box-shadow: 0 1px 4px rgba(0,119,182,0.04);
}

.resenas-form input:focus,
.resenas-form textarea:focus {
    border-color: #0077b6;
    outline: none;
    box-shadow: 0 2px 12px rgba(0,119,182,0.10);
}

.resenas-form textarea {
    min-height: 90px;
    resize: vertical;
}

.resenas-form .rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0;
    margin-top: 2px;
    position: relative;
}

.resenas-form .rating input {
    display: none;
}

.resenas-form .rating label {
    cursor: pointer;
    width: 38px;
    height: 38px;
    font-size: 2.2rem;
    color: #e0e0e0;
    transition: color 0.2s, transform 0.2s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

.resenas-form .rating label:hover,
.resenas-form .rating label:hover ~ label,
.resenas-form .rating input:checked ~ label {
    color: #f5b301;
    transform: scale(1.15) rotate(-8deg);
    text-shadow: 0 2px 8px #f5b30144;
}

.resenas-form .rating label:active {
    transform: scale(1.2) rotate(-12deg);
}

.resenas-form button[type="submit"] {
    background: linear-gradient(90deg, #0077b6 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 22px;
    padding: 10px 0;
    width: 130px;
    align-self: center; /* Cambiado de flex-end a center */
    font-size: 1.08rem;
    margin: 0 auto; /* Añadir esta línea */
    display: block; /* Añadir esta línea */
    box-shadow: 0 2px 8px rgba(0,119,182,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}

.resenas-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #0077b6 60%, #00b894 100%);
    box-shadow: 0 4px 16px rgba(0,119,182,0.18);
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 600px) {
    .resenas-form-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 30px 5%;
    }
    .resenas-form {
        padding: 22px 8px 18px 8px;
        max-width: 95vw;
    }
    .resenas-form-section h2 {
        font-size: 2rem;
    }
    .resenas-form-section p {
        font-size: 1rem;
    }
}


/* Footer Styles */
/* Footer */
.footer {
    background-color: #000000;
    color: #fff;
    position: relative;
    padding-top: 100px;
    padding-bottom: 20px;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px;
    gap: 30px;
}

.footer-logo {
    flex: 1 1 200px;
    text-align: center;
    margin-bottom: 0;
}

.footer-logo img {
    max-width: 100px;
    height: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.footer-links {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.links-column {
    text-align: center;
}

.links-column h4 {
    font-size: 18px;
    margin-bottom: 3px;
    color: #fff;
}

.links-column ul {
    list-style: none;
    padding: 0;
}

.links-column li {
    margin-bottom: 3px;
}

.links-column a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.links-column a:hover {
    text-decoration: underline;
}

.footer-social {
    flex: 1 1 200px;
    text-align: center;
    margin-top: 0;
}

.footer-social h4 {
    font-size: 18px;
    margin-bottom: 3px;
    color: #fff;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn i {
    font-size: 18px;
}

.social-btn.instagram {
    background-color: #E4405F;
}

.social-btn.facebook {
    background-color: #3B5998;
}

.social-btn.cellphone {
    background-color: #0077b6;
}

.social-btn.ubication {
    background-color: #d60f08;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom-links h3 {
    margin: 0;
    font-size: inherit;
}

.footer-bottom-links a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

.call-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}

.call-overlay.active {
    display: flex;
}

.call-box {
    background-color: #000;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: 1px solid #fff;
}

.call-overlay.active .call-box {
    transform: scale(1);
    opacity: 1;
}

.call-logo {
    font-size: 30px;
    color: #fff;
    margin-bottom: 15px;
    display: block;
}

.call-box p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
}

.btn-call {
    background-color: #0077b6;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
    display: inline-block;
}

.btn-call:hover {
    background-color: #003566;
    box-shadow: 0 6px 20px rgba(0, 53, 102, 0.6);
    transform: translateY(-2px);
}

/* Media Query para pantallas responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }
    .footer-logo {
        margin-bottom: 0;
    }
    .footer-logo img {
        margin-bottom: 2px;
    }
    .footer-logo h3 {
        margin-bottom: 5px;
    }
    .footer-links {
        margin-top: 0;
    }
    .links-column {
        margin-top: 0;
    }
    .footer-social {
        margin-top: 0;
    }
    .footer {
        padding: 80px 15px 15px;
    }
}




.home .btn {
    background: #0077ff;
    padding: 14px 38px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 0 18px 0 #00c3ff, 0 0 8px 2px #0077ff;
    text-decoration: none;
    color: #fff !important;
    border: 2.5px solid #00c3ff;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
    margin-top: 10px;
}

.home .btn:hover {
    background: #0056b3;
    box-shadow: 0 0 28px 0 #00c3ff, 0 0 16px 4px #0077ff;
    border-color: #00e1ff;
}

/* Mejora del diseño de la sección de reseñas */
.resenas-form-section {
    position: relative;
    min-height: 80vh;
    width: 100vw;
    max-width: none;
    margin: 0;
    margin-left: calc(-50vw + 50%);
    padding: 80px 5%;
    background: linear-gradient(135deg, #0077b6 0%, #005f99 50%, #003d66 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    box-sizing: border-box;
}

.resenas-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.resenas-form-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
    padding: 40px 20px;
}

.resenas-form-section h2 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.18);
    text-align: center;
}

.resenas-form-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.18rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

.resenas-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transition: box-shadow 0.3s;
    border: 1.5px solid #eaf6fb;
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.92) translateY(40px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.resenas-form input,
.resenas-form textarea {
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    background: #f8fafc;
    font-size: 1.05rem;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #003566;
    box-shadow: 0 1px 4px rgba(0,119,182,0.04);
}

.resenas-form input:focus,
.resenas-form textarea:focus {
    border-color: #0077b6;
    outline: none;
    box-shadow: 0 2px 12px rgba(0,119,182,0.10);
}

.resenas-form textarea {
    min-height: 90px;
    resize: vertical;
}

.resenas-form .rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 2px;
    margin-bottom: 0;
    margin-top: 2px;
 position: relative;
}

.resenas-form .rating input {
    display: none;
}

.resenas-form .rating label {
    cursor: pointer;
    width: 38px;
    height: 38px;
    font-size: 2.2rem;
    color: #e0e0e0;
    transition: color 0.2s, transform 0.2s;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
}

.resenas-form .rating label:hover,
.resenas-form .rating label:hover ~ label,
.resenas-form .rating input:checked ~ label {
    color: #f5b301;
    transform: scale(1.15) rotate(-8deg);
    text-shadow: 0 2px 8px #f5b30144;
}

.resenas-form .rating label:active {
    transform: scale(1.2) rotate(-12deg);
}

.resenas-form button[type="submit"] {
    background: linear-gradient(90deg,  #0077b6 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 22px;
    padding: 10px 0;
    width: 130px;
    align-self: flex-end;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(0,119,182,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}

.resenas-form button[type="submit"]:hover {
    background: linear-gradient(90deg,#00b894  60%);
    box-shadow: 0 4px 16px rgba(0,119,182,0.18);
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 600px) {
    .resenas-form-section {
        padding: 30px 0;
    }
    .resenas-form {
        padding: 22px 8px 18px 8px;
        max-width: 98vw;
    }
    .resenas-form-section h2 {
        font-size: 2rem;
    }
    .resenas-form-section p {
        font-size: 1rem;
    }
}

/* Modal de servicios mejorado - CORRECCIONES */
.servicio-info-card {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000 !important; /* Aumentar z-index */
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5) !important; /* Asegurar fondo visible */
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.servicio-info-card.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.servicio-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: overlayPulse 0.5s ease-out;
}

.servicio-info-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    background: #fff !important;
    border-radius: 25px;
    overflow: visible !important; /* Cambiar de hidden a visible */
    box-shadow: 
        0 25px 50px rgba(0, 119, 182, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: scale(1) !important; /* Forzar escala normal */
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 10001 !important;
}

/* Asegurar que el header sea visible */
.servicio-info-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    z-index: 1;
}

.servicio-info-img {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.servicio-info-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.servicio-info-card.active .servicio-info-img img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 119, 182, 0.3), rgba(0, 238, 255, 0.2));
}

/* Asegurar visibilidad del badge */
.servicio-info-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ef, #0077b6) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 238, 255, 0.4);
    animation: badgePulse 2s infinite;
    z-index: 10001 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mejorar visibilidad del botón de cerrar */
.servicio-info-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #0077b6 !important;
    z-index: 10002 !important; /* Z-index muy alto */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
}

.servicio-info-close:hover {
    background: #0077b6;
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

/* Asegurar que el cuerpo del modal sea visible */
.servicio-info-body {
    padding: 30px 25px;
    background: linear-gradient(180deg, #fff 0%, #f8fffe 100%);
    position: relative;
    z-index: 1;
}

.servicio-info-title {
    text-align: center;
    margin-bottom: 20px;
}

.servicio-info-title h3 {
    font-size: 1.6rem;
    color: #0077b6;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0ef, #0077b6);
    margin: 0 auto;
    border-radius: 2px;
    animation: underlineGrow 0.8s ease-out 0.3s both;
}

.servicio-info-description {
    margin-bottom: 25px;
}

.servicio-info-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    margin: 0;
}

.servicio-info-features {
    margin-bottom: 25px;
}

/* Forzar visibilidad de elementos con animación */
.feature-item {
    display: flex !important;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    opacity: 1 !important; /* Forzar opacidad */
    transform: translateX(0) !important; /* Forzar posición */
    animation: featureSlideIn 0.6s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.4s; }
.feature-item:nth-child(2) { animation-delay: 0.5s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

.feature-item i {
    color: #0ef;
    font-size: 1.1rem;
    margin-right: 12px;
    width: 20px;
}

.feature-item span {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Asegurar visibilidad de botones */
.servicio-info-actions {
    display: flex !important;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.btn-agendar,
.btn-info {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    opacity: 1 !important; /* Forzar opacidad */
    transform: translateY(0) !important; /* Forzar posición */
    visibility: visible !important;
}

.btn-agendar {
    background: linear-gradient(135deg, #0077b6, #005f99);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-agendar:hover {
    background: linear-gradient(135deg, #0ef, #00d4ff);
    color: #0077b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 238, 255, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    max-width: 200px;
}

.btn-info:hover {
    background: linear-gradient(135deg, #20ba5a, #0f7a6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Animaciones más confiables */
@keyframes modalFadeIn {
    from { 
        opacity: 0;
        visibility: hidden;
    }
    to { 
        opacity: 1;
        visibility: visible;
    }
}

@keyframes overlayPulse {
    0% { opacity: 0; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes modalSlideUp {
    0% {
        transform: scale(0.8) translateY(60px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes featureSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes buttonSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive mejorado */
@media screen and (max-width: 480px) {
    .servicio-info-content {
        width: 95% !important;
        max-width: 380px;
        margin: 10px;
    }
    
    .servicio-info-body {
        padding: 25px 20px;
    }
    
    .servicio-info-header {
        height: 180px;
    }
    
    .servicio-info-title h3 {
        font-size: 1.4rem;
    }
    
    .servicio-info-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-agendar,
    .btn-info {
        flex: none !important;
        width: 100% !important;
        max-width: 250px;
        margin: 0 auto;
        text-align: center;
        justify-content: center;
    }
    
    /* Asegurar que todos los elementos sean visibles en móvil */
    .servicio-info-close,
    .servicio-info-badge,
    .feature-item,
    .btn-info {
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
}

@media screen and (max-width: 380px) {
    .servicio-info-content {
        width: 98% !important;
        margin: 5px;
    }
    
    .servicio-info-header {
        height: 160px;
    }
    
    .servicio-info-body {
        padding: 20px 15px;
    }
    
    .servicio-info-title h3 {
        font-size: 1.3rem;
    }
    
    .servicio-info-description p {
        font-size: 0.95rem;
    }
    
    .btn-agendar,
    .btn-info {
        width: 100% !important;
        max-width: 220px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Animación de aparición para secciones con scroll-animate */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Animaciones específicas para diferentes tipos de secciones */
.scroll-animate.services {
  transform: translateY(30px) scale(0.98);
}

.scroll-animate.about {
  transform: translateX(-30px) scale(0.98);
}

.scroll-animate.blue-circle-section {
  transform: translateY(40px) scale(0.96);
}

.scroll-animate.valores-section {
  transform: translateY(30px) scale(0.98);
}



.scroll-animate.comentarios-section {
  transform: translateY(40px) scale(0.97);
}

.scroll-animate.resenas-form-section {
  transform: translateY(50px) scale(0.95);
}

.scroll-animate.ubicacion-section {
  transform: translateY(30px) scale(0.98);
}

/* Animaciones más suaves para móvil */
@media (max-width: 768px) {
  .scroll-animate {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .scroll-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  
  /* Reducir movimientos en móvil para mejor rendimiento */
  .scroll-animate.about {
    transform: translateY(25px) scale(0.98);
  }
  

}

/* Animación de entrada escalonada para elementos dentro de las secciones */
.scroll-animate.visible .valor-card {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

.scroll-animate.visible .valor-card:nth-child(1) { animation-delay: 0.1s; }
.scroll-animate.visible .valor-card:nth-child(2) { animation-delay: 0.2s; }
.scroll-animate.visible .valor-card:nth-child(3) { animation-delay: 0.3s; }
.scroll-animate.visible .valor-card:nth-child(4) { animation-delay: 0.4s; }
.scroll-animate.visible .valor-card:nth-child(5) { animation-delay: 0.5s; }

.scroll-animate.visible .benefit-card-vertical {
  animation: slideInLeft 0.5s ease-out forwards;
  opacity: 0;
}

.scroll-animate.visible .benefit-card-vertical:nth-child(1) { animation-delay: 0.1s; }
.scroll-animate.visible .benefit-card-vertical:nth-child(2) { animation-delay: 0.2s; }
.scroll-animate.visible .benefit-card-vertical:nth-child(3) { animation-delay: 0.3s; }
.scroll-animate.visible .benefit-card-vertical:nth-child(4) { animation-delay: 0.4s; }
.scroll-animate.visible .benefit-card-vertical:nth-child(5) { animation-delay: 0.5s; }
.scroll-animate.visible .benefit-card-vertical:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animación para la sección de ubicación */
.scroll-animate.visible .ubicacion-container {
  animation: zoomIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Sección Servicios */
.services .heading {
    position: relative;
}

.services .heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

/* Sección Acerca de */
.about h2 {
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

/* Sección Beneficios */
.benefits-title {
    position: relative;
    text-align: center;
}

.benefits-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

/* Sección Nuestro Equipo */
.equipo-title {
    position: relative;
    text-align: center; /* Asegurar que el título esté centrado */
}

.equipo-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%; /* Cambiar de 0 a 50% para centrar */
    transform: translateX(-50%); /* Agregar transform para centrar perfectamente */
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

/* Sección Comentarios */
.comentarios-title {
    position: relative;
}

.comentarios-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

/* Sección Reseñas */
.resenas-form-section h2 {
    position: relative;
}

.resenas-form-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f5b301, #ffc107);
    border-radius: 2px;
}

/* Sección Ubicación */
.ubicacion-section h1 {
    position: relative;
}

.ubicacion-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
}

/* Responsive - Ajustar líneas en móvil */
@media (max-width: 768px) {
    /* .home h1::after, */
    .services .heading::after,
    .benefits-title::after,
    .valores-section h2::after,
    .comentarios-title::after,
    .resenas-form-section h2::after,
    .ubicacion-section h1::after {
        width: 60px;
        height: 3px;
    }
    
    .about h2::after,
    .equipo-title::after {
        width: 60px;
        height: 3px;
    }
}

/* Estilos para la sección Nuestro Equipo */
.nuestro-equipo-section { 
     position: relative; 
     width: 100%; 
     background: #23293a; 
     color: #fff; 
     min-height: calc(100vh - 60px); 
     display: flex; 
     align-items: center; 
     justify-content: center; 
     padding: 60px 0; 
     z-index: 2; 
     margin-top: 15px; 
 } 
 
 .nuestro-equipo-section .equipo-bg { 
     position: absolute; 
     top: 0; 
     left: 0; 
     right: 0; /* Extiende hasta los bordes */ 
     width: 100%; 
     height: 100%; 
     background: rgba(20,25,40,0.82); 
     z-index: 1; 
 } 
 
 .equipo-container { 
     width: 100%; 
     max-width: 1200px; 
     margin: 0 auto; 
     padding: 0 24px; 
     display: flex; 
     flex-direction: row; 
     align-items: center; 
     justify-content: center; 
     gap: 48px; 
     position: relative; 
     z-index: 2; 
     box-sizing: border-box; 
 } 
 
 .equipo-content { 
     flex: 1 1 400px; 
     display: flex; 
     flex-direction: column; 
     align-items: flex-start; 
     justify-content: center; 
     text-align: left; 
     min-width: 280px; 
 } 
 
 .equipo-title { 
     font-size: 2.8rem; 
     font-weight: 800; 
     margin-bottom: 18px; 
     letter-spacing: 1px; 
     color: #fff; 
     text-shadow: 0 2px 12px rgba(0,0,0,0.18); 
 } 
 
 .equipo-desc { 
     max-width: 600px; 
     font-size: 1.15rem; 
     margin-bottom: 28px; 
     opacity: 0.92; 
     color: #e0e0e0; 
     line-height: 1.6; 
 } 
 
 .equipo-btn { 
     background: #0077ff; 
     padding: 14px 38px; 
     font-size: 1.1rem; 
     font-weight: 700; 
     border-radius: 30px; 
     box-shadow: 0 0 18px 0 #00c3ff, 0 0 8px 2px #0077ff; 
     text-decoration: none; 
     color: #fff !important; 
     border: 2.5px solid #00c3ff; 
     transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; 
     margin-top: 10px; 
 } 
 
 .equipo-btn:hover { 
     background: #0056b3; 
     box-shadow: 0 0 28px 0 #00c3ff, 0 0 16px 4px #0077ff; 
     border-color: #00e1ff; 
 } 
 
 .equipo-img-mockup { 
     flex: 1 1 350px; 
     display: flex; 
     align-items: center; 
     justify-content: center; 
     min-width: 260px; 
     max-width: 480px; 
 } 
 
 .equipo-img-mockup img { 
     width: 100%; 
     max-width: 420px; 
     border-radius: 18px; 
     box-shadow: 0 8px 32px rgba(0,0,0,0.28); 
     object-fit: cover; 
     background: #181c24; 
 } 
 
 @media (max-width: 900px) { 
     .equipo-container { 
         flex-direction: column; 
         gap: 28px; 
         padding: 0 8px; 
     } 
     
     /* Reorganizar elementos para móvil: título, foto, información, botón */
     .equipo-content { 
         align-items: center; 
         text-align: center;
         order: 1; /* Título e información después de la foto */
     } 
     
     .equipo-img-mockup { 
         max-width: 98vw;
         order: 0; /* Foto primero después del título */
     } 
     
     .equipo-img-mockup img { 
         max-width: 98vw; 
     } 
     
     /* Reorganizar contenido interno */
     .equipo-title {
         order: -1; /* Título al principio */
         margin-bottom: 20px;
     }
     
     .equipo-desc {
         order: 1; /* Descripción después de la foto */
         margin-bottom: 20px;
     }
     
     .equipo-btn {
         order: 2; /* Botón al final */
     }
     
     .nuestro-equipo-section { 
         padding: 38px 0; 
     } 
     
     .equipo-title { 
         font-size: 2.1rem; 
     } 
 } 
 
 @media (max-width: 600px) { 
     .equipo-title { 
         font-size: 1.45rem; 
     } 
     .equipo-desc { 
         font-size: 1rem; 
     } 
     .equipo-btn { 
         font-size: 1rem; 
         padding: 10px 22px; 
     } 
 }

/* Estilos principales de la sección ubicación */
.ubicacion-section {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #f8fffe 0%, #ffffff 100%);
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.ubicacion-section h1 {
    color: #000;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-family: inherit; /* Usa la fuente global */
}

.ubicacion-section p {
    color: #000;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-family: inherit;
}

.ubicacion-section .container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.ubicacion-container {
    width: 100%;
    max-width: 100%;
}

.ubicacion-container .row {
    margin: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.info-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.1);
    border: 1px solid rgba(0, 119, 182, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 119, 182, 0.15);
}

.info-titulo {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-texto {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.icon-info {
    color: #0077b6;
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.mapa-link iframe {
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.1);
    transition: all 0.3s ease;
}

.mapa-link:hover iframe {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 119, 182, 0.15);
}

/* Botón Tour Virtual */
.tour-virtual-btn {
    background-color: #0077b6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.4);
}

.tour-virtual-btn:hover {
    background-color: #003566;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 53, 102, 0.6);
}

/* Modal de video */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100001;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 8px;
    display: block;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    z-index: 100003;
    transition: background 0.3s, transform 0.2s;
}

.close-modal:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* ===== MEJORAS RESPONSIVE PARA MÓVILES ===== */

/* Responsive mejorado para todas las secciones */
@media (max-width: 1200px) {
    .about, .services, .blue-circle-section, .comentarios-section {
        padding: 50px 3%;
    }
    
    .about-content, .comentarios-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .about, .services, .blue-circle-section, .comentarios-section {
        padding: 40px 2%;
    }
    
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .about, .services, .blue-circle-section, .comentarios-section {
        padding: 30px 1%;
    }
}

/* Header y navegación mejorados */
@media (max-width: 768px) {
    .header {
        padding: 8px 5%;
        height: 60px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo img {
        height: 35px !important;
    }
}

/* Sección Home optimizada para móviles */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        padding: 0px 5% 20px; /* Eliminado completamente el padding superior */
        height: auto;
        text-align: center;
    }
    
    .home-content {
        max-width: 100%;
        order: 2;
        margin-top: -30px; /* Aumentado de -10px a -30px para subir más la información */
    }
    
    .home-content h3 {
        font-size: 24px;
    }
    
    .home-content h1 {
        font-size: 36px;
        margin: 10px 0;
    }
    
    .home-content p {
        font-size: 14px;
        margin: 15px 0;
        line-height: 1.5;
    }
    
    .home-img {
        order: 1;
        margin-bottom: -5px;
        margin-top: -40px; /* Mantener la imagen en su posición actual */
    }
    
    .home-img img {
        max-width: 350px;
    }
    
    .social-media {
        justify-content: center;
        margin: 15px 0;
    }
    
    .social-media a {
        width: 35px;
        height: 35px;
        margin: 0 8px;
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14px;
        margin-top: 10px;
    }
}

/* Para pantallas muy pequeñas (móviles en vertical) */
@media (max-width: 480px) {
    .home {
        padding: 0px 5% 15px;
    }
    
    .home-content {
        margin-top: -35px; /* Aumentado de -15px a -35px para subir más la información */
    }
    
    .home-img {
        margin-bottom: -8px;
        margin-top: 20px; /* Cambiado de -45px a 20px para mover el logo más abajo */
    }
    
    .home-img img {
        max-width: 400px; /* Aumentado de 320px a 400px para hacer el logo más grande */
    }
    
    .social-media {
        margin: 12px 0;
    }
}

/* Servicios (Carrusel) mejorado para móviles */
@media (max-width: 768px) {
    .services {
        padding: 40px 5%;
    }
    
    .heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .gallery-container {
        height: 300px;
        max-width: 100%;
    }
    
    .gallery-item {
        height: 150px;
        width: 250px;
    }
    
    .gallery-item-1,
    .gallery-item-5 {
        display: none; /* Ocultar elementos laterales en móvil */
    }
    
    .gallery-item-2,
    .gallery-item-4 {
        height: 180px;
        width: 280px;
    }
    
    .gallery-item-3 {
        height: 220px;
        width: 320px;
    }
    
    .gallery-controls {
        margin: 20px 0;
        height: 60px;
    }
    
    .gallery-controls button {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 50px;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        height: 120px;
        width: 200px;
    }
    
    .gallery-item-2,
    .gallery-item-4 {
        height: 140px;
        width: 220px;
    }
    
    .gallery-item-3 {
        height: 160px;
        width: 250px;
    }
}

/* Sección About mejorada */
@media (max-width: 768px) {
    .about {
        padding: 60px 5%;
        display: flex;
        justify-content: center; /* Volver a centrar */
        align-items: center;
    }
    
    .about-content {
        gap: 30px;
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        max-width: 100%;
        width: 100%;
        margin: 0 auto; /* Centrar el contenedor completo */
        transform: none; /* Quitar el translateX para centrar */
    }
    
    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .about-text .main-desc {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .about-section p {
        font-size: 0.95rem;
    }
    
    /* Hacer la imagen estática y en forma de mancha para móvil */
    .blob-shape {
        border-radius: 50% !important;
        animation: none !important;
        overflow: visible !important;
    }
    
    .blob-shape img {
        object-fit: contain !important;
        object-position: center !important;
        width: 100% !important;
        height: 100% !important;
        clip-path: ellipse(45% 40% at 50% 50%) !important;
    }
    
    .bubble-1,
    .bubble-2,
    .bubble-3 {
        display: none;
        animation: none !important;
    }
    
    .about-image {
        animation: none !important;
        margin: 0 auto; /* Centrar la imagen */
        transform: none; /* Quitar el translateX de la imagen */
    }
    
    .about-image img {
        max-width: 80%;
    }
}

/* Beneficios mejorados para móviles */
@media (max-width: 768px) {
    .blue-circle-section {
        padding: 40px 5%;
    }
    
    .benefits-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .benefits-cards-vertical {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .benefit-card-vertical {
        width: 110px;
        height: 120px;
        font-size: 0.85rem;
        padding: 5px;
    }
    
    .benefit-card-vertical i {
        font-size: 1.8rem !important;
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .benefits-cards-vertical {
        gap: 8px;
    }
    
    .benefit-card-vertical {
        width: 100px;
        height: 110px;
        font-size: 0.75rem;
    }
    
    .benefit-card-vertical i {
        font-size: 1.5rem !important;
    }
}

/* Valores mejorados para móviles */
@media (max-width: 768px) {
    .valores-section {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 40px 0;
    }
    
    .valores-section h2 {
        font-size: 1.8rem;
    }
    
    .valores-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .valores-section .row {
        flex-wrap: wrap !important;
        overflow-x: hidden !important;
        padding: 0 1rem;
    }
    
    .valores-section .col-12 {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .valor-card {
        max-width: 100%;
        margin: 0 auto 1rem auto;
        min-height: 60px;
    }
    
    .valor-card .card-text {
    color: #060000 !important;
}
    
    .valor-card .card-body {
        padding: 1rem;
    }
    
    .valor-card .card-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .valor-card .card-title {
        font-size: 1rem;
        margin-bottom: 0;
    }
}



/* Formulario de reseñas mejorado */
@media (max-width: 768px) {
    .resenas-form-section {
        padding: 40px 5%;
        min-height: 50vh;
    }
    
    .resenas-form-section h2 {
        font-size: 1.8rem;
    }
    
    .resenas-form-section p {
        font-size: 1rem;
    }
    
    .resenas-form {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .resenas-form .form-control {
        margin-bottom: 15px;
        font-size: 14px;
        padding: 10px;
    }
    
    .rating {
        justify-content: center;
        margin: 15px 0;
    }
    
    .rating label {
        font-size: 1.8rem;
    }
}

/* Ubicación mejorada para móviles */
@media (max-width: 768px) {
    .ubicacion-section {
        padding: 3rem 5%;
    }
    
    .ubicacion-section h1 {
        font-size: 2rem;
    }
    
    .ubicacion-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .ubicacion-container .row {
        flex-direction: column;
    }
    
    .info-card {
        margin-top: 20px;
        padding: 2rem;
    }
    
    .info-titulo {
        font-size: 1.5rem;
    }
    
    .info-texto {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* Footer mejorado para móviles */
@media (max-width: 768px) {
    .footer {
        padding-top: 80px;
        padding-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 15px;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-logo img {
        max-width: 80px;
    }
    
    .footer-logo h3 {
        font-size: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .links-column {
        text-align: center;
    }
    
    .links-column h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .links-column a {
        font-size: 13px;
    }
    
    .footer-social h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .social-buttons {
        gap: 12px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
    }
    
    .footer-bottom {
        padding: 15px 10px;
    }
    
    .footer-bottom h3 {
        font-size: 12px;
    }
}

/* Mejoras generales para pantallas muy pequeñas */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    h1, h2, h3 {
        line-height: 1.2;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    /* Espaciado general reducido */
    section {
        padding: 30px 3% !important;
    }
}

/* DESKTOP - Solo navegación original, sin hamburguesa */
@media (min-width: 901px) {
  /* Asegurar que la navegación de escritorio esté visible */
  .navbar {
    display: flex !important;
  }
  
  /* Ocultar completamente el menú hamburguesa en desktop */
  .hamburger {
    display: none !important;
  }
  
  /* Ocultar completamente el menú móvil en desktop */
  .mobile-menu {
    display: none !important;
  }
  
  /* Ocultar overlay en desktop */
  .menu-overlay {
    display: none !important;
  }
}

/* MÓVIL - Solo menú hamburguesa, sin navegación desktop */
@media (max-width: 900px) {
  /* Header transparente en móvil */
  .header {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 15px 5%;
  }
  
  /* Ocultar logo en móvil SOLO en Informativa.html */
  body:not(.other-pages) .logo {
    display: none !important;
  }
  
  /* Mantener logo visible en otras páginas */
  body.other-pages .logo {
    display: block !important;
  }
  
  /* Ocultar completamente navegación de escritorio en móvil */
  .navbar {
    display: none !important;
  }
  
  /* Mostrar hamburguesa en móvil */
  .hamburger {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #00294F;
    border-radius: 50%;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    gap: 4px;
    margin-left: auto;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .hamburger:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* Para otras páginas, ajustar el header para mostrar logo y hamburguesa */
  body.other-pages .header {
    background: #003153 !important;
    backdrop-filter: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .hamburger span {
    width: 20px;
    height: 3px;
    background: #00294F;
    transition: 0.3s;
    border-radius: 2px;
  }
  
  /* Animación del hamburger cuando está activo */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Menú móvil deslizante */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #000000;
    z-index: 1002;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-menu.active {
    left: 0;
  }
  
  .mobile-menu-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: #00bfff;
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 30px;
    padding: 5px;
  }
  
  /* Logo en menú móvil */
  .mobile-logo {
    text-align: center;
    padding: 30px 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
  }
  
  .mobile-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
  }
  
  .mobile-logo h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
  }
  
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Enlaces del menú móvil simplificados */
  .mobile-nav a {
    display: block;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .mobile-nav a:hover {
    background: rgba(0, 238, 255, 0.1);
    color: #0ef;
    padding-left: 35px;
  }
  
  /* Overlay */
  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Prevenir scroll cuando el menú está abierto */
  body.menu-open {
    overflow: hidden;
  }
  
  .header {
    padding: 10px 5%;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
  .mobile-menu {
    width: 250px;
    left: -250px;
  }
  
  .mobile-nav a {
    font-size: 16px;
    padding: 12px 15px;
  }
  
  .header {
    padding: 10px 3%;
  }
}

/* Ajuste de posición vertical para desktop */
@media (min-width: 901px) {
    .home-content {
        margin-top: 100px; /* Baja más el contenido de texto */
    }
    
    .home-content h3 {
        margin-bottom: 25px;
    }
    
    .home-content h1 {
        margin-bottom: 20px;
    }
    
    .home-content p {
        margin-bottom: 30px;
    }
    
    .btn {
        margin-top: 15px;
        margin-bottom: 10px; /* Reduce espacio antes de redes sociales */
    }
    
    .social-media {
        margin-top: 5px; /* Sube los botones de redes sociales */
    }
    
    .social-media a {
        margin: 15px 15px 15px 0; /* Reduce márgenes verticales */
    }
}

/* Para pantallas muy grandes */
@media (min-width: 1400px) {
    .home-content {
        margin-top: 120px; /* Baja aún más el contenido en pantallas grandes */
    }
}

