:root {
    /* Colores */
    --primary-color: #0D47A1; /* Azul profundo */
    --secondary-color: #FFFFFF; /* Blanco */
    --background-color: #F8F9FA; /* Blanco grisáceo muy claro */
    --footer-bg-color: #1A237E; /* Azul índigo oscuro */
    --button-color: #00BCD4; /* Cian vibrante */
    --text-color-dark: #212529; /* Casi negro */
    --text-color-light: #E3F2FD; /* Azul claro para texto de footer */
    --link-color-footer: #81D4FA; /* Azul cielo claro para enlaces de footer */
    --accent-color: var(--button-color); /* El color del botón como acento */

    /* Colores de secciones de fondo */
    --section-bg-1: #F8F9FA;
    --section-bg-2: #E3F2FD;
    --section-bg-3: #FFFFFF;
    --section-bg-4: #F0F8FF;
    --section-bg-5: #E0F7FA;

    /* Fuentes */
    --font-family-base: 'Inter', sans-serif;
    --font-family-heading: 'Inter', sans-serif;
    --font-family-footer: 'Roboto', sans-serif;

    /* Espaciado */
    --spacing-unit: 1rem;
    --padding-section: 4rem 2rem;
    --margin-lg: 2rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;

    /* Transiciones */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;

    /* Sombras */
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Base global styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--text-color-dark);
    line-height: 1.7;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--primary-color);
    line-height: 1.3;
    margin-top: var(--margin-lg);
    margin-bottom: var(--spacing-unit);
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 1.8rem; font-weight: 600; }
h4 { font-size: 1.4rem; font-weight: 500; }
h5 { font-size: 1.2rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    margin-bottom: var(--spacing-unit);
    font-size: 1.1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-family-heading);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Glasismo sutil */
    background-color: rgba(255, 255, 255, 0.8); /* Fondo semitransparente para glasismo */
}

.header a {
    color: var(--primary-color);
    font-weight: 500;
}

.header a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed) var(--transition-timing);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--button-color);
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Card-based Layouts */
.card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glass); /* Sombra de glasmorfismo */
    backdrop-filter: blur(15px); /* Efecto de glasmorfismo */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borde sutil para glasmorfismo */
    padding: 2rem;
    margin-bottom: var(--margin-lg);
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

/* Add a subtle medical futuristic glow on hover for cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 188, 212, 0.05), rgba(13, 71, 161, 0.05));
    opacity: 0;
    transition: opacity var(--transition-speed) var(--transition-timing);
    pointer-events: none;
    z-index: 1;
}

.card:hover::before {
    opacity: 1;
}

/* Section Backgrounds */
.section-bg-1 { background-color: var(--section-bg-1); padding: var(--padding-section); }
.section-bg-2 { background-color: var(--section-bg-2); padding: var(--padding-section); }
.section-bg-3 { background-color: var(--section-bg-3); padding: var(--padding-section); }
.section-bg-4 { background-color: var(--section-bg-4); padding: var(--padding-section); }
.section-bg-5 { background-color: var(--section-bg-5); padding: var(--padding-section); }

/* Forms */
.form-group {
    margin-bottom: var(--spacing-unit);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: var(--font-family-base);
    transition: all var(--transition-speed) var(--transition-timing);
    box-sizing: border-box; /* Asegura que padding y border estén incluidos en el ancho */
    background-color: var(--secondary-color);
    box-shadow: var(--shadow-inset); /* Sutil sombra interna */
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2); /* Sutil glow en focus */
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--text-color-light);
    font-family: var(--font-family-footer);
    padding: 3rem 2rem;
    text-align: center;
}

.footer a {
    color: var(--link-color-footer);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.footer h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-unit);
}

/* Utility classes (complementing Tailwind, if needed) */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 1rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 1rem; }
    .section-bg-1, .section-bg-2, .section-bg-3, .section-bg-4, .section-bg-5 {
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .header { padding: 0.8rem 1rem; }
}

/* Keyframes for subtle animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Apply fade-in to sections for a smoother load (requires JS for intersection observer) */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Medical Futuristic elements */
.icon-neon {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color), 0 0 20px rgba(0, 188, 212, 0.7);
}

.border-futuristic {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.5);
    border-radius: var(--border-radius-md);
}

/* Specific styles for medical futuristic layout elements (e.g., a "service grid" or "blog post list") */
.grid-medical-futuristic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--margin-lg);
}

/* Progress bars or indicators can use the accent color */
.progress-bar {
    height: 8px;
    background-color: var(--section-bg-2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    width: 0%; /* Should be controlled by JS */
    transition: width 0.6s ease-out;
}

/* Scroll to top button (example) */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-speed) var(--transition-timing);
    z-index: 999;
    opacity: 0.8;
}

.scroll-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    background-color: var(--primary-color);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}