/* ==========================
   VARIABLES (MISMAS DEL INDEX)
   ========================== */
:root {
    --dorado: #b08d57;
    --cafe: #3e2f18;
    --azul-oscuro: #2c3e50;
    --gris-claro: #f5f5f5;
    --blanco: #ffffff;
    --sombra: rgba(0,0,0,0.12);
}

/* ==========================
   RESET
   ========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
        linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
        url("Imagenes/Templo_dorado.png") center/cover fixed;
    color: #333;
}
/* ==========================
   HEADER (TIPO RCC)
   ========================== */
.header {
    background: 
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("Imagenes/Templo_dorado.png") center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
}

.header-text p {
    color: #ddd;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* ==========================
   NAV
   ========================== */
nav {
    background: var(--cafe);
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 12px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--dorado);
}

/* ==========================
   HERO
   ========================== */
.hero {
    background: white;
    text-align: center;
    padding: 50px 20px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--azul-oscuro);
}

.hero p {
    margin-top: 10px;
    font-size: 1.1rem;
}
/* ==========================
   CONTENIDO
   ========================== */
.grupos {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.grupos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--azul-oscuro);
    margin-bottom: 10px;
}

.grupos p {
    margin-bottom: 40px;
}

/* ==========================
   GRID
   ========================== */
.grupos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* ==========================
   TARJETA DE GRUPO
   ========================== */
.grupo {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px var(--sombra);
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grupo:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.18);
}

/* ==========================
   IMAGEN
   ========================== */
.grupo-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.grupo-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

/* ==========================
   TEXTO
   ========================== */
.grupo h3 {
    margin-top: 15px;
    color: var(--azul-oscuro);
    font-size: 1.3rem;
}

.grupo p {
    margin: 8px 15px;
    font-size: 0.95rem;
}

.grupo strong {
    color: var(--dorado);
}

/* ==========================
   BOTÓN WHATSAPP
   ========================== */
.btn-whatsapp {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    background: #25d366;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background: #1ebc57;
}

/* ==========================
   ANIMACIÓN
   ========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================
   FOOTER
   ========================== */
.footer {
    background: var(--cafe);
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .grupo-img {
        height: 150px;
    }
}
