@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

/* HEADER */
header {
    background-color: #a0522d;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 70px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul li a:hover {
    text-decoration: underline;
}

/* CONTACTO */
.contacto {
    max-width: 600px;
    width: 90%;
    margin: 50px auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contacto h2 {
    color: #a0522d;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 26px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.contacto p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* FORMULARIO */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    text-align: left;
    color: #a0522d;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fc;
    transition: 0.3s ease-in-out;
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: #a0522d;
    box-shadow: 0 0 8px rgba(0, 43, 92, 0.3);
}

/* Estilización del select */
select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23002b5c" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

/* BOTÓN */
button {
    background-color: #25D366;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #1EBE56;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE DESIGN */

/* Para pantallas medianas (tablets) */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .contacto {
        width: 95%;
        padding: 20px;
    }
    
    input, textarea, select {
        font-size: 14px;
    }
    
    button {
        font-size: 14px;
        padding: 10px;
    }
}

/* Para pantallas pequeñas (móviles) */
@media screen and (max-width: 480px) {
    .contacto h2 {
        font-size: 22px;
    }
    
    .contacto p {
        font-size: 14px;
    }
    
    input, textarea, select {
        font-size: 14px;
        padding: 10px;
    }
    
    button {
        font-size: 14px;
        padding: 10px;
        width: 100%;
    }
}


footer {
    text-align: center;
    padding: 20px;
    background-color: #a0522d;
    color: white;
    margin-top: auto;
    width: 100%;
}


nav ul li a.active {
    font-weight: bold;
    color: #fff; /* Color del texto */
    background-color: #ffbe98;; /* Color de fondo del cuadro */
    padding: 8px 15px; /* Espaciado interno para hacer el cuadro */
    border-radius: 5px; /* Bordes redondeados */
    text-decoration: none; /* Quitar subrayado */
    transition: background 0.3s; /* Animación suave */
}
/* Efecto de desvanecimiento */
body {
    opacity: 0;
    animation: fadeIn 0.2s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
