
:root {
    /* Paleta de Colores Corporativa (Inspiración Salud/Tecnología) */
    --primary-color: #0056b3; /* Azul Médico Profundo */
    --secondary-color: #00a8e8; /* Azul Cielo Tecnológico */
    --accent-color: #e63946; /* Rojo Urgencia (suave) */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* --- Navbar Styles --- */
.navbar {
    padding: 1rem 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin-left: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-emergency {
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-emergency:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
    color: white;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    /* Fondo estático eliminado para usar carrusel */
    margin-top: -76px; /* Offset for transparent header */
    overflow: hidden;
}

/* Estilos para el carrusel de fondo */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-carousel .carousel-item,
.hero-carousel .carousel-inner {
    height: 100%;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Capa oscura superpuesta para leer el texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 30, 60, 0.6));
    z-index: 1;
}

/* Contenedor del texto (ahora necesita z-index mayor) */
.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #004494;
    transform: translateY(-2px);
    color: white;
}

.btn-outline-light-custom {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.3s;
}

.btn-outline-light-custom:hover {
    background-color: white;
    color: var(--primary-color);
}

/* --- Stats / Benefits Section --- */
.benefits-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s;
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    background: rgba(0, 168, 232, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
}

/* --- Services Section --- */
.services-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: none;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-body {
    padding: 2rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.service-link i {
    margin-left: 5px;
    transition: margin 0.2s;
}

.service-link:hover i {
    margin-left: 10px;
}

/* --- Process Section --- */
.process-section {
    padding: 5rem 0;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(0, 86, 179, 0.1);
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
    padding-top: 10px;
}

/* --- Certifications --- */
.cert-section {
    background-color: white;
    padding: 3rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cert-logos img {
    height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
    margin: 0 20px;
}

.cert-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Testimonials --- */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius);
    margin: 1rem;
}

/* --- FAQ & Contact --- */
.faq-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(0, 86, 179, 0.05);
}

/* --- Floating WhatsApp --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* --- Footer --- */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 1rem 0;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.8rem;
}

footer a:hover {
    color: white;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero {
        height: auto;
        padding: 150px 0 80px 0;
    }
}