

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

header .top-bar {
    background-color: #0077b6;
    color: white;
    padding: 10px 5%;
    font-size: 14px;
}

header .top-bar .contact-info span {
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

nav.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo img {
    height: 60px;
}

.navbar .menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar .menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar .menu li a:hover {
    color: #0077b6;
}

section {
    padding: 80px 5%;
    text-align: center;
}

h2 {
    font-size: 32px;
    color: #0077b6;
    margin-bottom: 20px;
}

p, li {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* estilos para valores interactivos */
.valores-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.valor-button {
    padding: 20px;
    border: 2px solid #0077b6;
    border-radius: 10px;
    background: white;
    color: #0077b6;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.valor-button:hover {
    transform: translateY(-5px);
}

.valor-button.active {
    background: #0077b6;
    color: white;
}

/* grid para especialidades */
.grid-especialidades {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.especialidad-card {
    background: white;
    border: 2px solid #0077b6;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.especialidad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.2);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    padding: 14px;
    background-color: #0077b6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #005f92;
}

@media(max-width: 768px) {
    .navbar .menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 5%;
        background: white;
        width: 200px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .valor-button, .especialidad-card {
        width: 100%;
        max-width: 300px;
    }

    .menu-toggle {
        display: none !important;
    }
}
