/* Variables de colores */
:root {
    --naranja: #FF8C42;
    --naranja-oscuro: #E67E22;
    --rojo: #E74C3C;
    --rojo-oscuro: #C0392B;
    --amarillo: #F1C40F;
    --amarillo-oscuro: #F39C12;
    --blanco: #FFFFFF;
    --gris-claro: #F5F5F5;
    --gris-oscuro: #333333;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-claro);
    color: var(--gris-oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    color: var(--blanco);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-scrolled {
    padding: 15px 0;
    background: var(--naranja);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    object-fit: contain;
}

.logo i {
    margin-right: 10px;
    color: var(--amarillo);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--amarillo);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Botón del carrito en header */
.cart-header-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.cart-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cart-badge:empty {
    display: none;
}

/* Botones de iconos del header */
.btn-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--blanco);
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-icon i {
    font-size: 1.5rem;
}

.icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--amarillo);
    color: var(--gris-oscuro);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}


.btn-login,
.btn-profile {
    background: var(--amarillo);
    color: var(--gris-oscuro);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-profile:hover {
    background: var(--amarillo-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
}

.btn-profile {
    background: rgba(255, 255, 255, 0.2);
    color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-profile:hover {
    background: var(--blanco);
    color: var(--naranja);
}

/* Barra de Navegación Inferior (Nuevo Diseño) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    background: #FFFFFF;
    border-radius: 30px;
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    justify-content: space-between;
    align-items: center;
}

.bottom-nav .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999999;
    padding: 10px 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 8px;
    border-radius: 24px;
}

.bottom-nav .nav-item i {
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav .nav-item.active {
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF8C42 0%, #E74C3C 100%);
    padding: 10px 16px;
}

.bottom-nav .nav-item:hover {
    color: #666666;
}

.bottom-nav .nav-item .nav-label {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav .nav-item.active .nav-label {
    max-width: 100px;
    opacity: 1;
}

.bottom-nav .nav-item-main i {
    font-size: 1.5rem;
}

.bottom-nav .nav-item-main:hover {
    background: #2A2A2A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cart-count-mobile {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--rojo);
    color: var(--blanco);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.cta-button {
    background-color: var(--amarillo);
    color: var(--gris-oscuro);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--amarillo-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Portada Principal */
.portada {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    overflow: hidden;
    margin-top: 80px;
}

.portada-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 140, 66, 0.3), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(231, 76, 60, 0.3), transparent 50%);
    z-index: 1;
}

.portada-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    gap: 60px;
}

.portada-text {
    flex: 1;
    color: var(--blanco);
    animation: fadeInLeft 1s ease;
}

.portada-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.portada-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.portada-btn {
    display: inline-block;
    background-color: var(--amarillo);
    color: var(--gris-oscuro);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.portada-btn:hover {
    background-color: var(--amarillo-oscuro);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.portada-images {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portada-img {
    position: absolute;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.portada-img-1 {
    width: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.portada-img-2 {
    width: 280px;
    top: 20%;
    right: 10%;
    transform: rotate(10deg);
    z-index: 2;
    animation: float 3s ease-in-out infinite 0.5s;
}

.portada-img-3 {
    width: 280px;
    bottom: 15%;
    left: 5%;
    transform: rotate(-5deg);
    z-index: 1;
    animation: float 3s ease-in-out infinite 1s;
}

.portada-img:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
}

/* Slider de Productos */
.productos-slider-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1) 0%, rgba(231, 76, 60, 0.1) 100%);
}

.productos-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.producto-slide {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.producto-slide:hover {
    transform: translateY(-10px);
}

.producto-slide img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease;
}

.producto-slide:hover img {
    transform: scale(1.1) rotate(5deg);
}

.producto-info {
    margin-top: 15px;
}

.producto-info h3 {
    font-size: 1.3rem;
    color: var(--rojo);
    margin-bottom: 8px;
}

.producto-info .precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--naranja-oscuro);
}

/* Especialidades */
.especialidades {
    padding: 80px 0;
    background: var(--gris-claro);
}

.tacos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.taco-card {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.taco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.taco-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
}

.taco-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.taco-card:hover .taco-image img {
    transform: scale(1.1);
}

.badge-destacado, .badge-oferta {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--amarillo);
    color: var(--gris-oscuro);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.badge-oferta {
    background: var(--rojo);
    color: var(--blanco);
    top: 50px;
}

/* Botón de favoritos */
.btn-favorite {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #666;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 3;
}

.btn-favorite:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-favorite.active {
    color: #e74c3c;
}

.btn-favorite.active i {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.taco-info {
    padding: 25px;
}

.taco-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gris-oscuro);
}

.taco-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.taco-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.categoria, .calorias {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 15px;
    background: var(--gris-claro);
    color: #666;
}

.taco-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid var(--gris-claro);
}

.precio-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.precio-anterior {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.precio {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--naranja);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--naranja-oscuro);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gris-oscuro);
    max-width: 700px;
    margin: 0 auto;
}

.tacos-slider {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
}

.slick-slide {
    padding: 0 15px;
    transition: transform 0.3s ease;
}

.taco-slide {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.taco-slide:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.taco-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.taco-img img {
    max-width: 100%;
    max-height: 180px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.taco-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--rojo);
}

.taco-info p {
    margin-bottom: 20px;
    color: var(--gris-oscuro);
}

.taco-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--naranja-oscuro);
    margin-bottom: 15px;
}

.slick-prev, .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
}

.slick-prev {
    left: -60px;
}

.slick-next {
    right: -60px;
}

.slick-prev:before, .slick-next:before {
    font-size: 30px;
    color: var(--naranja);
    opacity: 1;
}

.slick-dots li button:before {
    font-size: 12px;
    color: var(--naranja);
}

.slick-dots li.slick-active button:before {
    color: var(--rojo);
}

/* Sobre Nosotros */
.sobre-nosotros {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    color: var(--blanco);
}

.sobre-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.sobre-text {
    flex: 1;
}

.sobre-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.sobre-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.sobre-img {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.sobre-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sobre-img:hover img {
    transform: scale(1.05);
}

/* Testimonios */
.testimonios {
    padding: 100px 0;
    background-color: var(--gris-claro);
}

.testimonios-slider {
    max-width: 1000px;
    margin: 0 auto;
}

.testimonio-slide {
    background-color: var(--blanco);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 15px;
    text-align: center;
}

.testimonio-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    font-size: 1.1rem;
}

.testimonio-text::before {
    content: "\201C";
    font-size: 4rem;
    color: var(--naranja);
    position: absolute;
    top: -30px;
    left: -10px;
    opacity: 0.3;
}

.testimonio-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--amarillo);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--rojo);
    margin-bottom: 5px;
}

/* Contacto */
.contacto {
    padding: 100px 0;
    background-color: var(--blanco);
}

.contacto-content {
    display: flex;
    gap: 50px;
}

.contacto-info {
    flex: 1;
}

.contacto-info h2 {
    font-size: 2.5rem;
    color: var(--naranja-oscuro);
    margin-bottom: 20px;
}

.contacto-info p {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background-color: var(--naranja);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contacto-form {
    flex: 1;
    background-color: var(--gris-claro);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--naranja);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--rojo) 100%);
    color: var(--blanco);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--amarillo);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--amarillo);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--blanco);
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--amarillo);
    color: var(--gris-oscuro);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    /* Ocultar menú desktop en tablet y móvil */
    .desktop-nav {
        display: none;
    }
    
    .desktop-cta {
        display: none;
    }
    
    /* Mostrar barra de navegación inferior */
    .bottom-nav {
        display: flex;
    }
    
    /* Agregar padding inferior al body para compensar la barra fija */
    body {
        padding-bottom: 70px;
    }
    
    /* Ajustar header en móvil */
    .header-content {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    /* Portada responsive */
    .portada {
        min-height: 90vh;
        margin-top: 70px;
    }
    
    .portada-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .portada-title {
        font-size: 2.5rem;
    }
    
    .portada-subtitle {
        font-size: 1.2rem;
    }
    
    .portada-images {
        height: 350px;
    }
    
    .portada-img-1 {
        width: 250px;
    }
    
    .portada-img-2 {
        width: 200px;
        top: 10%;
        right: 5%;
    }
    
    .portada-img-3 {
        width: 200px;
        bottom: 10%;
        left: 0%;
    }

    .sobre-content,
    .contacto-content {
        flex-direction: column;
    }

    .sobre-img {
        order: -1;
        height: 300px;
    }

    .slick-prev {
        left: -20px;
    }

    .slick-next {
        right: -20px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
}
