/* ==============================================
   AGENDA - ESTILOS CSS CON METODOLOGÍA BEM
   Bloque: .agenda
   Elemento: .agenda__elemento
   Modificador: .agenda__elemento--modificador
============================================== */

/* Reset básico */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--blanco);
    color: var(--gris-oscuro);
}

/* =====================
   BLOQUE: Agenda
===================== */
.agenda {
    max-width: 1000px;
    margin: 100px auto 30px;
    padding: 20px;
}

/* ELEMENTO: Sección principal */
.agenda__seccion {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.agenda__seccion h2 {
    text-align: center;
    color: var(--verde);
    margin-bottom: 30px;
    font-size: 28px;
}

/* ELEMENTO: Formulario */
.agenda__formulario {
    margin-top: 20px;
}

/* ELEMENTO: Fila de formulario */
.agenda__fila-formulario {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* ELEMENTO: Grupo de formulario */
.agenda__grupo-formulario {
    flex: 1;
    margin-bottom: 20px;
}

.agenda__formulario label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--verde);
}

.agenda__formulario select,
.agenda__formulario input[type="date"],
.agenda__formulario input[type="text"],
.agenda__formulario input[type="email"],
.agenda__formulario input[type="tel"],
.agenda__formulario textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.agenda__formulario textarea {
    resize: vertical;
    min-height: 100px;
}

.agenda__formulario select:focus,
.agenda__formulario input:focus,
.agenda__formulario textarea:focus {
    border-color: var(--verde);
    outline: none;
}

/* ELEMENTO: Acciones del formulario */
.agenda__acciones-formulario {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* ELEMENTO: Botón */
.agenda__boton {
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    border: none;
}

/* MODIFICADOR: Botón primario */
.agenda__boton--primario {
    background: var(--verde);
    color: white;
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agenda__boton--primario:hover {
    background: var(--verde-oscuro);
}

/* MODIFICADOR: Botón secundario */
.agenda__boton--secundario {
    background-color: white;
    color: var(--verde);
    border: 2px solid var(--verde);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda__boton--secundario:hover {
    background-color: #f5f5f5;
}

/* ELEMENTO: Error de formulario */
.agenda__error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* =====================
   GLOBAL: Navegación y Footer
===================== */

/* Estilos para el formulario de agenda */

a {
    text-decoration: none;
}

body, html {
    overflow-x: hidden;
    background-color: #15907c;
}

ul {
    list-style: none;
}

.barra-nav a {
    color: #15907c;
}

.barra-nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 10px;
    color: #15907c;
    z-index: 1000;
    background-color: #f0f1ec;
}

.logo img {
    width:140px;
}

.links-nav {
    display: flex;
    align-items: center;
}

.links-nav li {
    margin: 0 30px;
}

.links-nav a {
    color: #15907c;
    font-weight: 500;
    transition: color 0.5s ease;
}

.menu-toggle {
    display: none;
}

.btn-menu {
    position: absolute;
    top: 15px;
    bottom: 20px;
    right: 30px;
    width: 40px;
    cursor: pointer;
    display: none;
    z-index: 1001;
}

.btn-menu img {
    width: 100%;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        margin-top: 80px;
        padding: 15px;
    }
    
    .appointment-section {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .appointment-section h2 {
        font-size: 24px;
    }
    
    .appointment-form select,
    .appointment-form input,
    .appointment-form textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px;
        font-size: 14px;
    }
}

.piePagina {
    background-color: #f0f1ec;
    color: #15907c;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    margin: 10px 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .btn-menu {
        display: block;
    }
    
    .links-nav {
        display: none;
        width: 100%;
        height: 100vh;
        background: #f0f1ec;
        position: fixed;
        top: 60px;
        left: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: max-height 0.3s ease;
    }

    .links-nav li {
        margin: 20px 0;
    }

    .links-nav a {
        font-size: 1.2rem;
    }
    
    .menu-toggle:checked ~ .links-nav {
        display: flex;
        max-height: 300px;
        border-bottom-left-radius: 20%;
        border-bottom-right-radius: 20%;
        animation: fadeIn 0.3s ease
    }

    @keyframes fadeIn {
        from { opacity: 0;}
        to { opacity: 1;}
    }
    
    .links-nav li {
        margin: 15px 0;
    }

    .appointment-steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 15px;
        text-align: left;
    }
    
    .step.active:after {
        left: 0;
        transform: none;
        width: 30px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}