/* =========================================
   RESET & VARIABLES
==========================================*/
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #050816; --bg2: #0f172a;
    --primary: #8338ec; --primary2: #6d28d9;
    --secondary: #00f5ff; --secondary2: #06b6d4;
    --text: #f8fafc; --muted: #94a3b8;
}

body { 
    background: radial-gradient(circle at top, #111827 0%, #050816 55%); 
    color: var(--text); font-family: 'Segoe UI', sans-serif; 
    min-height: 100vh; display: flex; flex-direction: column; 
}

/* =========================================
   HEADER & NAV
==========================================*/
header { 
    position: sticky; top: 0; z-index: 999; padding: 18px 5%; 
    display: flex; align-items: center; justify-content: space-between; 
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(16px); 
    border-bottom: 1px solid rgba(131, 56, 236, 0.22); 
}
.logo a {
    display: block; /* Hace que el enlace ocupe el tamaño de la imagen */
    line-height: 0; /* Elimina espacios residuales debajo */
    text-decoration: none;
}

.logo img {
    border: none;
    display: block;
    height: 50px;      /* <--- AJUSTA ESTE VALOR (ej. 40px, 50px, 60px) */
    width: auto;       /* Esto asegura que la proporción se mantenga */
    object-fit: contain;
}
.logo a:hover img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.nav-menu { display: flex; gap: 20px; }
.nav-menu a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 15px; border-radius: 8px; transition: 0.3s; }
.nav-menu a:hover { background: rgba(255,255,255,0.1); }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--secondary); }

/* =========================================
   RIFAS GRID (ESTILO MODERNO)
==========================================*/
.rifas-grid { display: flex; flex-direction: column; gap: 30px; max-width: 1000px; margin: 40px auto; padding: 0 20px; }

.rifa-card {
    background: #0f172a;
    border-radius: 24px;
    border: 1px solid #1e293b;
    display: flex;
    overflow: hidden;
    transition: all 0.4s ease;
    height: auto; 
    min-height: 250px;
}

.rifa-card:hover { border-color: var(--secondary); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* Contenedor imagen: evita que se deforme */
.image-container { 
    width: 100%; /* En móvil ya es 100% gracias a tu media query */
    min-height: 200px; 
    background: #050816; /* Color de fondo para que no se vea blanco si la imagen es pequeña */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-container img {
    width: 100%; 
    height: 100%;
    /* 'contain' asegura que toda la imagen se vea, sin recortar los bordes */
    object-fit: contain; 
    display: block;
}

.card-body { 
    padding: 30px; 
    width: 60%; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; /* Alineado arriba para que el texto fluya */
    word-wrap: break-word; /* Fuerza el quiebre de palabras largas */
}

.promo-badge { 
    background: rgba(0, 245, 255, 0.15); color: var(--secondary); 
    padding: 6px 14px; border-radius: 20px; font-size: 11px; 
    font-weight: bold; width: fit-content; margin-bottom: 15px; 
}

.rifa-name { font-size: 26px; color: #fff; margin-bottom: 15px; }
.rifa-desc {
    color: var(--muted);
    line-height: 1.6;      /* Espacio entre líneas para facilitar la lectura */
    margin-bottom: 25px;   /* Separación del precio */
    font-size: 15px;       /* Tamaño cómodo para móvil y PC */
    text-align: justify;   /* Justifica el texto para un bloque compacto */
    white-space: pre-line; /* Respeta los saltos de línea hechos en el editor */
    word-break: break-word; /* Evita que palabras muy largas rompan el diseño */
}
.price-tag { font-size: 28px; font-weight: 900; color: #fff; margin-top: auto; }

.btn-buy {
    background: var(--primary); color: white; padding: 15px 30px; 
    border-radius: 14px; text-decoration: none; font-weight: 800; 
    text-align: center; transition: 0.3s; margin-top: 15px; width: fit-content;
}
.btn-buy:hover { background: var(--primary2); transform: scale(1.02); }

/* =========================================
   RESPONSIVO (MÓVIL)
==========================================*/
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { 
        display: none; position: absolute; top: 80px; left: 0; width: 100%; 
        background: #0f172a; flex-direction: column; padding: 20px; text-align: center;
    }
    .nav-menu.active { display: flex; }
    
    .rifa-card { flex-direction: column; }
    .image-container { width: 100%; height: 220px; }
    .card-body { width: 100%; text-align: center; align-items: center; }
    .btn-buy { width: 100%; }
}
/* --- FOOTER GENERAL --- */
footer { 
    background: #030712; 
    padding: 40px 20px; 
    text-align: center; 
    margin-top: auto; 
    border-top: 1px solid #1e293b; 
}

/* --- ICONOS SOCIALES --- */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Controla la separación entre los iconos */
    padding: 20px 0;
}

.social-links a {
    display: block;
    line-height: 0;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.15); /* Efecto de zoom al pasar el mouse */
}

.social-links img {
    display: block !important;
    width: 60px !important; 
    height: 60px !important;
    object-fit: contain !important;
    max-width: 100%; /* Por si acaso */
}
/* =========================================
   PROCESO DE PASOS.PHP
==========================================*/
.pasos-progreso {
    display: flex;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 800px;
    position: relative;
    padding: 0 20px;
}

.paso-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    text-align: center;
    opacity: 0.5; /* Pasos inactivos se ven tenues */
    transition: 0.4s;
}

.paso-card.activo { opacity: 1; transform: scale(1.05); }

/* La línea conectora */
.pasos-progreso::before {
    content: ""; position: absolute; top: 25px; left: 10%; right: 10%;
    height: 2px; background: #334155; z-index: 0;
}

.paso-circulo {
    width: 50px; height: 50px; background: #334155; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.2rem; margin-bottom: 10px;
    z-index: 1; transition: 0.4s;
}

.paso-card.activo .paso-circulo { background: #f59e0b; box-shadow: 0 0 15px #f59e0b; }

.paso-titulo { margin: 5px 0; font-size: 1rem; color: #34c821; }
.paso-texto { font-size: 0.8rem; color: #64748b; }
.paso-icon { font-size: 1.5rem; }

/* =========================================
   descripcion en el index
==========================================*/
.hero-section{
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(131, 56, 236, 0.25);
    border-radius: 30px;
    backdrop-filter: blur(14px);

    box-shadow:
        0 0 30px rgba(131,56,236,0.15),
        0 0 60px rgba(0,245,255,0.08);
}

.hero-content{
    flex: 1;
}

.hero-character{
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-character img{
    width: 320px;
    max-width: 100%;

    filter:
        drop-shadow(0 0 25px rgba(0,245,255,0.35))
        drop-shadow(0 0 40px rgba(131,56,236,0.25));

    animation: float 3s ease-in-out infinite;
}

.main-title{
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-gradient{
    background: linear-gradient(90deg, #00f5ff, #8338ec, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-subtitle{
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.main-highlight{
    display: inline-block;
    background: rgba(131, 56, 236, 0.15);
    border: 1px solid rgba(131, 56, 236, 0.35);
    color: #fff;
    padding: 12px 22px;
    border-radius: 16px;
    font-weight: 700;
}

@keyframes float{
    0%{ transform: translateY(0px); }
    50%{ transform: translateY(-10px); }
    100%{ transform: translateY(0px); }
}

/* RESPONSIVO */
@media (max-width: 900px){

    .hero-section{
        flex-direction: column-reverse;
        text-align: center;
        padding: 25px;
    }

    .hero-character img{
        width: 220px;
    }

    .main-highlight{
        width: 100%;
    }

}