/* Base Styles */
:root {
    --primary-color: #159292;  /* Teal color */
    --secondary-color: #0d6e6e; /* Darker teal for hover states */
    --accent-color: #f26630;   /* Orange accent color */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #fff;
    --black: #000;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e05d00;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 40px;
}

.quick-access {
    display: flex;
    gap: 20px;
    margin-right: 30px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.quick-link:hover {
    color: var(--primary-color);
}

.quick-link i {
    font-size: 1.2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center; /* Añade esta línea para alinear verticalmente */
    padding: 0;
    margin: 0;
}

.main-nav li {
    position: relative;
    display: flex;
    align-items: center; /* Asegura alineación vertical */
    height: 100%;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 15px 0; /* Ajusta el padding para mejor alineación */
    display: flex;
    align-items: center;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav .current a::after {
    width: 100%;
}

.main-nav .current a {
    color: var(--primary-color);
}

.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 5px;
}
.has-submenu > a::after {
    content: none; /* Opcional: elimina el triángulo si prefieres solo el icono */
}

.has-submenu .fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: var(--transition);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    padding: 0 15px;
}

.submenu a {
    display: block;
    padding: 8px 0;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.submenu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    font-size: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Quick Links Section */
.quick-links-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quick-link-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quick-link-card .icon {
    width: 80px;
    height: 80px;
    background-color: rgba(21, 146, 146, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.quick-link-card:hover .icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.quick-link-card .icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.quick-link-card:hover .icon i {
    color: var(--white);
}

.quick-link-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.quick-link-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Featured Services Section */
.featured-services {
    padding: 80px 0;
}

.service-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-button {
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    background-color: rgba(21, 146, 146, 0.1);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.tab-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.tab-content:hover .tab-image img {
    transform: scale(1.05);
}

.service-features {
    margin: 20px 0 30px;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-features i {
    color: var(--accent-color);
    margin-top: 3px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin-bottom: 10px;
    opacity: 0.7;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .lead {
        font-size: 1.3rem;
    }
    
    .tab-content-inner {
        grid-template-columns: 1fr;
    }
    
    .tab-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .quick-access {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 15px 0 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .main-nav li {
        width: 100%;
    }
    .main-nav a {
        padding: 10px 0;
        width: 100%;
    }
    
    .has-submenu > a {
        justify-content: space-between;
    }
    
    .has-submenu > a::after {
        display: none;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 0 20px;
        display: none;
    }
    
    .submenu.active {
        display: block;
    }
    
    .hero {
        margin-top: 120px;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
}



.quick-links-section .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.quick-links-section .icon svg, 
.quick-links-section .icon img {
    width: 100%;
    height: 100%;
    color: var(--color-primary); /* Si quieres controlar el color via CSS */
}

/* Opcional: para SVG con color fijo */
.quick-links-section .icon img[src$=".svg"] {
    filter: none; /* Evita que los SVG se vean afectados por filtros CSS */
}


.icon {
    position: relative;
    width: 40px;
    height: 40px;
}

.icon-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-card:hover .icon-default {
    opacity: 0;
}

.quick-link-card:hover .icon-hover {
    opacity: 1;
}












/* About Hero Section */
.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #019191;
    color: white;
    overflow: hidden;
    margin-top: 80px;
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero .lead {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Wave Animation */
.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffffff" opacity=".25"/></svg>');
    background-repeat: repeat-x;
    animation: wave 15s linear infinite;
}

.wave:nth-child(1) {
    bottom: 0;
    opacity: 0.5;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    bottom: 10px;
    opacity: 0.3;
    animation-delay: -5s;
    animation-duration: 20s;
}

.wave:nth-child(3) {
    bottom: 20px;
    opacity: 0.1;
    animation-delay: -2s;
    animation-duration: 25s;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #019191;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

.circle-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(1, 145, 145, 0.1);
    z-index: 1;
    animation: pulse 4s infinite ease-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* ECG Animation */
.ecg-animation {
    position: relative;
    width: 100%;
    height: 100px;
    margin: 40px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.ecg-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    transform: translateY(-50%);
}

.ecg-pulse {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #019191;
    transform: translateY(-50%);
    animation: ecg 4s linear infinite;
}

@keyframes ecg {
    0% {
        clip-path: polygon(0% 50%, 0% 50%, 0% 50%, 0% 50%);
    }
    10% {
        clip-path: polygon(0% 50%, 10% 50%, 10% 50%, 10% 50%);
    }
    12% {
        clip-path: polygon(0% 50%, 10% 50%, 10% 20%, 12% 20%);
    }
    14% {
        clip-path: polygon(0% 50%, 10% 50%, 10% 20%, 12% 20%, 14% 80%);
    }
    16% {
        clip-path: polygon(0% 50%, 10% 50%, 10% 20%, 12% 20%, 14% 80%, 16% 50%);
    }
    100% {
        clip-path: polygon(0% 50%, 10% 50%, 10% 20%, 12% 20%, 14% 80%, 16% 50%, 100% 50%);
    }
}

/* Mission & Vision Section */
.mission-vision {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: white;
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #019191;
}

.mv-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.mv-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(1, 145, 145, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mv-icon svg {
    width: 30px;
    height: 30px;
    fill: #019191;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #019191;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: #019191;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background-color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(1, 145, 145, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background-color: #019191;
    transform: scale(1.1);
}

.value-icon svg {
    width: 40px;
    height: 40px;
    fill: #019191;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon svg {
    fill: white;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #019191;
}

.value-card p {
    color: #666;
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 3rem;
    }
    
    .about-hero .lead {
        font-size: 1.3rem;
    }
    
    .mv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}



.main-nav .current a {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav .current a::after {
    width: 100%;
}





/* Nuevas animaciones de ondas concéntricas */
.water-ripples {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border: 2px solid rgba(1, 145, 145, 0.7);
    border-radius: 50%;
    animation: ripple 3s infinite ease-out;
    transform: translate(-50%, -50%);
}

.ripple:nth-child(1) {
    animation-delay: 0s;
    width: 100%;
    height: 100%;
}

.ripple:nth-child(2) {
    animation-delay: 1s;
    width: 100%;
    height: 100%;
}

.ripple:nth-child(3) {
    animation-delay: 2s;
    width: 100%;
    height: 100%;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Audio Wave Animation */
.audio-waves {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin: 40px 0;
}

.wave-bar {
    width: 8px;
    height: 20px;
    margin: 0 3px;
    background-color: #019191;
    border-radius: 4px;
    animation: wave 1.4s infinite ease-in-out;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.6s; }
.wave-bar:nth-child(5) { animation-delay: 0.8s; }
.wave-bar:nth-child(6) { animation-delay: 1.0s; }
.wave-bar:nth-child(7) { animation-delay: 1.2s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2.5); }
}



/* Estilos para las tarjetas centradas */
.centered-card {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .centered-card {
        grid-column: span 1;
    }
    
    /* Centrar las últimas dos tarjetas */
    .values-grid {
        justify-content: center;
    }
    
    /* Asegurar que las últimas dos tarjetas estén centradas */
    .value-card:nth-last-child(-n+2) {
        grid-column: span 1;
    }
}

@media (min-width: 992px) {
    /* Para pantallas más grandes, mostrar las últimas dos tarjetas centradas */
    .values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .value-card:nth-child(5) {
        grid-column: 2 / span 1;
    }
    
    .value-card:nth-child(6) {
        grid-column: 3 / span 1;
    }
}



/* Para móviles, indicar que el enlace de servicios es clickeable */
@media (max-width: 768px) {
    .main-nav.active .services-link {
        cursor: pointer;
        background-color: rgba(255, 255, 255, 0.1);
    }
}


/* Estilos opcionales para el fallback de imagen en iOS */
.ios-image-fallback {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-image-fallback img {
    max-width: 100%;
    height: auto;
}

