/* --- RESET & GENERAL --- */
:root {
    --primary-color: #8cc63f; /* Verde lima */
    --dark-bar: #333333;      /* Barra oscura */
    --text-grey: #666666;
    --bg-color: #f4f6f9;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* --- CONTENEDOR PRINCIPAL --- */
.card-container {
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 500px) {
    .card-container {
        margin: 20px;
        min-height: auto;
        border-radius: 30px;
        border: 8px solid #ddd;
        overflow: hidden;
    }
}

/* --- 1. HEADER LOGO --- */
.top-header {
    background-color: var(--primary-color);
    padding: 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-logo {
    height: 60px; /* Ajusta el tamaño según necesites */
    object-fit: contain;
    /* Se eliminó el filtro, ahora se verá el color original */
}

/* --- 2. HERO IMAGEN & TEXTO --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); 
}

.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.hero-text .outline-text {
    font-size: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px white;
    font-weight: 900;
    display: block;
    margin-top: 5px;
}

/* --- 3. BARRA DE ACCIÓN OSCURA --- */
.action-bar {
    background-color: var(--dark-bar);
    color: white;
    display: flex;
    justify-content: space-between; /* Texto a la izq, iconos a la der */
    align-items: center;
    padding: 12px 25px;
    font-size: 0.8rem;
    font-weight: 700;
}

.share-label {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-mini-icons {
    display: flex;
    gap: 20px;
}

.social-mini-icons a {
    color: #ffffff !important; /* FORZAR COLOR BLANCO */
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 4. GRID DE ICONOS (MENÚ PRINCIPAL) --- */
.menu-grid {
    padding: 30px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 10px;
    justify-items: center;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 80px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.menu-item:hover .icon-circle {
    transform: scale(1.05);
}

.menu-label {
    font-size: 0.75rem;
    color: var(--text-grey);
    font-weight: 500;
    text-align: center;
}

/* --- 5. SECCIÓN QR CON FRANJA VERDE --- */
.qr-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto; 
}

.green-stripe {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    transform: translateY(-50%);
    z-index: 1;
}

.qr-box {
    position: relative;
    z-index: 2;
    background: white;
    padding: 10px;
    border: 4px solid #666;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-image {
    width: 100%;
    height: 100%;
}

.scan-text {
    margin-top: 35px;
    font-size: 0.9rem;
    color: var(--text-grey);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

/* --- 6. FOOTER --- */
.main-footer {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #eee;
    font-size: 0.7rem;
    color: #999;
}