/* Paleta de colores oficial[cite: 4] */
:root {
    /* Gong cha Brand Colors */
    --red: #C60734;
    --cream: #EED6BA;
    --black: #000000;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--black);
}

/* Tipografía general */
h1, h2, h3 { color: var(--red); margin-bottom: 15px; }
p { margin-bottom: 20px; line-height: 1.6; }

/* Botones (CTAs) */
.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}
.primary-btn {
    background-color: var(--red);
    color: var(--white);
}
.primary-btn:hover { background-color: #a00529; }

.secondary-btn {
    background-color: var(--cream);
    color: var(--black);
}
.secondary-btn:hover { background-color: #d8c0a5; }

/* 1. Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: bold;
}
.nav-menu a:hover { color: var(--red); }

/* 2. Hero Modificado (Imagen de fondo total y contenido a la derecha) */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh; /* Ocupa gran parte de la pantalla verticalmente */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Empuja el contenido hacia la derecha */
    padding: 60px 8%;
    background-image: url('img/hero-bubble-tea.jpg'); /* Tu imagen como fondo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Capa oscura semitransparente opcional para que el texto resalte sobre la foto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Oscurece ligeramente el fondo */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Asegura que el texto esté por encima de la capa oscura */
    width: 100%;
    max-width: 550px;
    text-align: left; /* Alineado a la izquierda dentro de su caja derecha */
    background: rgba(255, 255, 255, 0.9); /* Cuadro semitransparente crema/blanco para máxima lectura */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-content h1 {
    color: var(--red);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Secciones Generales */
section { padding: 60px 5%; text-align: center; }

/* 4. Menú Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.menu-item {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.menu-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 5. Directorio Dinámico (Sucursales) */
.search-container {
    margin-bottom: 30px;
    text-align: center;
}
.search-bar {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid var(--cream);
    border-radius: 30px;
    outline: none;
    transition: border-color 0.3s ease;
}
.search-bar:focus {
    border-color: var(--red);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.tienda-card {
    background: var(--white);
    border-left: 4px solid var(--red);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.tienda-card:hover {
    transform: translateY(-5px);
}
.tienda-card h3 {
    color: var(--black);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.tienda-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* 6. Rewards - Diseño de Niveles */
.rewards-section {
    background-color: #F8F4E6; /* Un tono ligeramente diferente para separar visualmente */
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.reward-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden; /* Mantiene la imagen dentro del borde redondeado */
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.reward-card:hover {
    transform: translateY(-10px);
}

/* Encabezado con la imagen de la tarjeta */
.reward-header {
    width: 100%;
    /* Aseguramos que la imagen ocupe todo el ancho sin distorsionarse */
}

.reward-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contenido de la tarjeta (texto y beneficios) */
.reward-content {
    padding: 25px;
    text-align: left;
}

.reward-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    min-height: 40px; /* Alinea los títulos de beneficios aunque los subtítulos tengan distinta longitud */
}

.reward-benefits-title {
    color: var(--red);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.reward-list {
    list-style: none;
    padding-left: 0;
}

.reward-list li {
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.4;
}

/* Viñeta personalizada con color corporativo */
.reward-list li::before {
    content: '★'; /* O puedes usar otro símbolo */
    color: #E6B87D; /* Tono dorado/crema oscuro */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.1rem;
}

.reward-list li small {
    color: #888;
    font-size: 0.8rem;
}

/* 7. Contacto */
.contact-section { background-color: var(--white); }

/* 8. Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsividad básica */
@media (max-width: 768px) {
    .header, .hero-section, .rewards-grid { flex-direction: column; text-align: center; gap: 20px; }
    .hero-content { width: 100%; }
}