/* --- VARIABLES & RESET --- 
:root {
    --primary-color: #163b54;
    /* Brand Primary 
    --accent-color: #e74c3c;
    /* Safety Red (Accent) 
    --accent-hover: #c0392b;

    /* NEW: Vision-aligned Colors 
    --accent-medical: #3498db;
    /* Medical Blue 
    --accent-eco: #2ecc71;
    /* Eco Green 
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s;
}

*/

/* --- VARIABLES DE IDENTIDAD MÉDICA & ECO --- */
:root {
    /* Color Principal: Azul Profundo (Confianza, Autoridad) */
    --primary-color: #1a3c5a;

    /* Acento Principal: Verde Turquesa (Higiene, Tecnología, Frescura) */
    --accent-color: #00b894;
    --accent-hover: #00a884;

    /* Colores de soporte */
    --medical-blue: #3498db;
    /* Para destacar el aspecto médico */
    --eco-green: #2ecc71;
    /* Para destacar el aspecto ambiental */

    --text-dark: #2d3436;
    --bg-light: #f0f7f9;
    /* Un tono muy sutil de azul clínico en el fondo */
    --bg-white: #ffffff;

    --shadow-card: 0 10px 30px rgba(0, 184, 148, 0.15);
    /* Sombra con tinte verde suave */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- HEADER & NAVIGATION --- */
/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--bg-white);
    color: var(--primary-color);
    padding: 0.5rem 0;
    /* Reduced padding slightly for a cleaner look */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Softer shadow */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    /* Font styles removed as logo is now an image */
}

.logo img {
    height: 50px;
    /* Ensure logo height consistency */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    /* Increased gap for better spacing */
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    /* Explicitly set text color */
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    /* Thicker underline */
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    /* Use accent color for hover effect */
    transition: width var(--transition-speed);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--accent-color);
    /* Sync text hover color with underline */
}

/* --- HERO SECTION --- */
/* Note: Replace 'https://via.placeholder.com/1920x1080' with your actual industrial image */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(26, 37, 48, 0.9) 0%, rgba(26, 37, 48, 0.7) 100%),
        url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--bg-white);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 16px 40px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all var(--transition-speed);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

/* --- SERVICES SECTION --- */
.services {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.section-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    border-bottom: 4px solid transparent;
    transition: all var(--transition-speed);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-light);
    z-index: -1;
    transition: height var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-color);
}

.service-card:hover::before {
    height: 100%;
}

.icon-box {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    gap: 10px;
}

/* --- CONTACT CTA --- */
.contact-cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--bg-white);
}

.contact-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    padding: 14px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    background-color: #151e26;
    color: #bdc3c7;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    margin-right: 10px;
    transition: background var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu implementation would go here */
    }

    .hero {
        clip-path: none;
        height: 70vh;
    }
}

/* --- ABOUT US SECTION --- */
.about-us {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

@media (min-width: 992px) {
    .about-content {
        flex-direction: row;
        align-items: center;
    }

    .about-text {
        flex: 1;
        padding-right: 40px;
    }

    .about-image {
        flex: 1;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-medical);
    /* Medical Blue */
    margin-top: 10px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.about-text .highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-eco);
    /* Eco Green */
    padding-left: 20px;
    margin-bottom: 30px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
    /* Soft Medical Blue Shadow */
}

/* Etiqueta superior "Fundada por Médicos" */
.badge-medical {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--medical-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.intro-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

/* Lista de características (Eco, Tech, Salud) */
.feature-list {
    margin: 30px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-list li i {
    background-color: var(--bg-white);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    /* Evita que el ícono se aplaste */
}

/* Caja de ubicación */
.location-box {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.location-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.location-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* Tarjeta flotante en la imagen */
.about-image {
    position: relative;
}

.floating-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    /* Sale un poco de la imagen para efecto 3D */
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 250px;
}

.floating-card i {
    font-size: 2rem;
    color: var(--medical-blue);
}

.floating-card h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.floating-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #777;
}

/* Ajuste Responsive para la tarjeta flotante */
@media (max-width: 768px) {
    .floating-card {
        position: static;
        margin-top: -20px;
        margin-left: 20px;
        right: auto;
    }
}