/* =========================================
   ESTILOS: POLLERÍA ANGEL LUIS
   Optimizado para legibilidad (Público 30-60 años)
   ========================================= */

/* --- VARIABLES Y RESET --- */
:root {
    --primary-red: #D62828;       /* Rojo Pollería */
    --primary-red-hover: #b91c1c;
    --primary-yellow: #FFC107;    /* Amarillo Mostaza/Pollo */
    --primary-yellow-hover: #e0a800;
    
    --bg-main: #FFFFFF;           /* Blanco Puro (Predominante) */
    --bg-secondary: #F8F9FA;      /* Gris ultra claro para secciones */
    --bg-card: #FFFFFF;           /* Fondo de tarjetas */
    
    --text-main: #1A1A1A;         /* Texto principal bien oscuro (Mejor contraste) */
    --text-gray: #4D4D4D;         /* Gris oscurecido para no cansar la vista */
    --border-light: #D0D0D0;      /* Bordes un poco más definidos */
    
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;              /* Tamaño base estándar, ni muy grande ni muy chico */
    line-height: 1.7;             /* Aumentado para que los textos no se vean amontonados */
    overflow-x: hidden;
}

/* --- UTILIDADES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-red { color: var(--primary-red); }
.text-yellow { color: var(--primary-yellow); }
.text-center { text-align: center; }

/* --- BOTONES (Fáciles de tocar en móvil) --- */
.btn {
    display: inline-block;
    padding: 16px 32px;           /* Ligeramente más altos para que el dedo no falle */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 1rem;              /* Tamaño de texto claro */
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px rgba(214, 40, 40, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-yellow);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-red);
    color: white;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98); /* Más opaco para leer mejor el menú */
    backdrop-filter: blur(10px);
    height: 85px;                 /* Un poco más de altura para comodidad */
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-yellow);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: left;
    text-decoration: none;
    height: 100%;
    margin-right: 60px; 
}

.logo-img {
    max-height: 65px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;                    /* Más separación entre enlaces */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    transition: color 0.3s;
    font-size: 1rem;              /* Subido de 0.9 a 1rem para leer mejor */
    text-transform: uppercase;
}

.nav-links a:hover { color: var(--primary-red); }

.btn-nav {
    background-color: var(--primary-yellow);
    color: var(--text-main) !important;
    padding: 12px 24px;
    border-radius: 6px;
}

.btn-nav:hover { 
    background-color: var(--primary-red); 
    color: white !important; 
}

/* Hamburguesa (Móvil) */
.hamburger { display: none; cursor: pointer; z-index: 1001; padding: 10px; } /* Área de toque más grande */
.hamburger span {
    display: block; width: 30px; height: 3px; background: var(--primary-red); margin: 6px auto; transition: 0.3s; border-radius: 3px;
}
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-secondary);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--primary-red);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.2rem;            /* Ligeramente ajustado para no abrumar */
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 900;
    color: var(--text-main);
}

.hero-text {
    max-width: 650px;
    margin: 0 auto 35px auto;
    color: var(--text-gray);
    font-size: 1.15rem;           /* Texto de apoyo muy claro */
    font-weight: 500;
}

/* --- SECCIONES GENERALES --- */
.section { padding: 85px 0; }
.bg-dark { background-color: var(--bg-secondary); }
.bg-black { background-color: var(--bg-main); }

.section-title {
    font-family: var(--font-title);
    font-size: 2.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--primary-red);
    font-weight: 900;
}
.section-subtitle { color: var(--text-gray); margin-bottom: 50px; font-weight: 600; font-size: 1.1rem; }

/* Split Section (Nosotros) */
.split-section { display: flex; align-items: center; gap: 60px; }
.text-part, .image-part { flex: 1; }
.feature-list { list-style: none; margin-top: 25px; }
.feature-list li { margin-bottom: 18px; font-size: 1.15rem; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-main); }
.feature-list li i { color: var(--primary-yellow); font-size: 1.3rem; }
.img-box img { width: 100%; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- GRID DE PRODUCTOS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;                    /* Más espacio entre tarjetas */
}

.product-card {
    background-color: var(--bg-card);
    border-radius: 12px;          /* Bordes un poco más limpios */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(214, 40, 40, 0.15);
    border-color: var(--primary-yellow);
}

.product-img-container {
    height: 230px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover img { transform: scale(1.05); }

.product-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }

.product-cat { font-size: 0.85rem; color: var(--primary-yellow); text-transform: uppercase; letter-spacing: 1px; font-weight: 900; }
.product-title { font-size: 1.4rem; margin: 10px 0; font-family: var(--font-title); color: var(--text-main); font-weight: 800; line-height: 1.3; }
.product-desc { color: var(--text-gray); font-size: 1rem; margin-bottom: 20px; }

.btn-card {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    font-weight: 800;
    margin-top: auto;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-card:hover { background: var(--primary-red); color: white; }

/* --- FOOTER --- */
footer { 
    background-color: var(--primary-red); 
    padding: 50px 20px; 
    border-top: 5px solid var(--primary-yellow); 
    text-align: center; 
    color: white; 
    font-size: 1rem; 
    font-weight: 600;
}

/* --- ESTILOS DEL MAPA Y CONTACTO --- */
.map-container { margin-top: 70px; text-align: center; }
.map-title { font-family: var(--font-title); color: var(--primary-red); margin-bottom: 25px; letter-spacing: 1px; font-size: 1.6rem; font-weight: 900; text-transform: uppercase; }
.map-frame { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); border: 2px solid var(--primary-yellow); }

.contact-wrapper { display: flex; justify-content: center; gap: 25px; flex-wrap: wrap; margin-top: 40px; }
.contact-card { background-color: var(--bg-card); padding: 35px 25px; border-radius: 12px; border: 1px solid var(--border-light); width: 100%; max-width: 320px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.contact-icon { font-size: 2.8rem; color: var(--primary-yellow); margin-bottom: 20px; }
.contact-card h3 { margin-bottom: 12px; font-size: 1.3rem; font-family: var(--font-title); color: var(--text-main); font-weight: 800; }
.contact-card a { color: var(--text-gray); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.contact-card a:hover { color: var(--primary-red); text-decoration: underline; }

.social-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
.social-btn { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; background-color: var(--text-main); font-size: 1.4rem; transition: 0.3s; }
.social-btn.fb:hover { background-color: #1877F2; }
.social-btn.ig:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-btn.wa:hover { background-color: #25D366; }

/* --- FORMULARIOS --- */
input, select, textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 22px;
    background-color: var(--bg-main);
    border: 2px solid var(--border-light);
    color: var(--text-main);
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px !important;   /* Clave para accesibilidad y evitar zoom en móviles */
    appearance: none;
    transition: 0.3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-yellow); box-shadow: 0 0 8px rgba(255, 193, 7, 0.3); }

/* --- ESTILOS GLOBALES DEL SISTEMA (Admin/Cajero) --- */
body.dashboard-mode { padding-top: 85px; background-color: var(--bg-secondary); }
.page-header { margin-bottom: 2.5rem; border-bottom: 2px solid var(--border-light); padding-bottom: 1.5rem; }
.page-title { font-family: var(--font-title); color: var(--primary-red); text-transform: uppercase; font-size: 2.1rem; line-height: 1.2; font-weight: 900; }

/* Tarjetas Dashboard */
.card-dark { background-color: var(--bg-card); border: 1px solid var(--border-light); border-radius: 12px; padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.04); }
.card-header-dark { border-bottom: 2px solid var(--primary-yellow); margin-bottom: 18px; padding-bottom: 12px; font-family: var(--font-title); font-size: 1.3rem; color: var(--primary-red); font-weight: 800; }

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Tablas Dashboard */
.table-dark { width: 100%; border-collapse: collapse; min-width: 600px; background-color: var(--bg-card); font-size: 1.05rem; } /* Letra un poco más grande en tablas */
.table-dark th { background-color: var(--primary-red); color: white; padding: 18px 15px; text-align: left; font-family: var(--font-title); border-bottom: none; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.table-dark td { padding: 18px 15px; border-bottom: 1px solid var(--border-light); vertical-align: middle; color: var(--text-main); font-weight: 600; }

.badge { padding: 8px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; color: var(--text-main); display: inline-block; background-color: var(--primary-yellow); }


/* =========================================
   📱 RESPONSIVE (MAGIA MOBILE FIRST)
   ========================================= */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { height: 75px; padding: 0; }
    .logo-img { max-height: 50px; margin-left: 15px; }
    
    /* Menú Desplegable Estilo App */
    .nav-links {
        position: fixed;
        top: 75px;
        right: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-top: 1px solid var(--border-light);
    }
    
    .nav-links.active { transform: translateX(0%); }
    .hamburger { display: block; margin-right: 15px; }
    
    /* Enlaces del menú en celular */
    .nav-links li { width: 100%; border-bottom: 1px solid var(--border-light); }
    .nav-links a { 
        display: block; 
        padding: 22px 15px;      /* Áreas de toque más holgadas */
        font-size: 1.15rem; 
        text-align: left; 
        color: var(--text-main);
    }
    .btn-nav { text-align: center; margin-top: 25px; font-size: 1.15rem; padding: 18px; color: var(--text-main) !important; }

    /* Tipografía Hero */
    .hero-title { font-size: 2.3rem; margin-top: 10px; }
    .hero-subtitle { font-size: 0.9rem; letter-spacing: 2px; }
    .hero-text { font-size: 1.05rem; padding: 0 15px; }
    
    /* Botones Full Width en Móvil */
    .hero-btns { display: flex; flex-direction: column; gap: 15px; width: 100%; padding: 0 20px; }
    .btn { width: 100%; margin-left: 0 !important; }

    /* Secciones más compactas */
    .section { padding: 60px 0; }
    .section-title { font-size: 1.9rem; text-align: center; }
    .section-subtitle { text-align: center; margin-bottom: 35px; font-size: 1.05rem; }
    
    /* Nosotros */
    .split-section { flex-direction: column; gap: 35px; text-align: center; }
    .feature-list li { justify-content: center; font-size: 1.05rem; }
    
    /* Tarjetas de producto */
    .products-grid { grid-template-columns: 1fr; gap: 25px; }
    .product-img-container { height: 220px; }
    
    /* Contacto */
    .contact-wrapper { flex-direction: column; padding: 0 10px; }
    .contact-card { max-width: 100%; padding: 30px 20px; }

    /* Títulos Dashboards */
    .page-title { font-size: 1.7rem; }
}