body{
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
    background: linear-gradient(0deg,rgba(0, 48, 48, 1) 0%, rgba(0, 68, 77, 1) 22%, rgba(0, 83, 94, 1) 47%, rgba(0, 121, 128, 1) 72%, rgba(0, 148, 148, 1) 100%); 
    color: #FFFCFC; 
    text-align: center;
}

img {
    max-width: 100%;
    height: auto;
}

.berkshire-swash-regular {
  font-family: "Berkshire Swash", serif;
  font-weight: 400;
  font-style: normal;
}

.font-strange {
  font-family: 'ITC Benguiat';
  src: url('fuentes/itc_benguiat.woff2') format('woff2'),
       url('fuentes/itc_benguiat.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* CORREGIDO: Se elimina el margen negativo para corregir el espacio superior perdido. */
h1 { margin: 30px 0 30px 0;  color: white;  font-size: 60px; -webkit-text-stroke-color: #001414; -webkit-text-stroke-width: 1px;}

/* MENÚ INTERNO (Contenedor UL) */
ul {
    list-style: none;
    margin: 20px 0; /* Agregado margen para separar del h1 */
    padding: 0;
    display: flex;
    justify-content: center; /* CRÍTICO: Centra el menú interno */
    gap: 20px; 
    background-color: transparent; 
}

/* BOTONES DE ENLACE INTERNO (Volver, Contacto, etc.) */
ul li a {
    display: inline-block;
    padding: 8px 15px;
    text-decoration: none;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    /* CORRECCIÓN: Estilo semitransparente original */
   background-color: #347D7D;  
}

 ul li a:hover {
    background-color: #169191;
    border-color: #70E0E0;
    color: #1a1a1a;
}

.contenedor{
    margin: 50px auto;
    max-width: 1200px;
    width: 90%; 
    height: auto;
    background: #103838;
    border: 1px solid #018C8C;
    box-shadow: 5px 5px 5px #018C8C;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

/* REGLA DE CORRECCIÓN CRÍTICA PARA EL FORMULARIO */
.contenedor.contacto-layout {
    display: block; /* Desactiva Flexbox para que el formulario se ordene en columna */
    text-align: center;
}
.contenedor.contacto-layout form {
    margin: 20px auto; /* Centra el formulario dentro del layout de bloque */
}


.imagen
{     
        flex: 0 0 350px; 
        max-width: 100%;
        flex-shrink: 1;
        border-radius: 1px;
        height: auto; 
        border: 1px solid #018C8C;
        box-shadow: 5px  5px #018C8C;
}

            blockquote 
            {   
                flex: 1; 
                min-width: 300px; 
                text-align: center;
                margin: 3px 5px 1px 0;
                font-size: 20px;
                color: white;
                padding: 10px; 
                background-color: rgba(100, 200, 190, 0.5);
                border-radius: 5px;
            }

/* ESTILOS DEL FORMULARIO (Fuera del Media Query para que se apliquen siempre) */

.formulario-contenedor p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f7f7f7; /* Color de texto claro */
}

form {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); 
    border-radius: 8px;
    border: 1px solid #e20202; 
    max-width: 600px; /* Limita el ancho del formulario */
}

/* CORRECCIÓN: label debe ser de bloque */
label {
    display: block; 
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #e20202; /* Color de texto del label rojo */
    text-align: left; /* Alinea el label a la izquierda dentro del formulario */
}

/* CORRECCIÓN: inputs y textareas deben ocupar el 100% del ancho */
input[type="text"],
input[type="email"],
textarea {
    width: 100%; 
    box-sizing: border-box; 
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #e20202;
    border-radius: 4px;
    background-color: #1a1a1a; 
    color: #f7f7f7; 
    font-family: inherit;
    font-size: 1em;
}

textarea {
    resize: vertical;
}

button[type="submit"] {
    background-color: #e20202; 
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-family: 'Chewy', cursive; 
    transition: background-color 0.3s ease;
    align-self: flex-start; 
    width: auto; 
}

button[type="submit"]:hover {
    background-color: #ff3333; 
}


@media (max-width: 600px) {
    .contenedor {
        flex-direction: column;
        align-items: center; 
        padding: 15px; 
    }
}