
/* =========================================
   1. RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Georgia", serif;
    color: #222;
    background: #fff;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   2. HEADER & NAVEGACIÓN (PROFESIONAL)
   ========================================= */
header {
    background: #111;
    border-bottom: 3px solid #bfa15a;
    position: sticky; /* Queda fijo al hacer scroll */
    top: 0;
    z-index: 1000;
}

header .container {
    max-width: 1100px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

nav a:hover {
    color: #bfa15a;
}

/* DROPDOWN GENERAL & IDIOMAS */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    display: none;
    min-width: 160px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    z-index: 1100;
    border-top: 2px solid #bfa15a;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #fff !important;
    text-transform: none;
    font-weight: normal;
    font-size: 0.85rem;
}

.dropdown-menu li a:hover {
    background: #bfa15a;
    color: #fff !important;
}

/* Iconos de Idiomas */
.flag-icon {
    width: 20px;
    height: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.lang-select {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #bfa15a !important;
}

/* =========================================
   3. HERO (INICIO & INTERNAS)
   ========================================= */
main {
    flex: 1;
}

.hero {
    height: 80vh;
    background-image: url("../imagenes/templo1.jpeg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-rito, .hero-conocenos {
    height: 60vh;
}

.hero-conocenos {
    background-image: url("../imagenes/templo-conocenos.png");
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-contenedor-texto {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 60px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #bfa15a;
    backdrop-filter: blur(8px);
    max-width: 90%;
    animation: entradaLateralRecuadro 1.5s ease-out forwards;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.divisor-dorado {
    height: 2px;
    width: 80px;
    background: #bfa15a;
    margin: 20px auto;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

@keyframes entradaLateralRecuadro {
    from { opacity: 0; transform: translateX(-150px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =========================================
   4. SECCIÓN VALORES & REVELACIÓN (SCROLL)
   ========================================= */
.valores {
    padding: 100px 20px;
    background-image: url("../imagenes/templo2.jpeg");
    background-size: cover;
    position: relative;
}

.valores::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.valor {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto 70px auto;
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 5px solid #bfa15a;
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease;
}

.valor.visible {
    opacity: 1;
    transform: translateY(0);
}

.valor img {
    width: 180px;
    border-radius: 10px;
    object-fit: cover;
}

/* =========================================
   5. DISEÑO DE PÁGINAS INTERNAS
   ========================================= */
.pagina-interna {
    padding: 80px 20px;
    background: #fdfdfd;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 60px;
}

.titulo-seccion h1 {
    font-size: 2.5rem;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.bloque-sobre {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.bloque-inverso {
    flex-direction: row-reverse;
}

.sobre-contenido h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #111;
    border-bottom: 2px solid #bfa15a;
    display: inline-block;
    padding-bottom: 5px;
}

.sobre-imagen-wrapper {
    flex: 0 0 300px;
}

.imagen-sobre {
    width: 100%;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.separador-elegante {
    text-align: center;
    margin: 40px 0 80px 0;
    color: #bfa15a;
    font-size: 1.5rem;
    letter-spacing: 10px;
}

.grid-caracteristicas, .grid-requisitos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.item-rito, .item-requisito {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

.item-requisito {
    border-top: 4px solid #bfa15a;
}

.item-rito:hover, .item-requisito:hover {
    transform: translateY(-10px);
    border-color: #bfa15a;
}

/* =========================================
   6. CONTACTO & FORMULARIO
   ========================================= */
.contacto-wrapper {
    display: flex;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto 80px auto;
    background: #fff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    border-top: 4px solid #bfa15a;
}

.contacto-info { flex: 1; }
.contacto-formulario { flex: 1.5; }

.grupo-input {
    position: relative;
    margin-bottom: 25px;
}

.grupo-input input, .grupo-input textarea {
    width: 100%;
    padding: 12px 0;
    font-family: inherit;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    transition: 0.3s;
}

.grupo-input label {
    position: absolute;
    top: 12px;
    left: 0;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}

.grupo-input input:focus ~ label,
.grupo-input input:not(:placeholder-shown) ~ label,
.grupo-input textarea:focus ~ label,
.grupo-input textarea:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 0.85rem;
    color: #bfa15a;
    font-weight: bold;
}

.boton-dorado {
    background: #111;
    color: #bfa15a;
    border: 1px solid #bfa15a;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    display: inline-block;
}

.boton-dorado:hover {
    background: #bfa15a;
    color: #fff;
}

/* =========================================
   7. FOOTER & RESPONSIVE (MÓVIL)
   ========================================= */
footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

@media (max-width: 850px) {
    /* Header Móvil */
    header .container {
        flex-direction: column;
        padding: 15px 10px;
    }
    
    .logo img {
        height: 45px;
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 0;
    }

    nav a {
        font-size: 0.75rem;
    }

    /* Dropdown en móvil */
    .dropdown-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
    }

    /* Ajustes Contenido */
    .hero { height: 60vh; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }

    .contacto-wrapper, .bloque-sobre, .bloque-inverso, .valor {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 25px;
    }

    .sobre-imagen-wrapper, .valor img {
        width: 100%;
        max-width: 250px;
        margin: auto;
    }

    .logias-oficiales {
        flex-direction: column;
        gap: 40px;
    }
}