/* --------------------------
           COLOR SCHEME & GLOBAL STYLES
        --------------------------- */
:root {
    /* Primary Colors (shades of blue) */
    --primary-color: #007ACC;
    --secondary-color: #005BB5;
    --accent-color: #004191;

    /* Neutrals */
    --light-bg: #f0f8ff;
    --dark-bg: #519ccf;
    --dark-text: #3e3e3e;
    --light-text: #ffffff;
    --text-color: #242424;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --------------------------
   ANIMATION CLASSES
--------------------------- */
/* Fade-in-up on page load */
.fade-in-up {
    opacity: 0; /* Start transparent */
    transform: translateY(30px); /* Start slightly below */
    animation: fadeInUp 1s ease forwards;
}

/* Optional: Add an animation delay for each section
   to have a staggering effect */
#about.fade-in-up {
    animation-delay: 0.2s;
}

#expertise.fade-in-up {
    animation-delay: 0.4s;
}

#contact.fade-in-up {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------
   HEADER
--------------------------- */
header {
    background-color: var(--light-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.logo-container img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.logo-container h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
}

.navbar h1 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1em;
}

.nav-links a {
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    color: var(--primary-color);
    font-weight: bold;
}

.nav-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* --------------------------
   HERO SECTION (Background Image)
--------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    background: linear-gradient(
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1)
    ),
    url('images/fondo_biopsia_3.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    /* Add fade-in-up on page load */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards; /* Slightly longer for hero */
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --------------------------
   ABOUT SECTION
--------------------------- */
.about {
    background-color: #ffffff;
    padding: 4em 1em;
    text-align: center;
}

/* .fade-in-up assigned in the HTML section for animations */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1em;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.2em;
    line-height: 1.5;
}

.about-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s; /* Subtle hover effect */
}

.about-image img:hover {
    transform: scale(1.03);
}

/* --------------------------
   EXPERTISE SECTION (Background Image)
--------------------------- */
.expertise {
    background: linear-gradient(
            rgb(182, 219, 244),
            rgb(158, 209, 244)
    ),
    url('https://via.placeholder.com/1200x600.png?text=Laboratory+Background');
    background-size: cover;
    background-position: center;
    color: var(--dark-bg);
    padding: 4em 1em;
    text-align: center;
}

.expertise h2 {
    font-size: 2rem;
    margin-bottom: 1em;
    color: var(--dark-bg);
}

.expertise-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.expertise-item {
    background-color: rgb(255, 255, 255);
    padding: 2em;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s;
}

.expertise-item:hover {
    transform: translateY(-5px);
}

.expertise-item h3 {
    margin-bottom: 0.5em;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.expertise-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* --------------------------
   CONTACT SECTION
--------------------------- */
.contact {
    background-color: #ffffff;
    padding: 4em 1em;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1em;
    color: var(--primary-color);
}

.contact p {
    /*max-width: 600px;*/
    margin: 0.5em auto 1.5em;
    color: var(--text-color);
    font-size: 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-top: 1em;
    margin-bottom: 0.25em;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    height: 120px;
}

.contact-form button {
    margin-top: 1em;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.contact-form button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.02);
}

/* --------------------------
   FOOTER
--------------------------- */
footer {
    background-color: var(--dark-bg);
    text-align: center;
    padding: 2em 1em;
    font-size: 0.9rem;
    color: #000000;
}

footer p {
    margin-bottom: 0.5em;
}

.footer-container {
    display: grid;
    justify-content: center;
    /*align-items: center;
    gap: 1em;
    margin-top: 1em;*/
    grid-template-columns: repeat(auto-fit, minmax(280px, 1200px));
    /*width: 90%;*/
    color: var(--dark-text);
}

.footer-container div {
    width: fit-content;
}

.phone {
    width: 15px;
    vertical-align: text-bottom;
    margin-right: 0.25em;
}

.mail {
    width: 15px;
    vertical-align: text-bottom;
    margin-right: 0.25em;
}

.location {
    width: 15px;
    vertical-align: text-bottom;
}

.clock {
    width: 15px;
    vertical-align: text-bottom;
    margin-right: 0.25em;
}

/* --------------------------
   RESPONSIVE DESIGN
--------------------------- */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .expertise h2 {
        font-size: 1.5rem;
    }

    .about-text,
    .about-image {
        flex: unset;
    }
}