/* Variables de color */
:root {
    --primary: #00a859;
    --primary-dark: #008a4a;
    --secondary: #00b4d8;
    --dark: #2d3748;
    --gray: #4a5568;
    --light-gray: #f7fafc;
    --white: #ffffff;
    --red: #e53e3e;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barra superior */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: var(--secondary);
}

.social-icons a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li.highlight a {
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
}

nav ul li.highlight a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero section */
.hero {
    padding-top: 80px;
    padding-right: 0;
    padding-left: 76px;
    padding-bottom: 80px;
    background-color: #f9fbfd;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
	margin: center;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark);
}

.hero .subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn.primary {
    background-color: var(--primary);
    color: white;
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 89, 0.3);
}

.btn.secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn.secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    margin-left: 37px;
    min-width: 274px; /* Asegura espacio para el contenido */
    margin-right: 54px;
}

.hero-image img {
    width: 390px;      /* Tamaño fijo */
    max-width: 83%;   /* Responsivo en móviles */
    height: auto;      /* Proporción automática */
    border-radius: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: block;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.badge-content {
    background-color: var(--secondary);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.badge-content span {
    font-size: 20px;
}

.badge-content small {
    font-size: 10px;
    display: block;
    text-align: center;
}

/* Sección de confianza */
.trust-badges {
    padding: 40px 0;
    background-color: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.trust-badges .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.badge-item img {
    margin-right: 15px;
}

.badge-item p {
    font-weight: 500;
    color: var(--gray);
}

/* Sección de servicios */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-description {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 180, 216, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 24px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
}

/* Sección de testimonios */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonial-card {
    min-width: 350px;
    margin: 0 15px;
    background: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.client-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.client-rating {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
    flex: 1;
}

.client-info {
    text-align: center;
}

.client-info h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.client-info p {
    color: var(--secondary);
    font-size: 14px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.carousel-prev, .carousel-next {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Sección de contacto */
.contact-section {
    padding: 80px 0;
    background-color: white;
}

.contact-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark);
}

.contact-form p {
    color: var(--gray);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.submit-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.submit-btn i {
    margin-left: 8px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.info-card {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    height: 180px; /* Altura fija */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.info-card p {
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
    max-width: 100%;
    word-break: break-word;
}

.schedule {
    grid-column: span 2;
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
}

.schedule h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
    text-align: center;
}

.schedule p {
    color: var(--gray);
    margin-bottom: 8px;
    text-align: center;
}

/* Sección familia feliz */
.familia-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.familia-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.familia-content {
    flex: 1;
    max-width: 600px;
}

.familia-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark);
}

.familia-content p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

.beneficios-list {
    list-style: none;
}

.beneficios-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.beneficios-list i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 20px;
}

.familia-image {
    position: relative;
    display: inline-block;
}

.familia-image {
    position: relative;
    display: inline-block;
}

.familia-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Opcional: añade bordes redondeados si lo deseas */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Opcional: sombra para mejor visualización */
}

.experiencia-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1; /* Asegura que el badge esté sobre la imagen */
}

.experiencia-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.experiencia-badge span {
    font-size: 20px;
}

.experiencia-badge small {
    font-size: 12px;
    display: block;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 40px 0 0;
    width: 100%;
    overflow: hidden; /* Previene problemas de contenido que sobresale */
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Incluye padding en el ancho total */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    padding: 0 15px;
    box-sizing: border-box;
}

.logo-image {
    height: 72px; /* Ajusta según necesites */
    width: auto; /* Mantiene la proporción */
    max-width: 129px; /* Evita que sea demasiado ancho */
}

/* Para el footer (si necesitas que sea blanco) */
footer .logo-image {
    filter: brightness(0) invert(1); /* Convierte el logo a blanco */
}

.footer-description {
    color: #cbd5e0;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #00b4d8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #00b4d8;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se apilen en móvil */
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #cbd5e0;
    font-size: 14px;
    margin: 10px 0;
}

.footer-social a {
    color: white;
    margin-left: 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #00b4d8;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    color: var(--secondary);
}

.video-presentacion {
    padding: 80px 0;
    background-color: #f9fbfd;
}

.video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* <-- centra ambos elementos */
    flex-wrap: wrap;
    gap: 20px; /* espacio entre video y texto */
    text-align: left;
}
.video-wrapper video.video-pequeno {
    width: 100%;
    height: auto; /* Asegura que el video no se estire */
    border-radius: 12px;
    border: 5px solid var(--light-gray);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Eliminamos object-fit: cover para evitar recortes */
}

.video-content {
    flex: 1;
    max-width: 500px;
}

.video-content h2 {
    font-size: 30px;
    color: var(--dark);
    margin-bottom: 15px;
}

.video-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.video-content .btn {
    margin-top: 10px;
}

.video-container {
    width: 100%;
    max-width: 280px;  /* Más pequeño que el original (360px) */
    overflow: hidden;
    border-radius: 12px;
	
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

#modalMessage {
  font-size: 18px;
  color: #333;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        padding: 60px 20px; /* Ajusta el padding para móviles */
        text-align: center; /* Centra todo el contenido */
    }
    
    .hero .container {
        flex-direction: column;
        align-items: center; /* Centra los elementos horizontalmente */
    }
    
    .hero-content {
        max-width: 100%; /* Ocupa todo el ancho disponible */
        margin-bottom: 30px; /* Espacio entre texto e imagen */
    }
    
    .hero h1 {
        font-size: 32px; /* Tamaño más adecuado para móviles */
        line-height: 1.3;
    }
    
    .hero .subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .cta-buttons {
        justify-content: center; /* Centra los botones */
        flex-wrap: wrap; /* Permite que se apilen si es necesario */
    }
    
    .hero-image {
        margin: 0 auto; /* Centra la imagen */
        max-width: 100%; /* Asegura que no sobresalga */
    }
    
    .floating-badge {
        right: 20px; /* Ajusta posición del badge en móviles */
        bottom: -15px;
    }
	
	.contact-section .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-info {
        order: 2;
        grid-template-columns: 1fr;
    }
    
    .schedule {
        grid-column: span 1;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 12px 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .trust-badges .container {
        flex-direction: column;
    }
    
    .badge-item {
        margin-bottom: 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 15px;
    }
    
    .testimonial-card {
        min-width: 280px;
    }
	.hero h1 {
        font-size: 28px; /* Tamaño aún más pequeño para móviles muy pequeños */
    }
    
    .hero .subtitle {
        font-size: 15px;
    }
    
    .btn {
        width: 100%; /* Botones a ancho completo en móviles pequeños */
        margin-bottom: 10px; /* Espacio entre botones */
    }
    
    .hero-image img {
        width: 100%; /* Imagen ocupa todo el ancho disponible */
        max-width: 300px; /* Pero con un máximo para que no se vea demasiado grande */
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .schedule {
        grid-column: span 1;
    }
    
    .testimonial-card {
        min-width: 260px;
        margin: 0 10px;
    }
    
    .carousel-controls {
        gap: 10px;
    }
	
	   .hero h1 {
        font-size: 28px; /* Tamaño aún más pequeño para móviles muy pequeños */
    }
    
    .hero .subtitle {
        font-size: 15px;
    }
    
    .btn {
        width: 100%; /* Botones a ancho completo en móviles pequeños */
        margin-bottom: 10px; /* Espacio entre botones */
    }
    
    .hero-image img {
        width: 100%; /* Imagen ocupa todo el ancho disponible */
        max-width: 300px; /* Pero con un máximo para que no se vea demasiado grande */
    }
	
	 .contact-form h2 {
        font-size: 28px;
    }
    
    .contact-form p {
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Asegurar que los inputs no se salgan de la pantalla */
    input, select {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ajustar el padding general para móviles pequeños */
    .contact-section {
        padding: 40px 15px;
    }
	
	/* Ajustes para la sección "Familia" en móviles */
    .familia-section .container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .familia-content h2 {
        font-size: 26px; /* Título más pequeño en móviles */
        margin-bottom: 15px;
    }

    .familia-content p {
        font-size: 16px; /* Texto más compacto */
        margin-bottom: 25px;
    }

    .beneficios-list {
        text-align: center; /* Centrar lista en móviles */
        display: block;
        margin-bottom: 25px;
    }

    .beneficios-list li {
        padding-left: 0; /* Eliminar sangría */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .beneficios-list li::before {
        content: "✓";
        color: var(--primary);
        font-weight: bold;
    }

    .familia-image {
        margin-top: 20px;
    }

    .experiencia-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px auto 0;
        width: 120px;
    }
}