/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta de Colores */
    --primary: #FF3D00;        /* Naranja Rojizo Intenso (Estilo Guardatti) */
    --primary-glow: rgba(255, 61, 0, 0.5);
    
    --dark-bg: #050505;        /* Fondo casi negro */
    --card-bg: rgba(20, 20, 20, 0.6); /* Vidrio oscuro */
    --card-border: 1px solid rgba(255, 255, 255, 0.08);
    
    --text-main: #ffffff;
    --text-muted: #8c8c8c;
    
    /* Configuración */
    --radius: 16px;
    --font-main: 'Outfit', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    /* Evita el scroll horizontal en móviles por animaciones */
    position: relative;
}

a { text-decoration: none; color: inherit; }

/* =========================================
   2. BACKGROUND AMBIENT EFFECTS
   ========================================= */
.background-effects {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Ruido granulado para textura */
.noise {
    position: absolute;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.07;
}

/* Manchas de color flotantes */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 300px; height: 300px;
    background: var(--primary);
    top: -10%; left: -10%;
}

.blob-2 {
    width: 400px; height: 400px;
    background: #5a0000; /* Rojo oscuro profundo */
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

/* =========================================
   3. LAYOUT CONTAINER
   ========================================= */
.container {
    width: 100%;
    max-width: 1100px; /* Ancho máximo en Desktop */
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================
   4. HEADER (LOGO & TIPOGRAFÍA)
   ========================================= */
.header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Logo Icono --- */
.logo-container {
    width: 90px;
    height: 90px;
    position: relative;
    /* Entrada dinámica */
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* EL BRILLO NEÓN DEL LOGO */
    filter: drop-shadow(0 0 15px var(--primary-glow));
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Efecto hover en el logo */
.brand-wrapper:hover .main-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(255, 61, 0, 0.8));
}

/* --- Textos --- */
.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.agency-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5em; /* Mucho aire */
    color: var(--text-muted);
    text-transform: uppercase;
    margin-left: 0.5em; /* Compensación óptica */
    margin-bottom: 5px;
    display: block;
}

.guardatti-text {
    font-size: 3rem; /* Mobile size */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    
    /* ANIMACIÓN SHINE (METAL LÍQUIDO) */
    background: linear-gradient(
        to right, 
        #ffffff 0%, 
        #ffffff 40%, 
        var(--primary) 50%, 
        #ffffff 60%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: shine 6s ease-in-out infinite;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
    opacity: 0.8;
}

/* =========================================
   5. BENTO GRID MENU
   ========================================= */
.grid-menu {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 columna */
    gap: 1rem;
    width: 100%;
}

/* --- Cards (Botones) --- */
.card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px); /* Efecto vidrio */
    -webkit-backdrop-filter: blur(12px);
    
    /* Flex interno */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Transiciones */
    transition: var(--transition-fast);
    
    /* Animación de entrada (Controlada por style="--delay") */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: var(--delay);
}

/* --- Hover Effects --- */
.card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--primary); /* Borde naranja al pasar mouse */
    box-shadow: 0 10px 40px -10px var(--primary-glow);
}

.card:hover .icon-box {
    background: var(--primary);
    color: #fff;
    transform: rotate(-10deg) scale(1.1);
}

.card:hover .card-bg-icon {
    opacity: 0.15;
    transform: scale(1.2) rotate(10deg);
}

/* --- Card Content --- */
.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.icon-box {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition-fast);
    margin-bottom: 0.5rem;
}

.card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Icono gigante de fondo (Decoración) */
.card-bg-icon {
    position: absolute;
    right: -15px;
    bottom: -15px;
    font-size: 7rem;
    color: var(--primary);
    opacity: 0.03; /* Muy sutil */
    z-index: 1;
    transition: 0.5s ease;
    pointer-events: none;
}

/* --- Variaciones de Cards --- */

/* Rancho TV (Destacado) */
.featured-card {
    border-color: rgba(255, 61, 0, 0.3);
    background: linear-gradient(145deg, rgba(20,20,20,0.8), rgba(40,10,10,0.4));
}

.live-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--primary);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    z-index: 3;
}

.pulsar {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary);
    animation: pulse 1.5s infinite;
}

/* El Rancho Local (Full Width) */
.row-layout {
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
}

.arrow-icon {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--primary);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.card:hover .arrow-icon {
    transform: translateX(5px);
}

/* =========================================
   6. FOOTER
   ========================================= */
.footer {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    width: 100%;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.footer p {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   7. ANIMACIONES (KEYFRAMES)
   ========================================= */

/* Brillo del texto */
@keyframes shine {
    0% { background-position: 200% center; }
    15% { background-position: 0% center; } /* Pasa el brillo */
    100% { background-position: 0% center; } /* Espera */
}

/* Entrada del Logo */
@keyframes popIn {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Entrada de tarjetas hacia arriba */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Aparición simple */
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Flotar blobs */
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Pulso del punto rojo */
@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 61, 0, 0.7); }
    70% { opacity: 1; box-shadow: 0 0 0 6px rgba(255, 61, 0, 0); }
    100% { opacity: 1; }
}

/* =========================================
   8. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet (>= 600px) */
@media (min-width: 600px) {
    .grid-menu {
        grid-template-columns: 1fr 1fr; /* 2 Columnas */
    }
    .full-width {
        grid-column: span 2; /* Rancho Local ocupa 2 cols */
    }
    .guardatti-text {
        font-size: 4rem;
    }
}

/* Desktop (>= 900px) */
@media (min-width: 900px) {
    .container {
        padding-top: 4rem;
    }
    
    .logo-container {
        width: 110px;
        height: 110px;
    }
    
    .guardatti-text {
        font-size: 5rem;
    }

    .grid-menu {
        grid-template-columns: repeat(3, 1fr); /* 3 Columnas */
    }
    
    .full-width {
        grid-column: span 3; /* Rancho Local ocupa todo el ancho */
    }
}

