/* ===== styles.css ===== */
/* Estilos para el Panteón de Dioses Colombianos */
/* Diseño orgánico, inspirado en textiles y tierra */

:root {
    --color-fondo: #f9f5eb;
    --color-texto: #2d2a24;
    --color-primario: #2a4d3e;
    --color-primario-oscuro: #1f3b31;
    --color-primario-claro: #3a5a4b;
    --color-accento: #9b7b5c;
    --color-accento-claro: #c7ad7b;
    --color-marca-agua: #e1d7c6;
    --color-tarjeta: #ffffffd9;
    --color-borde: #ddd0bc;
    --color-sombra: #b7aa8f;
    --color-marron-suave: #5e4b3a;
    --color-wayuu: #c29f68;
    --color-amazonia: #2d5a3d;
    --fuente-titulos: 'Playfair Display', serif;
    --fuente-cuerpo: 'Inter', sans-serif;
    --sombra-caja: 6px 6px 0 var(--color-sombra);
    --sombra-caja-hover: 12px 12px 0 #9f8e78;
    --borde-redondo: 28px 8px 28px 8px;
    --transicion: 0.2s ease;
}

/* ----- RESET / BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-cuerpo);
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--fuente-titulos);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    color: var(--color-primario);
    line-height: 1.2;
}

header .site-title h1 {
    color: #ffffff;
}

h2 {
    font-size: 2.2rem;
    border-left: 8px solid var(--color-accento);
    padding-left: 1rem;
    margin: 2rem 0 1.5rem;
    color: var(--color-primario-claro);
}

h3 {
    font-size: 1.5rem;
    color: var(--color-marron-suave);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.8rem;
    color: #1e3f31;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- CONTENEDOR PRINCIPAL ----- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- HEADER ----- */
header {
    background: linear-gradient(145deg, var(--color-primario-oscuro) 0%, var(--color-primario) 100%);
    color: #f0efe7;
    padding: 2rem 0 1.5rem;
    border-bottom: 6px solid var(--color-accento-claro);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-icon {
    font-size: 3.2rem;
    color: #ffffff;
    text-shadow: 2px 2px 0 #00000020;
}

.site-title p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
}


/* ----- NAVEGACIÓN ----- */
nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: #f0efe7;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transicion), color var(--transicion);
}

nav a:hover {
    border-bottom-color: #e9c78c;
    color: #ffefcf;
}

/* ----- COMPONENTES COMUNES ----- */
.subtitulo {
    font-size: 1.3rem;
    font-weight: 300;
    color: #5f6b5f;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

.intro-card {
    background: #e9e0d0;
    padding: 2rem 2.5rem;
    border-radius: 40px 8px 40px 8px;
    margin: 2.5rem 0 3rem;
    box-shadow: 12px 12px 0 var(--color-sombra);
    border: 1px solid #d8cbb3;
}

.intro-card p {
    font-size: 1.18rem;
    max-width: 900px;
}

.respeto-note {
    background: #d4c5ac;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-style: italic;
    border-left: 10px solid #4f6d5c;
    margin: 2rem 0 3rem;
    color: #1f3b2d;
    font-weight: 400;
}

/* Bloque destacado para culturas (Sierra, Amazonía, Pacífico y los 3 principales muiscas) */
.cultura-block {
    background: #efeadb;
    padding: 2rem;
    border-radius: 40px 8px 40px 8px;
    margin: 3rem 0;
    border: 2px solid #cbb89b;
}

/* Variante para Amazonía (fondo especial) */
#amazonia .cultura-block {
    background: #ced9c7;
}

/* Variante para Pacífico (tono cálido) */
#pacifico .cultura-block {
    background: #c9b8a8;
}

/* Deity grid dentro de cultura-block usa flex para centrar mejor */
.cultura-block .deity-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0 3rem;
}

/* ----- GRID DE DEIDADES (TARJETAS) ----- */
.deity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.deity-card {
    width: 280px;
    background: var(--color-tarjeta);
    backdrop-filter: blur(2px);
    border: 1px solid var(--color-borde);
    border-radius: var(--borde-redondo);
    padding: 1.6rem 1.2rem 1.2rem;
    transition: transform var(--transicion), box-shadow var(--transicion);
    box-shadow: var(--sombra-caja);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.deity-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--sombra-caja-hover);
}

/* Imagen dentro de la tarjeta */
.deity-img {
    width: 100%;
    height: 140px;
    background-color: #b7b7a7;
    border-radius: 24px 4px 24px 4px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #7e9a86;
}

.deity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #5f735f;
}

/* Etiqueta de cultura */
.culture-badge {
    display: inline-block;
    background: #7b6b54;
    color: #fcf7ef;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin: 0.5rem 0 0.8rem;
    text-transform: uppercase;
    align-self: flex-start;
}

/* Descripción limitada a 3 líneas */
.deity-desc {
    font-size: 0.98rem;
    color: #2b3f31;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5rem;
}

/* Atributos (iconos + texto) */
.atributos {
    font-size: 0.9rem;
    color: #705e48;
    border-top: 1px dashed #c8b69f;
    padding-top: 0.7rem;
    margin-top: auto;
}

.atributos i {
    width: 1.4rem;
    color: #486854;
}

/* ----- FOOTER ----- */
footer {
    background-color: #1e2a2a;
    color: #ddd;
    padding: 2rem 0 1rem 0;
    font-size: 0.9rem;
}
footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.footer-col h4 {
    color: #aac0b2;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.4rem;
}
.footer-col a {
    color: #ddd;
    text-decoration: none;
}
.footer-col a:hover {
    color: #d4a373;
    text-decoration: underline;
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin: 0.8rem 0;
}
.social-icons i {
    font-size: 1.6rem;
    transition: transform 0.2s;
}
.social-icons a:hover i {
    transform: scale(1.1);
    color: #d4a373;
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #3a4a4a;
    font-size: 0.75rem;
}

/* ----- RESPONSIVE (MÓVILES) ----- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.9rem;
    }
    header .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    nav ul {
        gap: 1rem;
    }
    .deity-grid {
        grid-template-columns: repeat(auto-fill, 240px);
        gap: 1.5rem;
    }
    .deity-card {
        width: 240px;
    }
    .intro-card, .respeto-note {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.7rem;
    }
    .logo-area {
        flex-wrap: wrap;
        justify-content: center;
    }
    .deity-grid {
        grid-template-columns: 1fr;
    }
    .deity-card {
        width: 100%;
        padding: 1rem;
    }
    .cultura-block {
        padding: 1rem;
    }
    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ----- UTILIDADES ----- */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.text-center { text-align: center; }

h2 i {
    margin-right: 0.7rem;
    color: #b37b48;
}

/* ===== ESTILOS PARA LA PÁGINA DE DETALLE (dios.html) ===== */
.detalle-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: #ffffffd9;
    border-radius: 40px 8px 40px 8px;
    box-shadow: 12px 12px 0 #b7aa8f;
    border: 1px solid #ddd0bc;
}

.detalle-imagen {
    width: 100%;
    max-height: auto;
    object-fit: contain;
    border-radius: 24px 4px 24px 4px;
    margin-bottom: 2rem;
    border: 2px solid #7e9a86;
}

.detalle-titulo {
    font-size: 2.5rem;
    color: #1e3f31;
    border-left: 8px solid #9b7b5c;
    padding-left: 1rem;
    font-family: 'Playfair Display', serif;
}

.detalle-cultura {
    display: inline-block;
    background: #7b6b54;
    color: #fcf7ef;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 1rem 0;
    font-family: 'Inter', sans-serif;
}

.detalle-descripcion {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2d2a24;
    font-family: 'Inter', sans-serif;
}

.detalle-descripcion h3 {
    font-family: 'Playfair Display', serif;
    color: #3a5a4b;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.atributos-detalle {
    margin-top: 2rem;
    border-top: 2px dashed #c8b69f;
    padding-top: 1rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.atributos-detalle span {
    font-size: 1.1rem;
    color: #486854;
    font-family: 'Inter', sans-serif;
}

.atributos-detalle i {
    margin-right: 0.5rem;
    color: #9b7b5c;
}

.boton-volver {
    display: inline-block;
    margin-top: 2rem;
    background: #2a4d3e;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 40px 8px 40px 8px;
    text-decoration: none;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.boton-volver:hover {
    background: #1f3b31;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #b7aa8f;
}
.nota-destacada {
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 6px solid #9b7b5c;
    color: #1f3b31;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Estilos para el menú desplegable */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
nav li {
  position: relative;
}
nav li a {
  display: block;
  color: #f0efe7;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}
nav li a:hover {
  border-bottom-color: #e9c78c;
  color: #ffefcf;
}
nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(145deg, #1f3b31 0%, #2a4d3e 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 180px;
  z-index: 1000;
  padding: 0.5rem 0;
  list-style: none;
}
nav .dropdown-menu li {
  width: 100%;
}
nav .dropdown-menu li a {
  padding: 0.6rem 1rem;
  border-bottom: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
nav .dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: none;
}
nav .dropdown:hover .dropdown-menu {
  display: block;
}
nav .dropdown.show .dropdown-menu {
  display: block;
}

/* Estilos específicos para la página de inicio */
        .hero {
            text-align: center;
            padding: 3rem 1rem;
            background: linear-gradient(145deg, #1f3b31 0%, #2b5543 100%);
            color: white;
            margin-bottom: 2rem;
            border-radius: 0 0 40px 40px;
        }
        .hero h1 {
            color: white;
            font-size: 3.5rem;
            text-shadow: 2px 2px 0 #9b7b5c;
        }
        .hero p {
            font-size: 1.3rem;
            max-width: 800px;
            margin: 1rem auto;
            opacity: 0.9;
        }
        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin: 3rem 0;
        }
        .menu-card {
            background: #ffffffd9;
            border: 1px solid #ddd0bc;
            border-radius: 28px 8px 28px 8px;
            padding: 2rem 1.5rem;
            box-shadow: 8px 8px 0 #b7aa8f;
            transition: transform 0.2s, box-shadow 0.2s;
            text-align: center;
            color: #2d2a24;
            text-decoration: none;
            display: block;
        }
        .menu-card:hover {
            transform: translate(-5px, -5px);
            box-shadow: 15px 15px 0 #9f8e78;
        }
        .menu-card i {
            font-size: 4rem;
            color: #2a4d3e;
            margin-bottom: 1rem;
        }
        .menu-card h2 {
            font-size: 2.2rem;
            border-left: none;
            margin: 0.5rem 0;
            color: #2a4d3e;
        }
        .menu-card p {
            font-size: 1rem;
            color: #5e4b3a;
        }
        @media (max-width: 600px) {
            .hero h1 { font-size: 2.5rem; }
        }

      