/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: #091B26;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header fijo - CORREGIDO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 70px;
    vertical-align: middle;
}

/* Navegación principal */
.nav-links ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links ul li a {
    text-decoration: none;
    color: #142F40;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: #03A696;
}

.nav-links ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #03A696;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown .arrow {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #FFFFFF;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    display: block;
    padding: 8px 15px;
    color: #142F40;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #F3F3F4;
    color: #03A696;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Botón de contacto */
.contact-button {
    display: flex;
    align-items: center;
}

.contact-button a {
    background-color: #03A696;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-button a:hover {
    background-color: #026873;
}

.whatsapp-icon {
    font-size: 16px;
}

/* Newsletter Form Styles */
.footer-column.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.footer-column.newsletter form input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.footer-column.newsletter form button {
    background-color: #03A696;
    color: #FFFFFF;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.footer-column.newsletter form button:hover {
    background-color: #026873;
}

.footer-column.newsletter .checkbox-container {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #E6E8E9;
}

.footer-column.newsletter .checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.footer-column.newsletter .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #eee;
    border-radius: 3px;
}

.footer-column.newsletter .checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.footer-column.newsletter .checkbox-container input:checked ~ .checkmark {
    background-color: #03A696;
}

.footer-column.newsletter .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.footer-column.newsletter .checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.footer-column.newsletter .checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Messages */
#newsletter-messages p {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

#newsletter-messages .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#newsletter-messages .error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* Menú de hamburguesa - CORREGIDO */
.mobile-menu-btn {
    display: none; /* Ocultar por defecto en desktop */
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #142F40;
    margin: 4px 0;
    transition: 0.3s;
}

/* Estilos para el menú móvil - CORREGIDO */
.mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 80px 20px 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu ul li {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #E6E8E9;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    color: #142F40;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
}

.mobile-menu ul li a:hover {
    background-color: #F3F3F4;
}

/* Animación para el botón hamburguesa - CORREGIDO */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Botón de contacto en móvil */
.contact-button-mobile {
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.contact-button-mobile a {
    background-color: #03A696;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-button-mobile a:hover {
    background-color: #026873;
}

/* Estilos para el carrusel Hero */
.hero-section {
    position: relative;
    height: 100vh;
    margin-top: 0;
    overflow: hidden;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    padding: 0 20px;
    z-index: 3;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content .description {
    font-size: 26px;
    margin-bottom: 35px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Controles del carrusel */
.carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background: #FFFFFF;
}

/* Responsive para el carrusel */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content .subtitle {
        font-size: 16px;
    }
    
    .hero-content .description {
        font-size: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .carousel-controls {
        bottom: 10px;
    }
}

/* Hero Section - CORREGIDO: Eliminado margin-top */
.hero-section-old {
    margin-top: 0; /* Eliminado el margen superior anterior */
    padding: 80px 0;
    background-color: #FFFFFF;
}

.hero-section-old .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content-old {
    flex: 1;
}

.hero-content-old h1 {
    font-size: 48px;
    color: #142F40;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content-old .subtitle {
    font-size: 18px;
    color: #142F40;
    margin-bottom: 25px;
    line-height: 1.5;
    font-weight: 500;
}

.hero-content-old .description {
    font-size: 16px;
    color: #9DA3AB;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-buttons-old {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-primary {
    background-color: #03A696;
    color: #FFFFFF;
    border: 1px solid #03A696;
}

.btn-primary:hover {
    background-color: #026873;
    border-color: #026873;
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #03A696;
    border: 1px solid #03A696;
}

.btn-secondary:hover {
    background-color: #03A696;
    color: #FFFFFF;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background-color: #026873;
    color: #FFFFFF;
    padding: 25px;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    flex: 1;
    min-width: 150px;
}

.stat-item .number {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

/* Efecto sutil durante el conteo */
.stat-item .number.animating {
    transform: scale(1.05);
    color: #a8e6cf; /* Color más claro durante la animación */
}

.stat-item .label {
    font-size: 16px;
    font-weight: 500;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* WhatsApp Floating Button - MEJORADO */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.whatsapp-main-button {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 1002;
}

.whatsapp-main-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-main-button i {
    font-size: 42px;
}

/* Efecto de notificación pulsante */
.notification-pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    background-color: #FF4081;
    border-radius: 50%;
    animation: pulse 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 15px;
    font-weight: bold;
}

.notification-pulse::before {
    content: "3";
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 64, 129, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}

.whatsapp-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.whatsapp-buttons-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-button {
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 160px;
    border: 2px solid transparent;
}

.whatsapp-button i {
    font-size: 18px;
    min-width: 20px;
}

.whatsapp-button.sales {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.whatsapp-button.operations {
    background: linear-gradient(135deg, #28A745, #20C997);
    color: white;
}

.whatsapp-button.support {
    background: linear-gradient(135deg, #007BFF, #0056B3);
    color: white;
}

.whatsapp-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Animación de aparición escalonada para los botones */
.whatsapp-buttons-container.active .whatsapp-button:nth-child(1) {
    transition-delay: 0.1s;
}

.whatsapp-buttons-container.active .whatsapp-button:nth-child(2) {
    transition-delay: 0.2s;
}

.whatsapp-buttons-container.active .whatsapp-button:nth-child(3) {
    transition-delay: 0.3s;
}

/* Tooltip para el botón principal */
.whatsapp-main-button::after {
    content: "Contáctanos por WhatsApp";
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-main-button:hover::after {
    opacity: 1;
    visibility: visible;
    right: 85px;
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-main-button {
        width: 60px;
        height: 60px;
    }

    .whatsapp-main-button i {
        font-size: 28px;
    }

    .notification-pulse {
        width: 22px;
    height: 22px;
    font-size: 15px;
}

.whatsapp-button {
    width: 140px;
    padding: 10px 16px;
    font-size: 13px;
}

.whatsapp-button i {
    font-size: 16px;
}

.whatsapp-main-button::after {
    content: "WhatsApp";
    right: 70px;
    padding: 6px 10px;
    font-size: 11px;
}

.whatsapp-main-button:hover::after {
    right: 75px;
}
}

@media (max-width: 480px) {
.whatsapp-float {
    bottom: 15px;
    right: 15px;
}

.whatsapp-main-button {
    width: 55px;
    height: 55px;
}

.whatsapp-main-button i {
    font-size: 35px;
}

.whatsapp-buttons-container {
    gap: 10px;
}

.whatsapp-button {
    width: 130px;
    padding: 8px 14px;
    font-size: 12px;
}

.whatsapp-main-button::after {
    display: none; /* Ocultar tooltip en móviles muy pequeños */
}
}

/* ===== SECCIÓN CLIENTES SATISFECHOS ===== */
.clients-section {
padding: 30px 0;
background-color: #FFFFFF;
text-align: center;
}

.clients-section .section-title {
font-size: 36px;
color: #142F40;
margin-bottom: 60px;
position: relative;
display: inline-block;
}

.clients-section .section-title::after {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -15px;
width: 80px;
height: 3px;
background-color: #03A696;
}

.clients-grid {
display: grid;
grid-template-columns: repeat(6, 1fr); /* 6 columnas en desktop */
gap: 30px;
align-items: center;
justify-items: center;
}

.client-logo {
padding: 15px;
border-radius: 8px;
transition: all 0.3s ease;
background-color: #F3F3F4;
display: flex;
justify-content: center;
align-items: center;
height: 120px;
width: 100%;
}

.client-logo:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-logo img {
max-width: 40%;
height: auto;
filter: grayscale(100%);
transition: filter 0.3s ease;
object-fit: contain;
}

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

/* Media queries para responsive */
@media (max-width: 1200px) {
.clients-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en tablets grandes */
}
}

@media (max-width: 992px) {
.clients-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
    gap: 20px;
}

.client-logo {
    height: 100px;
}
}

/* MÓVILES - 3 COLUMNAS COMO SOLICITADO */
@media (max-width: 768px) {
.clients-section {
    padding: 60px 0;
}

.clients-section .section-title {
    font-size: 28px;
    margin-bottom: 40px;
}

.clients-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas en móviles */
    gap: 15px;
}

.client-logo {
    height: 90px;
    padding: 12px;
}

.client-logo img {
    max-width: 40%;
}
}

@media (max-width: 576px) {
.clients-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas en móviles pequeños */
    gap: 12px;
}

.client-logo {
    height: 80px;
    padding: 10px;
}

.client-logo img {
    max-width: 60%;
}
}

@media (max-width: 400px) {
.clients-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* 3 columnas en móviles muy pequeños */
    gap: 10px;
}

.client-logo {
    height: 70px;
    padding: 8px;
}

.client-logo img {
    max-width: 50%;
}
}

/* Sección de Contacto y Ubicación */
.contact-location-section {
padding: 20px 0;
background-color: #F3F3F4;
}

.contact-location-section .container {
display: flex;
gap: 40px;
flex-wrap: wrap;
justify-content: center;
}

.contact-content {
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
width: 100%;
}

.contact-form-container,
.location-info-container {
background-color: #FFFFFF;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
flex: 1;
min-width: 300px;
max-width: 550px;
}

.section-title-small {
font-size: 24px;
color: #142F40;
margin-bottom: 30px;
text-align: left;
position: relative;
padding-bottom: 10px;
}

.section-title-small::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 60px;
height: 3px;
background-color: #03A696;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border: 1px solid #E6E8E9;
border-radius: 5px;
font-family: 'Instrument Sans', sans-serif;
font-size: 15px;
color: #142F40;
background-color: #FFFFFF;
}

.contact-form textarea {
resize: vertical;
min-height: 100px;
}

.recaptcha-placeholder {
margin-bottom: 15px;
background-color: #F3F3F4;
padding: 10px;
border-radius: 5px;
text-align: center;
color: #9DA3AB;
}

.checkbox-container {
display: block;
position: relative;
padding-left: 25px;
margin-bottom: 15px;
cursor: pointer;
font-size: 14px;
color: #9DA3AB;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
text-align: left;
}

.checkbox-container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

.checkmark {
position: absolute;
top: 2px;
left: 0;
height: 18px;
width: 18px;
background-color: #E6E8E9;
border-radius: 3px;
}

.checkbox-container input:checked ~ .checkmark {
background-color: #03A696;
}

.checkmark:after {
content: "";
position: absolute;
display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
display: block;
}

.checkbox-container .checkmark:after {
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid #FFFFFF;
border-width: 0 3px 3px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}

.btn-submit {
background-color: #03A696;
color: #FFFFFF;
padding: 12px 25px;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
width: 100%;
}

.btn-submit:hover {
background-color: #026873;
}

.location-address {
font-size: 16px;
color: #142F40;
margin-bottom: 20px;
text-align: left;
}

.map-container {
width: 100%;
height: 300px;
border-radius: 10px;
overflow: hidden;
margin-bottom: 20px;
background-color: #E6E8E9;
}

.map-container iframe {
width: 100%;
height: 100%;
border: 0;
}

.contact-details {
text-align: left;
margin-bottom: 20px;
}

.contact-details .info-title {
font-size: 18px;
color: #142F40;
margin-bottom: 10px;
}

.contact-details p {
font-size: 15px;
color: #9DA3AB;
margin-bottom: 5px;
}

.contact-details a {
color: #03A696;
text-decoration: none;
}

.contact-details a:hover {
text-decoration: underline;
}

.phone-numbers span {
display: block;
font-size: 15px;
color: #142F40;
margin-bottom: 5px;
}

.footer-links {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: flex-start;
margin-top: 20px;
}

.footer-links a {
color: #03A696;
text-decoration: none;
font-size: 14px;
font-weight: 500;
}

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

/* ===== SECCIÓN NUESTROS SERVICIOS - MODIFICADA ===== */
.services-section {
padding: 80px 0;
background-color: #F3F3F4;
text-align: center;
}

.section-title {
font-size: 36px;
color: #142F40;
margin-bottom: 60px;
position: relative;
display: inline-block;
}

.section-title::after {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: -15px;
width: 80px;
height: 3px;
background-color: #03A696;
}

.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-bottom: 60px;
}

.service-card {
background-color: #FFFFFF;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
overflow: hidden;
text-align: left;
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
height: 400px; /* Aumentada la altura para los títulos más largos */
}

.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
width: 100%;
height: 180px;
object-fit: cover;
display: block;
}

/* Mejoras para el diseño de las tarjetas de servicio */
.service-card .card-content {
padding: 20px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 15px;
height: calc(100% - 180px); /* Ajuste de altura */
}

.service-card .text-content {
flex-grow: 1;
text-align: left;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
}

.service-card .secondary-image-container {
flex-shrink: 0;
width: 100px;
height: 100px;
overflow: hidden;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.service-card .secondary-image-container img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}

.service-card:hover .secondary-image-container img {
transform: scale(1.05);
}

/* Títulos de servicios ajustados para textos más largos */
.service-card h3 {
font-size: 18px; /* Reducido el tamaño de fuente */
color: #142F40;
margin-bottom: 15px;
line-height: 1.3;
font-weight: 600;
text-transform: uppercase;
}

.service-card p {
color: #9DA3AB;
margin-bottom: 20px;
flex-grow: 1;
}

/* Estilos para los botones "Ver más" personalizados */
.service-card .btn-ver-mas {
display: inline-block;
background-color: var(--btn-color, #03A696); /* Color por defecto si no se especifica */
color: #FFFFFF;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
align-self: flex-start;
}

.service-card .btn-ver-mas:hover {
background-color: #026873;
}

.services-section .btn-container {
margin-top: 40px;
}

.expand-services-btn-container {
margin-top: 40px;
text-align: center;
}

.expand-services-btn {
background-color: #03A696;
color: #FFFFFF;
border: none;
border-radius: 50%;
width: 60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.expand-services-btn:hover {
background-color: #026873;
transform: translateY(-3px);
}

.expand-services-btn i {
transition: transform 0.3s ease;
}

.expand-services-btn.expanded i {
transform: rotate(180deg);
}

.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-bottom: 30px; /* Ajustado para el nuevo botón */
overflow: hidden; /* Para ocultar los servicios adicionales */
max-height: 850px; /* Altura inicial aumentada para mostrar solo los primeros servicios */
transition: max-height 0.5s ease-in-out;
}

.services-grid.expanded {
max-height: 4000px;
}

/* Responsive para servicios */
@media (max-width: 1200px) {
.services-grid {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
.service-card {
    margin-bottom: 20px; /* Añadir espacio entre tarjetas en responsive */
    height: auto; /* Altura automática en móviles */
    min-height: 400px; /* Altura mínima */
}

.services-grid {
    grid-template-columns: 1fr;
}

.service-card h3 {
    font-size: 16px; /* Tamaño de fuente más pequeño en móviles */
}
}

.services-section .btn-container .btn-primary {
background-color: #03A696;
color: #FFFFFF;
padding: 15px 30px;
border-radius: 5px;
text-decoration: none;
font-weight: 600;
font-size: 18px;
transition: background-color 0.3s ease;
}

.services-section .btn-container .btn-primary:hover {
background-color: #026873;
}

/* Estilos para mensajes de formulario */
.form-messages {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

/* Footer - ESTILO CORREGIDO */
.main-footer {
background-color: #142F40;
color: #FFFFFF;
padding: 60px 0 20px;
}

.main-footer .container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 30px;
}

.footer-column {
flex: 1;
min-width: 280px;
}

.footer-logo img {
max-width: 180px;
margin-bottom: 20px;
}

.footer-column p {
line-height: 1.8;
margin-bottom: 15px;
color: #B0BEC5;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

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

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover i {
    animation: rotate360 0.5s ease forwards;
}

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.social-icon.facebook:hover {
    background-color: #3b5998;
}

.social-icon.linkedin:hover {
    background-color: #0077b5;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.youtube:hover {
    background-color: #ff0000;
}

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

.footer-column h3 {
font-size: 18px;
color: #03A696;
margin-bottom: 25px;
font-weight: 600;
position: relative;
padding-bottom: 10px;
}

.footer-column h3::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 2px;
background-color: #03A696;
}

.footer-column ul {
list-style: none;
margin-bottom: 20px;
}

.footer-column ul li {
margin-bottom: 10px;
}

.footer-column ul li a {
color: #B0BEC5;
text-decoration: none;
transition: color 0.3s ease;
}

.footer-column ul li a:hover {
color: #03A696;
}

.footer-column.sitemap p {
color: #B0BEC5;
margin-bottom: 10px;
}

.footer-column.sitemap p a {
color: #B0BEC5;
text-decoration: none;
}

.footer-column.sitemap p a:hover {
color: #03A696;
text-decoration: underline;
}

.newsletter input[type="email"] {
width: 100%;
padding: 12px 15px;
border: 1px solid #37474F;
border-radius: 5px;
background-color: #263238;
color: #FFFFFF;
font-size: 15px;
margin-bottom: 15px;
}

.newsletter input[type="email"]::placeholder {
color: #B0BEC5;
}

.newsletter .checkbox-container {
display: block;
position: relative;
padding-left: 25px;
margin-bottom: 15px;
cursor: pointer;
font-size: 14px;
color: #B0BEC5;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.newsletter .checkbox-container input {
position: absolute;
opacity: 0;
cursor: pointer;
height: 0;
width: 0;
}

.newsletter .checkmark {
position: absolute;
top: 0;
left: 0;
height: 18px;
width: 18px;
background-color: #263238;
border: 1px solid #37474F;
border-radius: 3px;
}

.newsletter .checkbox-container input:checked ~ .checkmark {
background-color: #03A696;
border-color: #03A696;
}

.newsletter .checkmark:after {
content: "";
position: absolute;
display: none;
}

.newsletter .checkbox-container input:checked ~ .checkmark:after {
display: block;
}

.newsletter .checkbox-container .checkmark:after {
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}

.newsletter button {
background-color: #03A696;
color: #FFFFFF;
padding: 12px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: background-color 0.3s ease;
width: 100%;
}

.newsletter button:hover {
background-color: #026873;
}

.footer-bottom {
border-top: 1px solid #37474F;
padding-top: 20px;
margin-top: 40px;
text-align: center;
color: #B0BEC5;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 10px;
width: 100%;
}

.footer-bottom p {
margin: 0;
font-size: 14px;
}

/* ===== SECCIÓN CONVENIOS Y AUTORIZACIONES - CENTRADO MEJORADO ===== */
.convenios-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.convenios-section .section-title {
    font-size: 36px;
    color: #142F40;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.convenios-section .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 80px;
    height: 3px;
    background-color: #03A696;
}

/* Grid auto-fit para centrado perfecto y responsivo */
.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    justify-items: center;
    gap: 30px;
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    align-items: center;
}

.convenio-logo {
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #F3F3F4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 180px;
    flex: 0 0 auto;
}

.convenio-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.convenio-logo img {
    max-width: 80%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    object-fit: contain;
}

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

/* Media queries para responsive */
@media (max-width: 1200px) {
    .convenios-grid {
        gap: 25px;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .convenio-logo {
        width: 160px;
        height: 110px;
    }
}

@media (max-width: 992px) {
    .convenios-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    .convenio-logo {
        width: 140px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .convenios-section {
        padding: 40px 0;
    }
    .convenios-section .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .convenios-grid {
        gap: 15px;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .convenio-logo {
        width: 120px;
        height: 90px;
        padding: 12px;
    }
    .convenio-logo img {
        max-width: 80%;
    }
}

@media (max-width: 576px) {
    .convenios-grid {
        gap: 12px;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .convenio-logo {
        width: 100px;
        height: 80px;
        padding: 10px;
    }
    .convenio-logo img {
        max-width: 70%;
    }
}

@media (max-width: 400px) {
    .convenios-grid {
        gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    }
    .convenio-logo {
        width: 85px;
        height: 70px;
        padding: 8px;
    }
    .convenio-logo img {
        max-width: 60%;
    }
}

/* Clase utilitaria para forzar centrado */
.centrar-convenios {
display: flex !important;
justify-content: center !important;
flex-wrap: wrap !important;
}

/* Responsive */
@media (max-width: 992px) {
.nav-links,
.contact-button {
    display: none;
}

.mobile-menu-btn {
    display: flex;
}

.header {
    padding: 10px 20px;
}

.header .logo img {
    height: 60px;
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
}

.hero-content-old h1 {
    font-size: 36px;
}

.hero-section-old .container {
    gap: 30px;
}
}

@media (max-width: 768px) {
.header {
    padding: 10px 15px;
}

.header .logo img {
    height: 50px;
}

.services-grid {
    grid-template-columns: 1fr;
}

.main-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-column {
    margin-bottom: 40px;
    width: 100%;
}

.footer-column:last-child {
    margin-bottom: 0;
}

.footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
}

.social-icons {
    justify-content: center;
}

.header .container {
    flex-wrap: wrap;
}

.nav {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 15px;
}

.nav.active {
    display: block;
}

.nav ul {
    flex-direction: column;
    gap: 10px;
}

.dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    margin-top: 10px;
    padding-left: 15px;
}

.dropdown.active .dropdown-content {
    display: block;
}

.mobile-menu-btn {
    display: flex;
}

.hero-section-old {
    padding: 50px 0;
}

.hero-section-old .container {
    flex-direction: column;
    text-align: center;
}

.hero-content-old h1 {
    font-size: 32px;
}

.hero-buttons-old {
    flex-direction: column;
    align-items: center;
}

.stats-section .container {
    flex-direction: column;
    gap: 30px;
}

.contact-button {
    display: none;
}

.clients-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en responsive */
}

.client-logo img {
    max-width: 40%; /* 80% de tamaño en responsive */
}

.contact-location-section .container {
    flex-direction: column;
    align-items: center;
}

.contact-form-container,
.location-info-container {
    min-width: unset;
    width: 100%;
}

.section-title-small {
    text-align: center;
}

.section-title-small::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-details,
.footer-links {
    text-align: center;
    justify-content: center;
}
}

@media (max-width: 480px) {
body {
    padding-top: 80px; /* Ajuste para el header fijo en móviles */
}

.header {
    padding: 8px 10px;
}

.header .logo img {
    height: 70px;
}

.services-section {
    padding: 40px 0;
}

.service-card h3 {
    font-size: 19px; /* Tamaño de fuente más pequeño en móviles */
}

.main-footer {
    padding: 40px 0;
}

.footer-logo img {
    max-width: 250px;
}

.footer-column h3 {
    font-size: 16px;
}

.footer-column p, 
.footer-column ul li a, 
.footer-column input[type="email"], 
.footer-column .checkbox-container, 
.footer-bottom p {
    font-size: 15px;
}

.footer-column button[type="submit"] {
    padding: 10px 15px;
    font-size: 14px;
}

.hero-section-old {
    padding: 40px 0;
}

.hero-content-old h1 {
    font-size: 32px;
}

.hero-content_old .subtitle {
    font-size: 16px;
}

.hero-content_old .description {
    font-size: 14px;
}

.stats-grid {
    grid-template-columns: 1fr;
}

.stats-item {
    padding: 15px;
}

.stats-item h3 {
    font-size: 24px;
}

.stats-item p {
    font-size: 14px;
}

.clients-grid {
    grid-template-columns: 1fr;
}

.footer-column {
    width: 100%;
    margin-bottom: 30px;
}

.footer-column:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}
}

/* Transiciones para elementos del footer */
.footer-column {
transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Transición para iconos sociales */
.social-icons a {
transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Estilo para mensajes de error */
.error-message {
color: #ff6b6b;
font-size: 12px;
margin-top: 5px;
}