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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

h1 {
    font-family: Brush Script MT, cursive;
    font-weight: lighter;
 /*   color: #800080;
    position: absolute;
    font-size: 1em;
    top: 20%;
    left: 0%;
*/
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    display: inline-block;
    margin-right: 20px;
}

figure {
    display: inline-block;
    width: 100%;
    height: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 3px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2em;
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

input[type="text"], input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="submit"] {
    width: 100%;
    height: 40px;
    padding: 10px;
    font-size: 1.4em;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #3e8e41;
}

ul li a {
    text-decoration: none;
    color: #337ab7;
}

ul li a:hover {
    color: #23527c;
}

/* Estilo para el título centrado */
.hero-title {
    position: absolute; /* Posiciona el título de forma absoluta dentro de hero-container */
    top: 30%;           /* Mueve el borde superior del título al 50% del contenedor */
    left: 65%;          /* Mueve el borde izquierdo del título al 50% del contenedor */
    transform: translate(-50%, -50%); /* CRUCIAL: Ajusta el título 50% de su propio ancho y alto hacia atrás, centrándolo perfectamente */
    
    white-space: nowrap;

    /* Estilos visuales para que se vea bien sobre la imagen */
    color: #393e41;           /* Texto blanco para contraste */
    font-size: 1.5rem;      /* Tamaño de fuente grande, puedes ajustar esto */
    z-index: 5;             /* Asegura que esté sobre la imagen pero debajo del menú si es necesario */
    text-align: center;     /* Centra el texto si ocupa varias líneas */
}

/* 1. Contenedor principal de la imagen y el menú */
.hero-container {
    position: relative; /* CRUCIAL: Permite posicionar el menú de forma absoluta respecto a este contenedor */
    width: 100%;
    /* Ajusta la altura del contenedor principal para que la imagen de portada se vea bien */
    height: 60vh; 
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra todo el contenedor sin deformarse */
}

/* 2. El contenedor del menú desplegable */
.dropdown-menu {
    position: absolute; /* Posiciona el menú sobre la imagen */
    top: 20px;          /* Ajusta la distancia desde arriba */
    right: 20px;        /* Ajusta la distancia desde la derecha */
    z-index: 10;        /* Asegura que el menú esté por encima de la imagen */
}

/* 3. El botón del menú */
.menu-button {
    background-color: transparent; 
    color: transparent;  /*Ocultamos el texto si quedó algo */
    padding: none;         /* Eliminamos el padding para controlar el tamaño total con las barras */
    border: none;
    cursor: pointer;
    
    /* Definimos el tamaño total del área del botón */
    width: 30px; 
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribuye las 3 barras uniformemente en la altura */
}

/* Estilo para cada una de las barras horizontales */
.bar {
    display: block;
    width: 100%;
    height: 1.5px; /* Grosor de la línea */
    background-color: gray; /* Color de las líneas (ajusta si tu imagen de fondo es clara) */
    border-radius: 2px;
    transition: all 0.3s ease-in-out; /* Animación suave al abrir/cerrar (opcional) */
}

/* 4. La lista de enlaces del menú (el contenido que se despliega) */
.menu-content {
    display: none; /* OCULTA la lista por defecto */
    position: absolute;
    right: 0;
    background-color: transparent;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    list-style: none; /* Elimina las viñetas */
    padding: 0;
    margin: 0;
}

.menu-content li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.menu-content li a:hover {
    background-color: #f1f1f1;
}

/* 5. Clase para mostrar el menú con JavaScript */
.show {
    display: block; 
}
