@font-face {
    font-family: 'Golden-Moment';
    src: url('/static/fonts/Golden-Moment.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    transition: all 0.3s ease;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    color: rgb(168, 152, 113);
    font-family: 'Golden-Moment'
}

/* --- BANNER --- */
.banner {
    width: 100%;
    height: 150px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(65, 60, 57, 0.95);
    margin: 0 auto;
    max-width: 95%;
    border: 1px solid rgba(186, 170, 227, 0.3);
    backdrop-filter: blur(4px);
}

.frase-banner {
    font-size: 2.7rem;
    color: rgb(168, 152, 113);
    opacity: 0.8;
    font-weight: 400;
    white-space: nowrap;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    font-weight: normal;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-left h1 {
    margin: 50px;
    font-size: 7rem;
    color: rgb(168, 152, 113);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    font-weight: normal;
}

.banner-left .logo {
    height: 100px;
    width: auto;
}

.banner-right {
    position: relative;
    height: 150px;
    width: 400px;
    margin-left: 60px;
    margin-right: 30px;
}

.banner-right img {
    position: absolute;
    top: 20px;
    right: 50px;
    width: auto;
    height: 110px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0;
    animation: bannerFade 12s infinite;
}

@keyframes bannerFade {
    0% { opacity: 0; }
    8% { opacity: 1; }
    25% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}

.banner-right img:nth-child(1) { animation-delay: 0s; }
.banner-right img:nth-child(2) { animation-delay: 4s; }
.banner-right img:nth-child(3) { animation-delay: 8s; }
.banner-right img:nth-child(4) { animation-delay: 12s; }
.banner-right img:nth-child(5) { animation-delay: 16s; }
.banner-right img:nth-child(6) { animation-delay: 20s; }

/* --- LAYOUT PRINCIPAL --- */
.layout {
    display: flex;
    flex: 1 1 auto; /* crecer y ocupar espacio restante */
    min-height: 0;  /* para evitar overflow */
    overflow: hidden;
}

/* --- MENÚ VERTICAL --- */
.menu-vertical {
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 200px;
    overflow-y: auto;
    background: transparent;
    gap: 15px;
    font-size: 1.3rem;
    
}

.menu-vertical a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    background: linear-gradient(to right, #a38e5b, #c1b87c);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.menu-vertical a:hover {
    background: linear-gradient(to right, #d4af37, #f0d87a);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    color: #000;
}

/* Submenú */
#proyectos-lista {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

#proyectos-lista a {
    color: white !important;
    background: linear-gradient(to right, #a38e5b, #c1b87c) !important;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    text-align: center;
    width: 100%;
    transition: background 0.3s ease, color 0.3s ease;
}

#proyectos-lista a:hover {
    background: linear-gradient(to right, #d4af37, #f0d87a) !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7) !important;
    color: #000;
}

.contenido-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: nowrap; /* evitar que la imagen se baje */
    width: 100%;    
}
.imagen-loop {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 3px solid rgba(168, 152, 113, 0.6);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}
.contenido-media img,
.carrusel img,
.imagen-seccion,
.imagen-loop {
    max-width: 100%;
    max-height: 50vh; /* o lo que prefieras */
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.contenido-media {
    flex: 1 1 40%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center; /* centrar imagen vertical */
}

.contenido-media img,
.contenido-media video {
    border: 3px solid rgba(168, 152, 113, 0.6);
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    max-height: 40vh;
    height: auto;
    width: auto;
    object-fit: contain;
}

.contenido-media video {
    margin-right: 2rem;
    max-width: 100%;
    width: 100%;  
    
}

.contenido-texto {
    flex: 1 1 50%;
    max-width: 800px;
    text-align: justify;
    background-color: rgba(245, 240, 220, 0.85);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(75, 66, 42, 0.3);
    display: flex;
    align-items: flex-start; /* centra texto verticalmente si es una sola línea */
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
}

.contenido {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* centra verticalmente el contenido interno */
    padding: 2rem 3rem 4rem 3rem;
    min-height: 0;  /* para que flex funcione bien */
   
}

.contacto-wrapper {
    display: flex; 
    max-width: 1000px;
    margin: 2rem auto;
    width: calc(100vw - 200px);
    margin-left: 200px;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: auto;  /* que no obligue a 100vh */
    box-sizing: border-box;
}

.titulo-contacto {
    text-align: center;
    font-size: 2.1rem;
    margin-top: 2rem;   /* 👈 NUEVO: separa del banner */
    font-family: 'Golden-Moment', sans-serif;
    color: #4b422a;

}
.contenido-formulario {
    max-width: 1000px;
    margin: 1rem auto 0.5rem auto; /* menos margen inferior */
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
}

#estado-envio {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #4b422a;
    text-align: center;
}


/* El contenedor interno para texto e imagen: flex row y centra vertical */
.contenido-interno {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;  /* centra verticalmente texto e imagen */
    gap: 3rem;
    width: 100%;
}

.error-text {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    display: block;
}

/* Centrar título arriba */
.titulo-seccion {
    text-align: center;
    flex-shrink: 0;
    position: relative; /* para z-index */
    height: 80px; /* 👈 Fijamos altura exacta */
    width: 100%;
    margin-bottom: 1rem; /* poco margen para separar del contenido */
    z-index: 10;

}
.titulo-seccion h2 {
    font-size: 3rem;
    font-family: 'Golden-Moment', sans-serif;
    color: #4b422a;
    margin: 0;
}
/* Formulario en dos columnas */
.formulario-contacto {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
}

.form-columna {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-columna label {
    font-weight: bold;
    font-size: 1.3rem;
    color: #5c4b2c;
}

.form-columna input,
.form-columna textarea {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #eef2ff;
}

.form-columna textarea {
    resize: vertical;
    max-height: 300px;
    font-family: inherit;
}

.form-columna button {
    align-self: flex-end;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    background-color: #a89871;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-columna button:hover {
    background-color: #8d7b5f;
}

.estado-envio {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1rem;
    color: #555;
}

/* --- FOOTER --- */
.footer {
    color: rgba(162, 162, 162, 0.553);
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #222;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    font-family: Golden-Moment;
    font-size: 18px;
}

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

.footer-left {
    flex: 1;
    text-align: left;
    font-size: 1.5rem;
    color: rgb(135, 123, 91);
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.footer .social-icons a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(135, 123, 91);
    font-size: 16px;
    text-decoration: none;
    background: linear-gradient(to right, rgb(168, 152, 113), rgb(214, 208, 191));
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

.footer .social-icons a:hover {
    transform: scale(1.1);
    background: linear-gradient(to right, #eaeaea, rgb(168, 152, 113));
}

.footer .social-icons i {
    font-size: 25px;
}

/* Fade-in para la sección cargada */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-vertical a {
    cursor: pointer;
}

/* Animación de fade-in y slide-up */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar la animación al texto */
.contenido-texto {
    animation: fadeSlideIn 0.8s ease-out;
    animation-fill-mode: both;
}
