/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

/* Scroll suave personalizado para navegadores que lo soporten */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #1a365d;
    background-color: #fff;
    overflow-x: hidden;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Variables CSS para tema médico profesional */
:root {
    --primary-blue: #2c5aa0;
    --primary-teal: #2d9cdb;
    --accent-green: #4caf50;
    --deep-blue: #1a365d;
    --light-blue: #f0f8ff;
    --medical-gray: #4a5568;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-accent: #e8f4f8;
    --text-primary: #01485e;
    --text-secondary: #4a5568;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

.container {
    max-width: 1200px;
    margin: 100 auto;
    padding: 0 20px;
}

/* Tipografía mejorada */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; letter-spacing: -0.04em; }
h2 { font-size: 2.5rem; letter-spacing: -0.03em; }
h3 { font-size: 1.75rem; letter-spacing: -0.02em; }
h4 { font-size: 1.5rem; letter-spacing: -0.015em; }

p {
    line-height: 1.7;
    letter-spacing: -0.005em;
}

/* Clase para textos elegantes */
.elegant-text {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

/* Header y Navegación */
header {
    background: #fff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(43, 108, 176, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
        padding: 10px 15px;
        margin-left: 25px;
        margin-right: 25px;

}

.container-fluid{
    align-items: center;
    justify-content: space-between;
}


.navbar .container {
    display: flex;
    justify-content:flex-end;
    align-items: center;

}


.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.025em;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.nav-menu a:hover {
    color: var(--primary-teal);
    background: rgb(165,230,211);
    border-radius: 70px;
    padding: 0.5em 1.2em;
    font-weight: 600;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-teal);
    background: rgb(165,230,211);
    border-radius: 70px;
    padding: 0.5em 1.2em;
    font-weight: 600;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: #e4f3ee;
    padding: 0rem 0;
}

.hero .container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    background-image: url('/assets/back_img/1.webp');
    background-size: cover;

}


/*
.hero-box {
    background-image: url('/assets/back_img/1.jpg');
    background-size: cover;
    background-position: center right;
    position: relative;
  border-radius: 48px;
  padding: 0;
  width: 1768.8511px;
  height: 803.3749px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: none;
  overflow: hidden;
    z-index: 1;
}

.hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(1, 72, 94, 0.6) 0%, rgba(1,147,146,0.6) 40%, rgba(1,72,94,0) 100%);
    border-radius: 48px;
    z-index: 1;
}*/
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content {
  flex: 0 0 45%;
  padding: 280px 0 280px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}
/*
.hero-image {
    display: none;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(1, 72, 94, 0.6) 0%,
    rgba(1, 147, 146, 0.5) 40%,
    rgba(1, 195, 142, 0.4) 100%
  );
  border-radius: 0 48px 48px 0;
  z-index: 1;
}
*/

.hero-content h1 {
    font-family: 'Urbanist', sans-serif;
    text-align: center;
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -0.02em;
    max-width: none;
}

.hero-content h1 strong {
    font-weight: 700;
    display: block;
}

.hero-content p {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #d6f5f0;
    max-width: none;
    line-height: 1.5;
    opacity: 0.9;
    text-align: center;

}

.hero-content .btn-primary {
    background: linear-gradient(90deg, #00cba9 0%, #1abc9c 100%);
    color: #fff;
    border: none;
    border-radius: 32px;
    padding: 1.2em 2.8em;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-content .btn-primary:hover {
    background: linear-gradient(90deg, #1abc9c 0%, #00cba9 100%);
    transform: translateY(-2px);
}

/* Animación de olas - izquierda a derecha */
@keyframes waveFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive para hero */
@media (max-width: 1800px) {
    .hero .container {
        padding: 0 1rem;
    }
    
    .hero-box {
        width: 90%;
        height: auto;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        padding: 0 1rem;
    }
    
    .hero-box {
        width: 95%;
        height: auto;
        padding: 40px 32px;
        border-radius: 32px;
    }
    
    .hero-box h1 {
        font-size: 2.2rem;
    }
    
    .hero-box p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero .container {
        padding: 0 0.5rem;
    }
    
    .hero-box {
        width: 98%;
        height: auto;
        padding: 32px 24px;
        border-radius: 24px;
    }
    
    .hero-box h1 {
        font-size: 1.8rem;
    }
}

/* Botones modernos */
.btn {
    font-family: 'Urbanist', sans-serif;
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

/* Efecto Ripple para botones */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-green));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* Services Section - Carrusel */
.services {
    padding: 100px 0 40px 0;
    background: #e4f3ee;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #01c38e;
    font-weight: 700;
    letter-spacing: 1px;
}

.services-subtitle {
    text-align: center;
    color: #01485e;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    height: auto;
}

.services-carousel {
    overflow: visible;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
    justify-content: center;
    gap: 45px;
    padding: 0;
}

.carousel-btn {
    background: #01c38e;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(1, 195, 142, 0.15);
    transition: background 0.2s;
    z-index: 2;
}

.carousel-btn:hover {
    background: #01485e;
}

.service-card {
    background: #01485e;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(1, 72, 94, 0.10);
    margin: 0;
    min-height: 413.97px;
    max-width: 389.85px;
    width: 389.85px;
    height: 413.97px;
    flex: 0 0 389.85px;
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    text-align: left;
    background-image: url('/assets/back_img/pexels-cottonbro-6502041.webp');
    background-size: cover;
    background-position: center;
}

.service-card-3{
    background: #01485e;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(1, 72, 94, 0.10);
    margin: 0;
    min-height: 413.97px;
    max-width: 389.85px;
    width: 389.85px;
    height: 413.97px;
    flex: 0 0 389.85px;
    padding: 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    text-align: left;
    background-image: url('/assets/back_img/pexels-leeloothefirst-8938665.webp');
    background-size: cover;
    background-position: center;
}

.service-card-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 30, 40, 0.7);
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 30, 40, 0.7);
    z-index: 1;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.service-card:hover::before {
    background: rgba(0, 30, 40, 0.7);
    box-shadow: 0 16px 40px rgba(1, 72, 94, 0.18);
    border-radius: 16px;
}

.service-card-3:hover::before {
    background: rgba(0, 30, 40, 0.7);
    box-shadow: 0 16px 40px rgba(1, 72, 94, 0.18);
    border-radius: 16px;
}

.service-card>* {
    position: relative;
    z-index: 2;
}

.service-card-3>* {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    height: 413.97px;
    box-shadow: 0 16px 40px rgba(1, 72, 94, 0.18);
    transform: translateY(-8px) scale(1.04);
}

.service-card-3:hover{
    height: 413.97px;
    box-shadow: 0 16px 40px rgba(1, 72, 94, 0.18);
    transform: translateY(-8px) scale(1.04);
}

.service-card.featured {
    background: #01485e;
    background-image: url('/assets/back_img/3.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(1, 72, 94, 0.18);
    transform: scale(1.06);
    z-index: 1;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    font-size: 0.8rem;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card.featured ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(1, 72, 94, 0.12);
}

.service-card-3:hover{
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(1, 72, 94, 0.12);
}

.service-card.featured:hover p {
    max-height: 120px;
    opacity: 1;
    margin: 0 0 0.7rem 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card.featured:hover ul {
    max-height: 220px;
    opacity: 1;
    margin: 0 0 0.7rem 0;
}

.service-card.featured ul li {
    font-size: 0.85rem;
    margin-bottom: 3px;
    position: relative;
    padding-left: 1rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card.featured:hover h3 {
    color: #fff;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #01c38e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(1, 195, 142, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #fff;
    color: #01c38e;
    box-shadow: 0 4px 15px rgba(1, 195, 142, 0.3);
    transform: scale(1.15) translateY(-15px);
    z-index: 10;
}

.service-card-3:hover .service-icon {
    background: #fff;
    color: #01c38e;
    box-shadow: 0 4px 15px rgba(1, 195, 142, 0.3);
    transform: scale(1.15) translateY(-15px);
    z-index: 10;
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-card.featured .service-icon {
    background: #01c38e;
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(1, 195, 142, 0.3);
    transition: all 0.3s ease;
}

.service-card.featured h3 {
    font-size: 25px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.service-card h3 {
    font-size: 25px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card-3 h3{
    font-size: 25px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card:hover h3 {
    color: #fff;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    display: none;
}

.service-card-3:hover h3{
    color: #fff;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    display: none;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    font-size: 0.8rem;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card-3 p{
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    font-size: 0.8rem;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover p {
    max-height: 120px;
    opacity: 1;
    margin: 0 0 0.7rem 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card-3:hover p{
    max-height: 120px;
    opacity: 1;
    margin: 0 0 0.7rem 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card-3 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover ul {
    max-height: 220px;
    opacity: 1;
    margin: 0 0 0.7rem 0;
}

.service-card-3:hover ul {
    max-height: 220px;
    opacity: 1;
    margin: 0 0 0.7rem 0;
}

.service-card ul li {
    font-size: 0.85rem;
    margin-bottom: 3px;
    position: relative;
    padding-left: 1rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card-3 ul li {
    font-size: 0.85rem;
    margin-bottom: 3px;
    position: relative;
    padding-left: 1rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-card ul li:before {
    content: '✓';
    color: #01c38e;
    position: absolute;
    left: 0;
    font-size: 0.8em;
    font-weight: bold;
}

.service-card-3 ul li:before {
    content: '✓';
    color: #01c38e;
    position: absolute;
    left: 0;
    font-size: 0.8em;
    font-weight: bold;
}


.service-card .btn-primary {
    background: linear-gradient(90deg, #01c38e 0%, #019392 100%);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 0.7em 2em;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(1, 195, 142, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
}

.service-card-3 .btn-primary {
    background: linear-gradient(90deg, #01c38e 0%, #019392 100%);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 0.7em 2em;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(1, 195, 142, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
}

.service-card:hover .btn-primary {
    opacity: 1;
    transform: translateY(0);
}

.service-card-3:hover .btn-primary {
    opacity: 1;
    transform: translateY(0);
}

.service-card .btn-primary:hover {
    background: #01485e;
    color: #fff;
}

.service-card-3 .btn-primary:hover {
    background: #01485e;
    color: #fff;
}

.service-card.featured h3 {
    color: #fff;
}

.service-card-3.featured h3 {
    color: #fff;
}

.service-card p {
    font-size: 0.98rem;
    text-align: center;
    margin-bottom: 18px;
    color: inherit;
}

.service-card-3 p {
    font-size: 0.98rem;
    text-align: center;
    margin-bottom: 18px;
    color: inherit;
}

.service-card ul {
    margin: 0 0 18px 0;
    padding: 0;
    list-style: none;
    color: inherit;
}

.service-card-3 ul {
    margin: 0 0 18px 0;
    padding: 0;
    list-style: none;
    color: inherit;
}


.service-card .btn-primary {
    background: linear-gradient(90deg, #01c38e 0%, #019392 100%);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 0.7em 2em;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(1, 195, 142, 0.15);
    transition: background 0.2s;
    text-decoration: none;
}

.service-card-3 .btn-primary {
    background: linear-gradient(90deg, #01c38e 0%, #019392 100%);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 0.7em 2em;
    font-weight: 600;
    font-size: 1rem;
    margin-top: auto;
    box-shadow: 0 2px 8px rgba(1, 195, 142, 0.15);
    transition: background 0.2s;
    text-decoration: none;
}

.service-card .btn-primary:hover {
    background: #01485e;
    color: #fff;
}

.service-card-3 .btn-primary:hover {
    background: #01485e;
    color: #fff;
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    background: #01c38e;
    border-radius: 50%;
    margin: -56px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(1, 195, 142, 0.12);
}

.service-card-3 .service-icon {
    width: 70px;
    height: 70px;
    background: #01c38e;
    border-radius: 50%;
    margin: -56px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(1, 195, 142, 0.12);
}

.service-card.featured .btn-primary {
    background: linear-gradient(135deg, #01c38e 0%, #fff 100%);
    color: #01485e;
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}



.service-card:hover::after {
    opacity: 1;
}

.service-card-3 :hover::after {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}


.service-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-green));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-card-3:hover .service-icon::after {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.05);
}

.service-card-3:hover .service-icon {
    transform: translateY(-2px) scale(1.05);
}

.service-icon svg {
    color: white;
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: rotate(5deg);
}

/* Estilos para iconos antiguos (fallback) */
.service-icon i {
    color: #01c38e;
    font-size: 32px;
}

.mdsc-info{
      position:absolute;
      bottom:18px;
      left:18px;
      right:18px;
      z-index:4;
      color:#fff;
      text-shadow: 0 6px 12px rgba(0,0,0,0.45);
    }

/* Hover adaptado (mapa del snippet del usuario) */
/* Aplicado sólo a tarjetas laterales: .service-card:not(.featured) */
.carousel-track .service-card:not(.featured) .mdsc-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding-bottom: 18px;
    box-sizing: border-box;
    border-radius: 15px;
    color: #fff;
    z-index: 4;
    transition: height 0.5s ease, border-radius 0.5s ease;
    text-align: center;
}

.carousel-track .service-card-3.service-card:not(.featured) .mdsc-info{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding-bottom: 18px;
    box-sizing: border-box;
    border-radius: 15px;
    color: #fff;
    z-index: 4;
    transition: height 0.5s ease, border-radius 0.5s ease;
    text-align: center;
}

.carousel-track .service-card-3:not(.featured) .mdsc-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    padding-bottom: 18px;
    box-sizing: border-box;
    border-radius: 15px;
    color: #fff;
    z-index: 4;
    transition: height 0.5s ease, border-radius 0.5s ease;
    text-align: center;
}

/* Titular grande que se reduce al hacer hover (similar a tu h2 enorme -> pequeño) */
.carousel-track .service-card:not(.featured) .mdsc-info h3 {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    font-size: 25px;
    line-height: 1;
    transition: font-size 0.5s ease;
    text-transform: none;
}

.carousel-track .service-card-3:not(.featured) .mdsc-info h3 {
    margin-bottom: 0;
    text-align: center;
    width: 100%;
    font-size: 25px;
    line-height: 1;
    transition: font-size 0.5s ease;
    text-transform: none;
}

/* Al hacer hover sobre la tarjeta, la 'face2' se encoge a 60px mostrando el contenido debajo */
.carousel-track .service-card:not(.featured):hover .mdsc-info {
    height: auto;
    border-radius: 0 0 15px 15px;
    align-items: flex-start;
    background-image: url('/assets/back_img/pexels-cottonbro-6502041.webp');
    padding: 80px 20px 20px 20px;
}

.carousel-track .service-card-345:not(.featured):hover .mdsc-info {
    height: auto;
    border-radius: 0 0 15px 15px;
    align-items: flex-start;
    background-image: url('/assets/back_img/pexels-leeloothefirst-8938665.webp');
    padding: 80px 20px 20px 20px;
}

.carousel-track .service-card:not(.featured):hover .mdsc-info h3 {
    font-size: 20px;
        display: none;
}

.carousel-track .service-card-3:not(.featured):hover .mdsc-info h3 {
    font-size: 20px;
        display: none;
}

/* Gradientes por posición (adaptados de tu snippet) */
.carousel-track .service-card:nth-child(1):not(.featured) .mdsc-info{ background-image: url('/assets/back_img/pexels-cottonbro-6502041.webp') ; background-size: 0 auto; }
.carousel-track .service-card:nth-child(2):not(.featured) .mdsc-info{ background-image: url('/assets/back_img/3.webp'); background-size: 0 auto; }
.carousel-track .service-card:nth-child(3):not(.featured) .mdsc-info{ background-image: url('/assets/back_img/pexels-leeloothefirst-8938665.webp'); background-size: 0 auto;}

/* Small-screen: reduce initial h3 size to avoid overflow */
@media (max-width: 720px) {
    .carousel-track .service-card:not(.featured) .mdsc-info h3 { font-size: 1.2rem; }
    .carousel-track .service-card:not(.featured) .mdsc-info { height: 140px; }
    .carousel-track .service-card:not(.featured):hover .mdsc-info { height: 60px; }
}



.service-card p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-card-3 p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    background: rgba(56, 161, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Technology Section */
/* Technology Section - Diseño exacto de la imagen */
.technology {
    padding: 80px 0 100px;
    background: #e4f3ee;
    position: relative;
}

.technology .container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
}

.technology h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: #01c38e;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.technology-intro {
    text-align: center;
    font-size: 20px;
    color: #01485e;
    margin-bottom: 5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
/*
 .mordida {
      position: relative;
      width: 300px;
      height: 300px;
      background: white;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
      overflow: hidden;
    }

    .mordida::before,
    .mordida::after {
      content: "";
      position: absolute;
      width: 60px;
      height: 60px;
      background: black;
      border-radius: 50%;
      z-index: 2;
    }

 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
    padding: 0 20px;
}


.tech-category {
    background: #ffffff;
    padding: 4.5rem 1.8rem 2.5rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.35s ease;
    position: relative;
    /* Mordidas circulares más grandes en las 4 esquinas */
    background: 
        radial-gradient(circle at top left, #d4eef0 30px, #ffffff 30px),
        radial-gradient(circle at top right, #d4eef0 30px, #ffffff 30px),
        radial-gradient(circle at bottom left, #d4eef0 30px, #ffffff 30px),
        radial-gradient(circle at bottom right, #d4eef0 30px, #ffffff 30px);
    background-size: 60px 60px, 60px 60px, 60px 60px, 60px 60px;
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-repeat: no-repeat;
    /* Asegurar que el fondo principal sea blanco */
    background-color: #ffffff;
}

/* Eliminamos los pseudo-elementos ya que usamos background */

/* Badge circular grande en esquina superior derecha */
.tech-badge {
    width: 120px;
    height: 120px;
    background: #01c38e;
    border-radius: 50%;
    position: absolute;
    right: -20px;
    top: -20px;
    box-shadow: 0 6px 20px rgb(0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.tech-category:hover .tech-badge {
    transform: scale(1.2);
    box-shadow: 0 18px 40px rgba(25, 203, 169, 0.5);
}

.tech-badge svg {
    width: 50px;
    height: 50px;
}

.tech-category:hover {
    transform: translateY(-25px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.tech-category h3 {
    font-size: 25px;
    color: #2b5f7f;
    margin-bottom: 2.2rem;
    margin-top: 20px;
    font-weight: 600;
    text-align: left;
    position: absolute;
    top: 20px;
    left: 20px;
    line-height: 1.5;
    z-index: 1;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 80px;
}

.tech-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.1rem;
    background: #e8f7f5;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #d9f2ee;
    transform: translateX(15px);
    box-shadow: 0 8px 25px rgba(25, 203, 169, 0.25);
}

.tech-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #a5e6d3;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.tech-item:hover .tech-icon {
    transform: scale(1.15);
    background: #16b89b;
}

.tech-icon svg {
    width: 26px;
    height: 26px;
    z-index: 1;
    position: relative;
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.tech-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item h4 {
    font-size: 1rem;
    color: #2b5f7f;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.tech-item p {
    font-size: 0.87rem;
    color: #5a8a9f;
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .technology h2 {
        font-size: 1.8rem;
    }
    
    .technology-intro {
        font-size: 1rem;
    }
}

.btn-services {
    background: #3498db;
    color: white;
    position: absolute;
}

/* Main Content Wrapper with Background Images */
.main-content-wrapper {
    position: relative;
    background: #e4f3ee;
    overflow: hidden;
   
    
}

/* About Section - Nueva sección diseñada */
.about {
    padding: 240px 0;
    position: relative;
    overflow: hidden;
    background-image: url('/assets/back_img/pexels-karola-g-5206940.webp');
    /* Usar auto 100% para asegurar que la imagen se muestre completa en altura
       y que la parte izquierda (estetoscopio) permanezca visible */
    background-size: auto 100%;
    background-position: left center;
    background-repeat: no-repeat;
    min-height: 760px;
    display: flex;
    align-items: center;
}

.about::before {
    /* Overlay más desplazado hacia la derecha: deja más imagen visible
       y traslada la zona clara a partir de ~60% para texto */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 60%, rgba(255,255,255,0.8) 78%);
    z-index: 1;
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    /* dar algo más de margen derecho para la caja de texto */
    padding: 0 6% 0 0;
}

.about-content {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    padding-right: 0;
}

.about-text {
    width: 36%;
    max-width: 520px;
    margin-left: auto;
    margin-right: 2%;
}

.about h2 {
    font-size: 46px;
    color: #19cba9;
    font-weight: 800;
    letter-spacing: 4px;
    text-align: left;
    line-height: 1.05;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.about-text-box {
    background: transparent;
    padding: 2.25rem;
    border-radius: 18px;
    max-width: 100%;
    margin-top: 1.25rem;
    box-shadow: none;
    border: none;
}

/* Responsive tweaks para about section */
@media (max-width: 1200px) {
    .about-content { padding-right: 10%; }
    .about-text { width: 38%; max-width: 480px; }
}

@media (max-width: 900px) {
    .about { padding: 80px 0; }
    .about-content { padding-right: 5%; }
    .about-text { width: 50%; max-width: 520px; }
}

@media (max-width: 700px) {
    /* En móvil centrar y apilar */
    .about { background-position: center top; }
    .about-content { justify-content: center; padding-right: 0; }
    .about-text { width: 92%; max-width: none; margin: 0 auto; }
    .about h2 { text-align: center; }
    .about-text-box { margin-left: auto; margin-right: auto; }
}

.about-intro {
    font-size: 18px;
    margin-bottom: 1.5rem;
    color: #01485e;
    line-height: 1.7;
    text-align: left;
    font-weight: 600;
}

/* Desktop: colocar .about-text en posición absoluta anclada a la derecha para evitar restricciones de caja */
@media (min-width: 900px) {
    .about .container { position: relative; }
    .about-text {
        /* acercar un poco más al borde derecho y bajar ligeramente */
        right: 8%;
        top: 20%;
        width: 480px;
        max-width: 480px;
        margin: 0;
    }
    .about-content { padding-right: 0; }
}

.about-description {
    font-size: 18px;
    margin-bottom: 0;
    color: #01485e;
    line-height: 1.7;
    text-align: left;
    font-weight: 500;
}

/* Specialization Section */
.specialization {
    padding: 80px 0;
    background: #e4f3ee;
    position: relative;
    z-index: 2;
}

.specialization::before {
    display: none;
}

.specialization h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #01485e;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
    
}

.specialization-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    
}

.specialization-card {
    background: #fff;
    padding: 2rem 1.2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(25, 203, 169, 0.3);
}

.specialization-card:hover {
    height: 320px;
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.specialization-card.highlighted:hover {
    background: white;
}

.specialization-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
}

.specialization-card.highlighted {
    background: #fff;
    color: #fff;
    box-shadow: 0 6px 20px rgba(22, 184, 155, 0.4);
}

.specialization-icon {
    margin: 0 auto 1.5rem;
    width: 128px auto;
    height: 128px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    
}

.specialization-card:hover .specialization-icon {
    transform: scale(1.1);
    z-index: 2;
    transform: translateY(60px);

}



.specialization-icon svg {
    width: 64px;
    height: 64px;
    color: #19cba9;
    fill: #19cba9;
    stroke: #19cba9;
}

.specialization-icon img {
    width: 128px;
    height: 128px;
    transition: all 0.3s ease;
    filter: brightness(0) saturate(100%) invert(63%) sepia(85%) saturate(2816%) hue-rotate(122deg) brightness(93%) contrast(89%);
}

.specialization-card:hover .specialization-icon img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(85%) saturate(2816%) hue-rotate(122deg) brightness(93%) contrast(89%);
    transform: scale(1.1);
}

.specialization-card.highlighted .specialization-icon img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(85%) saturate(2816%) hue-rotate(122deg) brightness(93%) contrast(89%);
}

.specialization-card.highlighted:hover .specialization-icon img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(85%) saturate(2816%) hue-rotate(122deg) brightness(93%) contrast(89%);
}

.specialization-card h3 {
    font-size: 1.1rem;
    color: #01485e;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.specialization-card:hover h3 {
    color: #01485e;
    z-index: 10;
    transform: translateY(-160px);
}

.specialization-card.highlighted h3 {
    color: #01485e;
}

.specialization-card.highlighted:hover h3 {
    color: #01485e;
}

.card-description {
    color: #01485e;
    line-height: 1;
    font-size: 0.85rem;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.specialization-card:hover .card-description {
    max-height: 50px;
    opacity: 1;
    margin-top: 1rem;
    color: #01485e;
}

.specialization-card.highlighted .card-description {
    color: white;
}

.specialization-card.highlighted:hover .card-description {
    color: #01485e;
}

/* Statistics Section */
.statistics {
    padding: 80px 0;
    background: #e4f3ee url('/assets/backg/Recurso_5.png') top right no-repeat;
    background-size: 
    30% auto,
    20% auto;
    position: relative;
    z-index: 2;
}

.statistics::before {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 20px rgba(25, 203, 169, 0.25);
    border: 2px solid transparent;
}

.stat-card::before,
.stat-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 18px;
    border-radius: 9px;
}

/*.stat-card::before {
    background: #01485e;
    top: -9px;
    left: 20px;
    animation: borderRun1 17s linear infinite;
}

.stat-card::after {
    background: #01c38e;
    bottom: -9px;
    right: 20px;
    animation: borderRun2 17s linear infinite;
}

@keyframes borderRun1 {
    0% {
        top: -9px;
        left: 20px;
        width: 120px;
        height: 18px;
    }
    25% {
        top: -9px;
        left: calc(100% - 129px);
        width: 120px;
        height: 18px;
    }
    26% {
        top: -9px;
        left: calc(100% - 9px);
        width: 18px;
        height: 120px;
    }
    50% {
        top: calc(100% - 129px);
        left: calc(100% - 9px);
        width: 18px;
        height: 120px;
    }
    51% {
        top: calc(100% - 9px);
        left: calc(100% - 129px);
        width: 120px;
        height: 18px;
    }
    75% {
        top: calc(100% - 9px);
        left: 20px;
        width: 120px;
        height: 18px;
    }
    76% {
        top: calc(100% - 129px);
        left: -9px;
        width: 18px;
        height: 120px;
    }
    99% {
        top: 20px;
        left: -9px;
        width: 18px;
        height: 120px;
    }
    100% {
        top: -9px;
        left: 20px;
        width: 120px;
        height: 18px;
    }
}

@keyframes borderRun2 {
    0% {
        bottom: -9px;
        right: 20px;
        width: 120px;
        height: 18px;
    }
    25% {
        bottom: -9px;
        right: calc(100% - 129px);
        width: 120px;
        height: 18px;
    }
    26% {
        bottom: -9px;
        right: calc(100% - 9px);
        width: 18px;
        height: 120px;
    }
    50% {
        bottom: calc(100% - 129px);
        right: calc(100% - 9px);
        width: 18px;
        height: 120px;
    }
    51% {
        bottom: calc(100% - 9px);
        right: calc(100% - 129px);
        width: 120px;
        height: 18px;
    }
    75% {
        bottom: calc(100% - 9px);
        right: 20px;
        width: 120px;
        height: 18px;
    }
    76% {
        bottom: calc(100% - 129px);
        right: -9px;
        width: 18px;
        height: 120px;
    }
    99% {
        bottom: 20px;
        right: -9px;
        width: 18px;
        height: 120px;
    }
    100% {
        bottom: -9px;
        right: 20px;
        width: 120px;
        height: 18px;
    }
}

/*.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before,
.stat-card:hover::after {
    animation-duration: 17s;
}*/

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #01485e;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.stat-card h4 {
    font-size: 1.3rem;
    color: #01485e;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-card p {
    color: #01485e;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #e4f3ee;
    background-image: url('/assets/back_img/pexels-karola-g-7195374.webp');
    background-size: 100% auto;
    position: relative;
}

.contact::before {
      content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.479); /* ← color blanco con 40% de opacidad */
  z-index: 1;
}

.contact-content > * {
    position: relative;
    z-index: 2;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h2 {
    font-size: 35px;
    margin-bottom: 1rem;
    color: #01c38e;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-header p {
    font-size: 17px;
    color: #01485e;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: left;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(1, 72, 94, 0.1);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #01c38e;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 15px;
    color: #01485e;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon svg {
    color: white;
    width: 28px;
    height: 28px;
}

.contact-item span {
    font-weight: 500;
    color: #01485e;
}

.contact-form {
    background: rgba(165, 230, 210, 0.295);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(1, 72, 94, 0.1);
    backdrop-filter: blur(50px);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 5px 2px;
    border: 2px solid #ffffff;
    border-radius: 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #01485e;
    transition: all 0.3s ease;
    font-family: 'Urbanist', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0b5c7;
    font-weight: 200;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #01c38e;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 203, 169, 0.1);
}

.btn-submit {
    background: linear-gradient(135deg, #01c38e 0%, #19cba9 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 1rem;
    box-shadow: 0 8px 20px rgba(25, 203, 169, 0.3);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #19cba9 0%, #01c38e 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(25, 203, 169, 0.4);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modal-content h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-header {
        text-align: center;
    }
    
    .contact-header h2 {
        font-size: 2.2rem;
    }
    
    .contact-items-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: none;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 0;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-right: 1.5rem;
    }
    
    .contact-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .services, .about, .contact {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
}

/* Animaciones suavizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .feature {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling para Safari */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Responsive para Carrusel de Servicios */
@media (max-width: 1200px) {
    .service-card {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .carousel-container {
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }
    
    .services h2 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .carousel-container {
        padding: 0 40px;
    }
    
    .service-card {
        flex: 0 0 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 30px;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.9rem;
    }
}

/* Statistics Section */
.statistics {
    padding: 80px 0;
    background: #e4f3ee;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    color: #fff;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
    text-align: center;
}

.stat-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
     text-align: center;

}

.stat-description {
    background: #01485e;
    border-radius: 14px;
    padding: 1.2rem;
    margin-top: auto;
}

.stat-description p {
    color: #01485e;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Estilo específico para la primera card - Años de Experiencia */
.stat-card:first-child {
    background: #4cb493;
    border: 1px solid rgba(76, 180, 147, 0.3);
}

.stat-card:first-child:hover {
    background: rgba(76, 180, 147, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(76, 180, 147, 0.2);
}

.stat-card:first-child .stat-icon {
    color: #01485e;
}

.stat-card:first-child .stat-description {
    background: #ebf6f2;
    border-radius: 14px;
}

/* Estilo específico para la segunda card - Cumplimiento Normativo */
.stat-card:nth-child(2) {
    background: #0aa993;
    border: 1px solid rgba(10, 169, 147, 0.3);
}

.stat-card:nth-child(2):hover {
    background: rgba(10, 169, 147, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 169, 147, 0.2);
}

.stat-card:nth-child(2) .stat-icon {
    color: #01485e;
}

.stat-card:nth-child(2) .stat-description {
    background: #e6f7f4;
    border-radius: 14px;
}

/* Estilo específico para la tercera card - Soporte Crítico */
.stat-card:nth-child(3) {
    background: #019392;
    border: 1px solid rgba(1, 147, 146, 0.3);
}

.stat-card:nth-child(3):hover {
    background: rgba(1, 147, 146, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(1, 147, 146, 0.2);
}

.stat-card:nth-child(3) .stat-icon {
    color: #fff;
}

.stat-card:nth-child(3) .stat-description {
    background: #e6f7f4;
    border-radius: 14px;
}

.stat-card:nth-child(3) .stat-description p {
    color: #01485e;
    text-align: justify;
}