/* ======== General ======== */
:root {
    --primary-color: #39968e; 
    --secondary-color: #6c757d; 
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --success-color: #28a745; 
    --font-family: 'Arial', sans-serif; 
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #ffffff00;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Añadir padding para móviles */
    box-sizing: border-box;
}
@media (max-width: 1200px) {
    .container {
    }
}
@media (max-width: 992px) {
    .container {
        max-width: 95vw;
        padding: 0 10px;
        flex-direction: column-reverse;
    }
}
@media (max-width: 768px) {
    .container {
        max-width: 100vw;
        padding: 0 5px;
    }
    .hero .container,
    .servicios-section .container,
    .ServiciosEspeciales .container {
        gap: 20px !important;
    }
}

.estructura{
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto; 
}

@media (min-height: 2000px) {
    .estructura{
        min-height: 200px; 
    }
    
}

@media (min-width: 993px) {
   .estructura{
        display: grid;
        grid-template-rows: auto 1fr auto; 
        grid-template-columns: 1fr; 
    }
}




h1, h2, h3, h4 {
    margin-bottom: 0.75em;
}

h1 { font-size: 2.8em; color: var(--dark-color); }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 1em; color: var(--dark-color); }
h3 { font-size: 1.5em; color: var(--dark-color); }

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    transition: background-color 0.8s ease, color 0.7s ease, box-shadow 1s ease;
}
.btn-primary:hover {
    background-color: #f4f8f8;
    color: var(--primary-color);
    box-shadow: 0 20px 20px rgba(57,150,142,1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: background-color 1s ease, color 0.7s ease, box-shadow 1s ease;

}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    transition: background-color 1s ease, color 0.7s ease, box-shadow 1s ease;
}

.btn-light {
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--light-color);
    transition: background-color 1s ease, color 0.7s ease, box-shadow 1s ease;
}
.btn-light:hover {
    background-color: #26605b;
    color: aliceblue;
    box-shadow : 0 4px 20px rgba(0,0,0,0.8);
}


.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    overflow: hidden;
}

.video-background__content {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-background__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2); 
}

.video-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 5px;
    display: none; 
}

video:not([src]) + .video-fallback {
    display: block;
}


/* ======== Header ======== */
header {
    background-color: rgba(255, 255, 255, 0.2);
    padding:  0rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    position: relative;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); 
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}
.logo{
    user-select: none;
    cursor: pointer;
    color: gray;
    font-size: 4em;
    font-weight: bold;
}
.verdespan{
    color: var(--primary-color);
}

header .logo {
    display: flex;
    align-items: center;
}

.logo-text1{
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}


.Slogan {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 3px;
    text-align: center;
    white-space: nowrap; /* Prevenir que se divida en líneas */
}

header nav ul li a:hover + .logo-text .Slogan,
header nav ul li a:active + .logo-text .Slogan {
    white-space: nowrap; /* Mantener en una sola línea durante hover */
}

.TEXTH1{
    color: var(--primary-color);
}



header .logo img {
    height: 70px; 
    margin-right: 15px;
}

.logo-text2{
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

@media (max-width: 1300px) {
    .logo-text1, .logo-text2{
        font-size: 1.5rem;
    }
    .Slogan{
        font-size: 0.7rem;
    }
}

@media (max-width: 524px) {
    .Slogan{
        font-size: 0.7rem;
        width: 200px;
    }
    header{
        padding: 0.8rem 0;
    }
}

header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    position: relative;
    text-decoration: none;
    color: var(--text-color); 
    padding: 10px 20px;
    display: inline-block;
    border-radius: 25px;
    transition: all 0.3s ease;
    z-index: 1;
}

header nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%; 
    width: 0;  
    height: 100%; 
    background-color: var(--primary-color);
    border-radius: 25px; 
    z-index: -1;
    transform: translateX(-50%); 
    transition: width 0.3s ease-out; 
    box-sizing: border-box;
}

header nav ul li a::before {
    content: none;
}

header nav ul li a:hover {
    color: #fff; 
    
    box-shadow: inset 0 0 0 1000px var(--primary-color); /* Efecto de fondo sólido */
}

/* Opcional: Efecto más suave con transición específica */
header nav ul li a {
    transition: color 0.3s ease, font-weight 0.3s ease, box-shadow 0.3s ease;
}

/* Header Contacto  */
.header-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 30px;
    margin-right: 30px;
}

.header-contact a {
    color: var(--dark-color);
    font-size: 0.9em;
    transition: color 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
}

.header-contact a:hover {
    color: var(--primary-color);
}

.header-contact i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1200px) {
   .header-contact a {
        display: flex;
        font-size: 0.8rem;
        align-items: center;
    }
    
}

@media (max-width: 992px) {
    .header-contact {
        display: none;
    }
}


.mobile-menu-btn {
        display: none;
}

.mobile-menu{
    display: none;
}


@media (max-width: 992px) {
    header nav ul {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 2.2rem;
        color: var(--primary-color);
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
    }
    .overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.7);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        z-index: 1000;
    }
    .overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .mobile-menu {
        position: fixed;
        top: 0; left: 0;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
        z-index: 1101;
        transform: translateX(-100%);
        transition: transform 0.3s;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .mobile-menu.active {
        transform: translateX(0);
    }
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        background-color: #fff;
    }
    .mobile-menu-header .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
    }
    .mobile-menu-header .logo img {
        height: 50px;
        margin-right: 10px;
    }
    .mobile-logo-text {
        display: flex;
        flex-direction: column;
    }

    .mobile-logo-text1 {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color);
        line-height: 1;
    }

    .mobile-logo-text2 {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--secondary-color);
        line-height: 1;
        
    }

    .mobile-slogan {
        font-size: 0.7rem;
        color: var(--secondary-color);
        font-style: italic;
        margin-top: 2px;
        text-align: left;
    }

    .close-menu-btn {
        background: none;
        border: none;
        font-size: 2rem;
        color: #333;
        cursor: pointer;
    }
    .mobile-nav-menu {
        list-style: none;
        padding: 30px 0 0 0;
        margin: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .mobile-nav-menu li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .mobile-nav-menu a {
        display: block;
        padding: 16px 30px;
        color: var(--primary-color);
        font-size: 1.1rem;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
    }
    .mobile-nav-menu a.Active,
    .mobile-nav-menu a:active,
    .mobile-nav-menu a:hover {
        background: var(--primary-color);
        color: #fff;
        border-radius: 20px;
    }
    header .container {
        position: relative;
        display: flex;
        justify-content: center; 
        align-items: center;
        height: 80px; 
        padding: 0 20px;
    }
    header nav {
        position: absolute; 
        right: 20px; 
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-btn {
        display: block; 
        font-size: 1.8rem; 
        color: var(--primary-color);
        background: none;
        border: none;
        cursor: pointer;
    }

    header nav ul {
        display: none; 
    }
    .mobile-nav-contact {
        padding: 20px;
        border-top: 1px solid #eee;
        margin-top: auto; /* Esto lo empuja hacia abajo */
        background-color: #f9f9f9;
    }

    .mobile-nav-contact a {
        display: flex;
        align-items: center;
        color: var(--primary-color);
        padding: 10px 0;
        font-size: 0.95rem;
        text-decoration: none;
    }

    .mobile-nav-contact i {
        margin-right: 10px;
        font-size: 1.2rem;
        min-width: 25px;
        text-align: center;
    }

    .mobile-nav-contact a:hover {
        color: var(--dark-color);
        text-decoration: underline;
    }
}



.Active{
    color: #fff;
    font-weight: bold;
    background-color: var(--primary-color);
    border-radius: 25px; 
}


.badge{
    display: inline-block;
    background-color: #ffffff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-bottom: 15px;
}
.hero {
    padding: 60px 0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
    
}

.hero-content {
    flex: 1;
}

.hero .badge {
    display: inline-block;
    background-color: rgb(253, 251, 251); 
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    text-align: center;
    
}

.hero h2 {
    font-size: 3em; 
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5em;
} 

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2em;
    }
}

@media (max-width: 400px) {
    .mobile-logo-text1,
    .mobile-logo-text2 {
        font-size: 1.2rem;
    }
    
    .mobile-slogan {
        font-size: 0.5rem;
    }
    
    .mobile-menu-header .logo img {
        height: 40px;
    }
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    color: #555;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; 
}

.TST1.hero-buttons{
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.hero-features {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9em;
    color: #555;
}
.hero-features span i {
    color: var(--success-color); 
    margin-right: 5px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero-image .image-caption {
    position: absolute;
    bottom: 20px; 
    right: 20px; 
    background-color: rgba(40, 110, 88, 0.909);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

.image-caption p{
    margin: 0;
    color:var(--light-color);
}



/* =========  Hero video ============*/
/* Estilos para el video de YouTube */
.hero-video {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

lite-youtube {
    background-color: #000;
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
}

lite-youtube::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(57, 150, 142, 0.1);
    z-index: 1;
}

.video-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(40, 110, 88, 0.909);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    z-index: 2;
}

/* Ajustes responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }

    .hero .container2{
        flex-direction: column-reverse;
    }
    
    .hero-video {
        display: flex;
        margin-bottom: 30px;
        width: 100%;
        justify-content: center;
        order: 2;
    }
}

@media (max-width: 768px) {
    lite-youtube {
        aspect-ratio: 16 / 9;
    }
}


/* Swipper hero */
/* Hero Slider Styles */
.hero-image-slider {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}


.hero-swiper {
    width: 100%;
    height: 400px; /* Altura fija para todas las slides */
}

.hero-swiper .swiper-slide {
    position: relative;
    height: 100%;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto recortará la imagen manteniendo proporciones */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-swiper .image-caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(40, 110, 88, 0.909);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
}

.hero-swiper .image-caption p {
    margin: 0;
    color: var(--light-color);
}

.hero-swiper .swiper-pagination {
    bottom: 20px;
    left: 20px;
    width: auto;
}

.hero-swiper .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.7;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: white;
    background-color: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 1.2em;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-swiper .swiper-button-prev,
    .hero-swiper .swiper-button-next {
        display: none;
    }
     .hero .container {
        flex-direction: column;
    }
    
    /* Asegura que el swiper sea visible */
    .hero-image-slider {
        order: 2;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-content {
        order: 1;
    }

    .hero-reverse{
        flex-direction: column-reverse;
    }

}


/* ======== CTA Section ======== */
.cta {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: 0.5em;
}

.cta p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ====== Logros Archivements  ======*/
/* Logros Section */
.logros-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.logros-section h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2.2em;
    text-align: center;
}

.logros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.logro-card {
    background-color: #ffffffcc;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logro-card.highlight {
    position: relative;
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px;

    z-index: 1;
    overflow: hidden;
    animation: shadowPulse 3s infinite;
}


.logro-card.highlight p {
    color: white;
}

.logro-card.highlight h3,
.logro-card.highlight i,
.logro-card.highlight .logro-list li {
    color: white;
}

.logro-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.logro-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.logro-card p {
    color: #555;
    margin-bottom: 0;
    flex-grow: 1;
}

.logro-list {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
    margin-top: 15px;
}

.logro-list li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9em;
    display: flex;
    align-items: center;
}

.logro-list i {
    font-size: 1em;
    margin-right: 8px;
    margin-bottom: 0;
    color: var(--primary-color);
}

.logro-card.highlight .logro-list i {
    color: white;
}

/* Efectos hover */
.logro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(57,150,142,0.2);
}

.logro-card.highlight:hover {
    animation: none;
    box-shadow: 0 0 25px rgba(57, 150, 142, 0.8);
}

.logro-card.highlight:hover::before {
    animation: gradientBorder 3s ease infinite;
}

.logro-card.highlight::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
                var(--primary-color), 
                #1c4b47, 
                var(--primary-color));
    background-size: 400%;
    border-radius: 17px;
    z-index: -1;
    opacity: 0.8;
    animation: gradientBorder 6s ease infinite;
}

/* Animacion Sombra*/
@keyframes shadowPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(57, 150, 142, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(57, 150, 142, 0.8);
    }
}

/* Gradiente animado */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.8;
    }
}
/* Responsive */

@media (min-width: 1200px) {
    .logro-card.highlight {
        grid-column: span 4; 
    }
}

@media (max-width: 1200px) {
    .logros-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .logros-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .logros-grid {
        grid-template-columns: 1fr;
    }
    
    .logro-card {
        padding: 25px;
    }
}

/* ======= certificados ======= */
.certificaciones-innovaciones {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-btn:hover:not(.active) {
    background-color: rgba(57, 79, 150, 0.5);
    color: var(--light-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.textoGridTab{
    text-align: center;
    margin-bottom: 20px;
    font-family: var(--font-family);
    font-size: 1.3rem;
}
.textoGridTab p{
    margin-top: 0;
    margin-bottom: 0;
}

.textoGridTab a{
    color: var(--primary-color);
}

.certificaciones-innovaciones h2{
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2em;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0px;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}

.logos-grid img {
    max-height: 400px;
    width: auto;
    opacity: 0.8;
    transition: all 0.1s ease; 
}


.logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

#certificaciones .logos-grid {
    overflow: hidden;
    border-radius: 15px; 
}
#certificaciones .logos-grid img:hover {
    transform: scale(1.7);
    filter: grayscale(0%);
    opacity: 1;
}

#innovaciones {
    padding-top: 20px;
}

.innovaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.innovacion-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(57, 150, 142, 0.1);
    text-align: center;
}

.innovacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.innovacion-icon {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.innovacion-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.innovacion-card p {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.innovacion-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.innovacion-details span {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9em;
}

.innovacion-details i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .innovaciones-grid {
        grid-template-columns: 1fr;
    }
    
    .innovacion-card {
        padding: 25px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .innovacion-card {
        padding: 20px;
    }
    
    .innovacion-card h3 {
        font-size: 1.5em;
    }
    
    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
}

/* ======== Footer ======== */
footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 50px 0 20px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 { 
    color: #fff;
    font-size: 1.6em;
    margin-bottom: 15px;
}
.footer-col h4 { 
    color: #fff;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-transform: uppercase; 
}

.footer-col p {
    color: #aaa;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}
.footer-col ul li a:hover {
    color: wheat; 
    text-decoration: underline;
}

.footer-col .social-icons a {
    color: #ccc;
    font-size: 1.3em;
    margin-right: 15px;
    transition: color 0.3s ease, font-size 0.5s ease; 
}
.footer-col .social-icons a:hover {
    color: var(--success-color);
    font-size: 1.5em; 
}

.footer-col i {
    margin-right: 8px;
    color: var(--primary-color); 
}
.contactoFooter a:hover{
    text-decoration: underline white !important;
    color: wheat !important;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}


/* ======== Responsive======= */
@media (max-width: 992px) {
    .hero .container {
        text-align: center;
    }
    .hero-content {
        order: 1;
    }
    .hero-image {
        order: 2;
        margin-bottom: 30px;
    }
    .hero-features {
        justify-content: center;
    }
}

@media (max-width: 992px) {
     header .container {
        flex-direction: row;
        padding: 0 15px;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    header nav{
        margin-top: 0;
        position: relative;
    }

    header nav ul{
        display: none;
    }
    header .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%); 
        margin: 0;
        width: 340px;
    }

}

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        padding: 0 15px;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    header nav {
        margin-top: 15px;
    }
    header nav ul {
        justify-content: center;
    }
    header nav ul li {
        margin: 0 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col .social-icons {
        text-align: center;
        margin-top:10px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 2.5em;
    }
    
    .nav-button {
        display: none;
    }
}

/* ======== SWIPER Index ======== */
.ServiciosEspeciales {
    padding: 80px 0px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    user-select: none;
}

.ServiciosEspeciales .container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.ServiciosEspeciales h2{
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2em;
    text-align: center;
}

.ServiciosEspeciales .subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.servicios-swiper {
    width: 100%;
    height: 100%;
    padding: 20px 0 60px 0; /* Añadido padding inferior para la paginación */
    margin-bottom: 30px; /* Espacio adicional para la paginación */
}


.servicios-swiper .swiper-wrapper {
    align-items: stretch;
    padding: 10px 0; /* Espacio interno para el hover */
}

.servicios-swiper .swiper-slide {
    height: auto;
    display: flex;
    padding: 10px; /* Espacio alrededor de cada slide */
}

.servicios-swiper .servicio-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffffcc;
    border-radius: 15px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    overflow:visible;
    padding: 25px;
    min-width: 300px;
    max-width: 450px;
    margin: 0; /* Aseguramos que no hay margen extra */
}

.servicios-swiper .servicio-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.servicios-swiper .card-icon {
    font-size: 2.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.servicios-swiper .servicio-card:hover .card-icon {
    transform: scale(1.1);
}

.servicios-swiper .servicio-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3em;
    transition: color 0.3s ease;
}

.servicios-swiper .servicio-card:hover h3 {
    color: var(--dark-color);
}

/* Modifica esta regla para que solo el párrafo de descripción crezca */
.servicios-swiper .servicio-card p:not(.card-hint) {
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1; /* Hace que este párrafo ocupe el espacio sobrante */
}

.servicios-swiper .card-hint {
    margin-top: auto; /* Empuja la pista hacia abajo */
    font-size: 0.9em;
    color: var(--primary-color);
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.servicios-swiper .servicio-card:hover .card-hint {
    opacity: 1;
}

.servicios-swiper .swiper-button-prev,
.servicios-swiper .swiper-button-next {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(57, 150, 142, 0.2);
    top: 50%;
    margin-top: -25px;
}

.servicios-swiper .swiper-button-prev:hover,
.servicios-swiper .swiper-button-next:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
    border-color: transparent;
}

.servicios-swiper .swiper-button-prev::after,
.servicios-swiper .swiper-button-next::after {
    font-size: 1.4em;
    font-weight: bold;
}

.servicios-swiper .swiper-pagination {
    bottom: 0;
    margin-top: 20px;
    position: relative;
    padding-top: 20px;
}
.servicios-swiper .swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.servicios-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ======== TARJETAS (flip) ======== */
.servicios-section {
    padding: 80px 0;
}

.servicios-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.servicios-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.servicios-section .section-header h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.servicios-section .section-header p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.servicios-grid > .servicio-card-container:last-child:nth-child(4) {
    grid-column: 2 / span 1;
}

.servicios-section h1{
    font-size: 4rem;
    color: var(--primary-color);
}

.servicios-section .subtitle{
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .servicios-section h1{
        font-size: 3rem;
    }

    .servicios-section .subtitle{
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .servicios-grid > .servicio-card-container:last-child:nth-child(4) {
        grid-column: auto;
    }
    .servicios-section h1{
        font-size: 2rem;
    }

    .servicios-section .subtitle{
        font-size: .9rem;
    }
}



.servicio-card-container {
    height: 400px;
    perspective: 1000px;
}

.servicio-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    cursor: pointer;
}

.servicio-card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    box-sizing: border-box;
    overflow: hidden;
}

.card-front {
    background-color: #ffffffcc;
    justify-content: center;
}

.card-back {
    background-color: #f8f9fa;
    transform: rotateY(180deg);
    justify-content: flex-start;
    overflow-y: hidden;
}

.card-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 0px;
    transition: transform 0.5s ease;
}

.servicio-card:not(.flipped):hover .card-icon {
    transform: rotateY(180deg) scale(1.1);
}

.card-hint {
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--primary-color);
    font-style: italic;
    opacity: 0.8;
}

.servicio-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.card-back h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.servicio-card p {
    color: #555;
    margin-bottom: 20px;
}

.card-back ul {
    text-align: left;
    width: 100%;
    padding-left: 20px;
    margin-bottom: 20px;
}

.card-back li {
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.card-back li:before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -3px;
}

.servicio-card:not(.flipped):hover .card-front {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 992px) {
    .servicios-swiper .servicio-card {
        padding: 25px;
    }
    
    .servicio-card-container {
        height: 380px;
    }

    .servicio-card h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .ServiciosEspeciales,
    .servicios-section {
        padding: 60px 0;
    }
    
    .servicios-swiper .swiper-button-prev,
    .servicios-swiper .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .servicio-card-container {
        height: 350px;
    }
    
    .card-front, .card-back {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .servicio-card-container {
        width: 90%;
        margin: 0 auto;
    }
}


.servicio-detalle-section {
    padding: 60px 0;
    
}

.servicio-detalle {
    padding: 80px 0;
}

.servicio-detalle .container{
    box-shadow: 0px 0px 50px 0px rgba(0, 0, 0, 0.3);
    padding: 2rem 2rem;
    border-radius: 10px;
    background-color: #ffffffcc;
}

.servicio-detalle:last-child {
    border-bottom: none;
}

.servicio-header {
    text-align: center;
    margin-bottom: 50px;
}

.servicio-header .card-icon {
    font-size: 5em;
    color: var(--primary-color);
    padding-top: 2rem;
}

.servicio-header h2 {
    font-size: 2.2em;
    color: var(--dark-color);
    margin: 0rem;
}

.servicio-header .subtitle {
    font-size: 1.2em;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.servicio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.servicio-descripcion{
    padding: 20px;
    background-color: #ffffffcc;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.servicio-descripcion h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5em;
    
}

.servicio-lista {
    list-style-type: none;
    padding: 0;
}

.servicio-lista li {
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    line-height: 2;
}

.servicio-lista li:before {
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.servicio-lista li strong {
    color: var(--dark-color);
}

.servicio-imagen img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    width: 100%;
}

.text1 h3{
    color: var(--primary-color);
    font-size: 2.3rem;
}

@media (max-width: 992px) {
    .servicio-content {
        grid-template-columns: 1fr;
    }
    
    .servicio-imagen {
        order: -1;
        max-width: 500px;
        margin: 0 auto 30px auto;
    }
    
    .servicio-detalle {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .servicio-header h2 {
        font-size: 1.8em;
    }
    
    .servicio-header .subtitle {
        font-size: 1.1em;
    }
}

.servicio-detalle {
    transition: all 0.5s ease;
}

.servicio-detalle:target {
    background-color: rgba(57, 150, 142, 0.05);
    padding-top: 100px;
    padding-bottom: 100px;
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
}

.servicio-detalle:target .servicio-header h2 {
    color: var(--primary-color);
}

/* Estilos para el botón Volver al Inicio */
.volver-inicio-btn {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(57, 150, 142, 0.2);
}

.volver-inicio-btn .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.volver-inicio-btn .btn i {
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .volver-inicio-btn {
        margin-top: 30px;
    }
}


/* ======== NOSOTROS ======== */
.nosotros-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(5px);
}

.nosotros-header {
    text-align: center;
    margin-bottom: 60px;
}

.nosotros-header h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.nosotros-header .subtitle {
    font-size: 2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.nosotros-card {
    background-color: #ffffffcc;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.nosotros-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.nosotros-card:nth-child(even) .nosotros-card-content {
    direction: rtl;
}

.nosotros-card i {
    font-size: 5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.nosotros-card h3 {
    color: var(--dark-color);
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    margin-top: 0px;
}

.nosotros-card h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.nosotros-card p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.nosotros-card .nosotros-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nosotros-card .nosotros-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.nosotros-card:hover .nosotros-image img {
    transform: scale(1.05);
}

.valores-lista {
    text-align: left;
    padding-left: 0;
}

.valores-lista li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.valores-lista li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 3px;
}

.valores-lista li strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.nosotros-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.nosotros-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 992px) {
    .nosotros-card-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nosotros-card:nth-child(even) .nosotros-card-content {
        direction: ltr;
    }
    
    .nosotros-card i {
        font-size: 4em;
    }
}

@media (max-width: 768px) {
    .nosotros-section {
        padding: 60px 0;
    }
    
    .nosotros-header h1 {
        font-size: 2.2em;
    }
    
    .nosotros-header .subtitle {
        font-size: 1.1em;
    }
    
    .nosotros-card {
        padding: 30px;
    }
    
    .nosotros-card h3 {
        font-size: 1.5em;
        line-height: 2;
    }
    
    .nosotros-card p {
        font-size: 1em;
        line-height: 2;
    }
}

@media (max-width: 576px) {
    .nosotros-card {
        padding: 25px;
    }
}



/* ======== CONTACTO======== */
.contacto-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(5px);
}

.contacto-header {
    text-align: center;
    margin-bottom: 60px;
}

.contacto-header h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.contacto-header .subtitle {
    font-size: 2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacto-form {
    background-color: #ffffffcc;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 150, 142, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contacto-info {
    display: grid;
    gap: 25px;
}

.info-card {
    background-color: #ffffffcc;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.info-card i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.info-card p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

.mapa-section {
    padding: 80px 0 80px 0;
}

.mapa-section .container {
    padding: 0 20px;
}

@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .contacto-section {
        padding: 60px 0;
    }
    
    .contacto-header h1 {
        font-size: 2.2em;
    }
    
    .contacto-form {
        padding: 30px;
    }
    
    .info-card {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .contacto-info {
        grid-template-columns: 1fr;
    }
    
    .contacto-form {
        padding: 25px;
    }
    
    .contacto-header h1 {
        font-size: 1.8em;
    }
    
    .contacto-header .subtitle {
        font-size: 1em;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    font-size: 45px;
    color: #FFF;
    transition: transform 0.3s ease;
}

.whatsapp-float i {
    margin-top: 2px;
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float.pulse {
    animation: pulse 1.5s infinite;
}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Sección de Testimonios */
.testimonios-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.testimonios-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2em;
    text-align: center;
}

.testimonios-section .subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonios-swiper {
    width: 100%;
    padding: 20px 0 60px 0;
}

.testimonio-card {
    background-color: #ffffffcc;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 20px;
    border: 1px solid rgba(57, 150, 142, 0.1);
    height: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    min-height: 400px;
    user-select: none;
}

.testimonio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
    flex: 0 0 auto; 
}


.testimonio-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}



.testimonio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.testimonio-info h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.2em;
}

.testimonio-info p {
    margin: 5px 0 0;
    color: var(--secondary-color);
    font-size: 0.9em;
}

.testimonio-text {
    color: #555;
    font-style: italic;
    line-height: 5rem;
    position: relative;
    padding-left: 20px;
    flex: 1; /* Ocupa el espacio disponible */
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
}

.testimonio-text:before,
.testimonio-text:after {
    content: '';
    font-size: 2em;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 0;
}



.testimonio-text:before {
    margin-right: 5px;
    vertical-align: -0.4em;
}

.testimonio-text:after {
    margin-left: 5px;
    vertical-align: -0.6em;
}

.testimonio-rating {
    color: #FFC107;
    margin-top: 15px;
    font-size: 1.2em;
    flex: 0 0 auto; /* Tamaño fijo para las estrellas */
    margin-top: auto; /* Empuja las estrellas hacia abajo */
    padding-bottom: 20px; /* Espacio inferior consistente */
    display: none;;
}

.testimonios-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.swiper-pagination-testimonios .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.testimonio-info h4,
.testimonio-info p,
.testimonio-text {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .testimonio-card {
        min-height: 450px; /* Altura ligeramente menor en móviles */
    }
    .testimonio-avatar {
        width: 50px;
        height: 50px;
    }
}