/* === Reset === */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Base general === */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: white;
    color: black;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === Header === */
header {
    width: 100%;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header img {
    max-width: 120px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: black;
}

/* === Sobre mí === */
.sobre-mi {
    width: 100%;
    background-image: url('ee58f484-4a3b-4333-ac11-bbd824889cbd.jpg');
    background-size: cover;           /* Que cubra todo */
    background-position: center;      /* Centrada */
    background-repeat: no-repeat;     /* No repetida */
    padding: 80px 0;
}

.sobre-mi .contenido {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;                  
}

.sobre-mi h2 {
    margin: 0 0 40px 98px;
    color: #fff;
    font-size: 2rem;
    text-align: left;
}

.sobre-mi .imagenes-sobre-mi {        
    flex: 0 0 300px;
    
}

.sobre-mi .imagenes-sobre-mi img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.sobre-mi .imagenes-sobre-mi img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.sobre-mi .texto {
    flex: 1;
    background: rgba(0, 0, 0, 0.5); /* Recuadro semitransparente */
    padding: 30px;
    border-radius: 10px;
    color: #fff;
    opacity: 0; /* Empieza oculto */
    transform: translateY(20px); /* Posición inicial animada */
    animation: aparecer 8s forwards ease-out; /* Se activa al cargar */
}

.sobre-mi p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Animación */
@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* === Reservar turno === */
#reservar {
    max-width: 800px;
    margin: 10px;
    padding: 10px;
    text-align: left;                /* Texto a la izquierda */
}

#reservar h2 {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 2rem;
}

button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #666;
}

#reservar button {
    display: block;
    margin-right: auto;               /* Botón a la izquierda */
}

form {
    margin-top: 20px;
    padding: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    border-radius: 8px;
}

label {
    font-weight: bold;
    color: #ddd;
}

input, select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #888;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: #2a2a2a;
    color: #fff;
}

#turnosList {
    list-style: none;
    padding: 0;
    text-align: right;                /* Lista a la derecha */
}

#turnosList li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 10px;
}

#turnosList button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 0.9rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
}

#turnosList button:hover {
    background-color: #555;
}

/* Estilos para la sección de contactos */
footer {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    padding: 40px 20px;
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-left h2 {
    margin: 0 0 40px 25px;
    color: #fff;
    font-size: 2rem;
}

.footer-center a {
    display: inline-block;
    margin: 0 15px;
}

.footer-center img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.footer-center img:hover {
    transform: scale(1.1);
}

.footer-right img {
    max-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-center a {
        margin: 0 10px;
    }
}



/* === Responsive === */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav a {
        margin: 10px;
    }

    .sobre-mi .contenido {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }

    .sobre-mi h2 {
        margin: 0 0 20px 0;
        text-align: center;
    }

    .sobre-mi .imagenes-sobre-mi {
        width: 100%;
        max-width: 300px;
    }

    .sobre-mi .imagenes-sobre-mi img {
        width: 100%;
    }

    .sobre-mi .texto {
        text-align: center;
        padding: 20px;
    }

    #reservar {
        margin-right: 20px;
        margin-left: auto;
        padding: 40px 15px;
    }

    button {
        width: 100%;
    }
}
