/* ========================================
   COMPONENTES REUTILIZABLES
   La Cocina de Zaragoza - Tradición Mexicana
   ======================================== */

/* ----------------------------------------
   TARJETAS (CARDS)
   ---------------------------------------- */

/* Tarjeta base */
.card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Tarjeta de receta */
.recipe-card {
    composes: card;
    position: relative;
}

.recipe-card__image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recipe-card:hover .recipe-card__image {
    transform: scale(1.05);
}

.recipe-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--naranja);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-card__badge--verde {
    background: var(--verde);
}

.recipe-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.recipe-card__description {
    color: var(--gris);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.recipe-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gris);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-card__meta i {
    color: var(--naranja);
    margin-right: 0.25rem;
}

.recipe-card__footer {
    margin-top: 1rem;
}

.recipe-card__link {
    color: var(--naranja);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.recipe-card__link:hover {
    gap: 0.75rem;
}

/* Tarjeta de blog */
.blog-card {
    composes: card;
}

.blog-card__image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-card__content {
    padding: 1.5rem;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--naranja);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--verde-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card__excerpt {
    color: var(--gris);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card__link {
    color: var(--naranja);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tarjeta de promoción */
.promo-card {
    background: linear-gradient(135deg, var(--verde-dark) 0%, var(--verde) 100%);
    color: white;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    pointer-events: none;
}

.promo-card__content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.promo-card__badge {
    display: inline-block;
    background: var(--naranja);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.promo-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.promo-card__description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.promo-card__button {
    background: white;
    color: var(--verde-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.promo-card__button:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Tarjeta de producto (tienda) */
.product-card {
    composes: card;
    position: relative;
}

.product-card__image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    padding: 1rem;
    background: #f9f9f9;
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--naranja);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

.product-card__content {
    padding: 1.25rem;
}

.product-card__title {
    font-weight: 700;
    color: var(--verde-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--naranja);
    margin-bottom: 1rem;
}

.product-card__actions {
    display: flex;
    gap: 0.5rem;
}

.product-card__button {
    flex: 1;
    background: var(--verde);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s;
}

.product-card__button:hover {
    background: var(--verde-dark);
}

.product-card__wishlist {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gris-light);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gris);
    transition: all 0.3s;
}

.product-card__wishlist:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* ----------------------------------------
   BOTONES Y ENLACES
   ---------------------------------------- */

/* Botón primario */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
}

.btn--primary {
    background: var(--naranja);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn--primary:hover {
    background: var(--naranja-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: white;
    color: var(--verde-dark);
    border: 2px solid var(--verde-dark);
}

.btn--secondary:hover {
    background: var(--verde-dark);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--naranja);
    border: 2px solid var(--naranja);
}

.btn--outline:hover {
    background: var(--naranja);
    color: white;
}

.btn--outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn--outline-white:hover {
    background: white;
    color: var(--verde-dark);
}

.btn--small {
    padding: 0.4rem 1.25rem;
    font-size: 0.875rem;
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn--full {
    width: 100%;
    display: block;
}

.btn--disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Botones de acción flotantes */
.fab-button {
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 100;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.fab-button--whatsapp {
    background: #25D366;
    bottom: 2rem;
    right: 2rem;
}

.fab-button--reserva {
    background: var(--naranja);
    bottom: 2rem;
    left: 2rem;
}

@media (max-width: 768px) {
    .fab-button {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .fab-button--whatsapp {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .fab-button--reserva {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

/* ----------------------------------------
   FORMULARIOS
   ---------------------------------------- */

/* Grupo de formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--verde-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
    background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input--error {
    border-color: #ef4444;
}

.form-input--error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
    padding-right: 2.5rem;
}

/* Checkbox y Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.form-check-input:checked {
    background: var(--naranja);
    border-color: var(--naranja);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.9rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-check-input--radio {
    border-radius: 50%;
}

.form-check-input--radio:checked::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mensajes de error/éxito */
.form-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-success {
    color: var(--verde);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ----------------------------------------
   NAVEGACIÓN
   ---------------------------------------- */

/* Navegación principal */
.nav-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-main__link {
    position: relative;
    font-weight: 500;
    color: var(--negro);
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.nav-main__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--naranja);
    transition: width 0.3s;
}

.nav-main__link:hover {
    color: var(--naranja);
}

.nav-main__link:hover::after,
.nav-main__link--active::after {
    width: 100%;
}

.nav-main__link--active {
    color: var(--naranja);
    font-weight: 600;
}

/* Navegación móvil */
.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.nav-mobile--open {
    transform: translateX(0);
}

.nav-mobile__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-mobile__close {
    font-size: 2rem;
    color: var(--gris);
    cursor: pointer;
}

.nav-mobile__list {
    list-style: none;
    padding: 0;
}

.nav-mobile__item {
    margin-bottom: 1rem;
}

.nav-mobile__link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--negro);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.nav-mobile__link:hover,
.nav-mobile__link--active {
    background: var(--verde-light);
    color: var(--verde-dark);
}

/* Navegación de categorías (recetas, blog) */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-nav__item {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    color: var(--gris);
}

.category-nav__item:hover {
    border-color: var(--naranja);
    color: var(--naranja);
}

.category-nav__item--active {
    background: var(--naranja);
    border-color: var(--naranja);
    color: white;
}

/* ----------------------------------------
   BREADCRUMBS
   ---------------------------------------- */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    background: transparent;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    color: var(--gris);
    font-size: 0.95rem;
}

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #d1d5db;
}

.breadcrumb__link {
    color: var(--gris);
    transition: color 0.3s;
}

.breadcrumb__link:hover {
    color: var(--naranja);
}

.breadcrumb__current {
    color: var(--verde-dark);
    font-weight: 600;
}

/* ----------------------------------------
   PAGINACIÓN
   ---------------------------------------- */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination__item {
    min-width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: white;
    color: var(--gris);
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.pagination__item:hover {
    border-color: var(--naranja);
    color: var(--naranja);
}

.pagination__item--active {
    background: var(--naranja);
    border-color: var(--naranja);
    color: white;
}

.pagination__item--active:hover {
    background: var(--naranja-dark);
    color: white;
}

.pagination__item--disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ----------------------------------------
   MODALES
   ---------------------------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.modal-overlay--open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay--open .modal {
    transform: translateY(0);
}

.modal__header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-dark);
}

.modal__close {
    font-size: 1.5rem;
    color: var(--gris);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal__close:hover {
    color: var(--naranja);
}

.modal__body {
    padding: 1.5rem;
}

.modal__footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* ----------------------------------------
   ALERTAS Y NOTIFICACIONES
   ---------------------------------------- */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert--success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--verde);
}

.alert--error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert--warning {
    background: #ffedd5;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert--info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert__icon {
    font-size: 1.5rem;
}

.alert__content {
    flex: 1;
}

.alert__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.alert__close {
    color: currentColor;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 1.25rem;
}

.alert__close:hover {
    opacity: 1;
}

/* Notificación toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast--success {
    border-left: 4px solid var(--verde);
}

.toast--error {
    border-left: 4px solid #ef4444;
}

.toast--warning {
    border-left: 4px solid var(--naranja);
}

.toast__icon {
    font-size: 1.5rem;
}

.toast__content {
    flex: 1;
}

.toast__title {
    font-weight: 700;
    color: var(--negro);
}

.toast__message {
    font-size: 0.9rem;
    color: var(--gris);
}

.toast__close {
    color: var(--gris);
    cursor: pointer;
    transition: color 0.3s;
}

.toast__close:hover {
    color: var(--naranja);
}

/* ----------------------------------------
   TABS
   ---------------------------------------- */

.tabs {
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tabs__item {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--gris);
    position: relative;
    cursor: pointer;
    transition: color 0.3s;
}

.tabs__item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--naranja);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tabs__item:hover {
    color: var(--naranja);
}

.tabs__item--active {
    color: var(--naranja);
}

.tabs__item--active::after {
    transform: scaleX(1);
}

.tabs-content {
    display: none;
}

.tabs-content--active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ----------------------------------------
   ACCORDION
   ---------------------------------------- */

.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.accordion__item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion__item:last-child {
    border-bottom: none;
}

.accordion__header {
    padding: 1rem 1.5rem;
    background: white;
    font-weight: 600;
    color: var(--verde-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion__header:hover {
    background: #f9fafb;
}

.accordion__icon {
    transition: transform 0.3s;
}

.accordion__item--open .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #f9fafb;
}

.accordion__item--open .accordion__content {
    padding: 1.5rem;
    max-height: 500px;
}

/* ----------------------------------------
   TABLAS
   ---------------------------------------- */

.table-responsive {
    overflow-x: auto;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th {
    background: var(--verde-light);
    color: var(--verde-dark);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: var(--negro);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #f9fafb;
}

.table--striped tr:nth-child(even) {
    background: #f9fafb;
}

/* ----------------------------------------
   LISTAS DE PRODUCTOS
   ---------------------------------------- */

.product-list {
    display: grid;
    gap: 1.5rem;
}

.product-list--grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-list--list {
    grid-template-columns: 1fr;
}

.product-list-item {
    display: flex;
    gap: 1rem;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.product-list-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-list-item__image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.product-list-item__content {
    flex: 1;
    padding: 1rem;
}

.product-list-item__title {
    font-weight: 600;
    color: var(--verde-dark);
    margin-bottom: 0.25rem;
}

.product-list-item__price {
    font-weight: 700;
    color: var(--naranja);
    margin-bottom: 0.5rem;
}

.product-list-item__actions {
    display: flex;
    gap: 0.5rem;
}

/* ----------------------------------------
   COMENTARIOS Y RESEÑAS
   ---------------------------------------- */

.review {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review__content {
    flex: 1;
}

.review__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review__author {
    font-weight: 700;
    color: var(--verde-dark);
}

.review__date {
    font-size: 0.85rem;
    color: var(--gris);
}

.review__rating {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.review__text {
    color: var(--gris);
    line-height: 1.6;
}

.review__helpful {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review__helpful button {
    color: var(--gris);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s;
}

.review__helpful button:hover {
    color: var(--naranja);
}

/* ----------------------------------------
   BÚSQUEDA
   ---------------------------------------- */

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box__input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.search-box__input:focus {
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

.search-box__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gris);
    font-size: 1.25rem;
}

.search-box__clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gris);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.3s;
    display: none;
}

.search-box__input:not(:placeholder-shown) + .search-box__icon + .search-box__clear {
    display: block;
}

.search-box__clear:hover {
    color: var(--naranja);
}

/* Resultados de búsqueda */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.search-box__input:focus + .search-results,
.search-results:hover {
    display: block;
}

.search-results__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s;
}

.search-results__item:hover {
    background: #f9fafb;
}

.search-results__item:last-child {
    border-bottom: none;
}

.search-results__image {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
}

.search-results__info {
    flex: 1;
}

.search-results__title {
    font-weight: 600;
    color: var(--negro);
}

.search-results__category {
    font-size: 0.8rem;
    color: var(--gris);
}

.search-results__view-all {
    display: block;
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    color: var(--naranja);
    font-weight: 600;
    transition: background 0.3s;
}

.search-results__view-all:hover {
    background: #e5e7eb;
}

/* ----------------------------------------
   CALIFICACIÓN CON ESTRELLAS
   ---------------------------------------- */

.rating {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
}

.rating__star {
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.rating__star--filled {
    color: #fbbf24;
}

.rating__star--half {
    position: relative;
    color: #d1d5db;
}

.rating__star--half::before {
    content: '★';
    position: absolute;
    color: #fbbf24;
    width: 50%;
    overflow: hidden;
}

.rating--readonly .rating__star {
    cursor: default;
}

.rating--small {
    font-size: 1rem;
}

.rating--large {
    font-size: 1.5rem;
}

/* ----------------------------------------
   CONTADOR DE CANTIDAD
   ---------------------------------------- */

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 2rem;
    overflow: hidden;
    background: white;
}

.quantity-selector__button {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--gris);
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.quantity-selector__button:hover {
    background: var(--naranja);
    color: white;
}

.quantity-selector__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-selector__input {
    width: 3rem;
    height: 2.5rem;
    text-align: center;
    border: none;
    border-left: 2px solid #e5e7eb;
    border-right: 2px solid #e5e7eb;
    font-weight: 600;
    color: var(--negro);
}

.quantity-selector__input:focus {
    outline: none;
}

/* ----------------------------------------
   TARJETA DE RECETA DETALLADA
   ---------------------------------------- */

.recipe-header {
    margin-bottom: 2rem;
}

.recipe-header__title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--verde-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .recipe-header__title {
        font-size: 2rem;
    }
}

.recipe-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.recipe-header__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gris);
}

.recipe-header__meta-item i {
    color: var(--naranja);
    font-size: 1.25rem;
}

.recipe-header__meta-item strong {
    color: var(--verde-dark);
    margin-right: 0.25rem;
}

.recipe-image {
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
}

.recipe-description {
    font-size: 1.1rem;
    color: var(--gris);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    padding-left: 1rem;
    border-left: 4px solid var(--naranja);
}

.recipe-ingredients {
    background: var(--verde-light);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.recipe-ingredients__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-dark);
    margin-bottom: 1.5rem;
}

.recipe-ingredients__list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.recipe-ingredients__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 0.5rem;
}

.recipe-ingredients__item i {
    color: var(--verde);
    font-size: 1rem;
}

.recipe-steps {
    margin-bottom: 2rem;
}

.recipe-steps__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-dark);
    margin-bottom: 1.5rem;
}

.recipe-steps__list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.recipe-steps__item {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    min-height: 2.5rem;
}

.recipe-steps__item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--naranja);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.recipe-steps__item p {
    color: var(--gris);
    line-height: 1.8;
}

.recipe-tips {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.recipe-tips__title {
    font-weight: 700;
    color: var(--verde-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-tips__title i {
    color: var(--naranja);
}

.recipe-tips__list {
    padding-left: 1.5rem;
    color: var(--gris);
}

.recipe-tips__list li {
    margin-bottom: 0.5rem;
}

.recipe-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.recipe-actions__button {
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gris);
    transition: all 0.3s;
    cursor: pointer;
}

.recipe-actions__button:hover {
    background: var(--verde-light);
    border-color: var(--verde);
    color: var(--verde);
}

.recipe-actions__button--active {
    background: var(--verde);
    border-color: var(--verde);
    color: white;
}

/* ----------------------------------------
   LOADER Y SKELETONS
   ---------------------------------------- */

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--verde-light);
    border-bottom-color: var(--verde);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader--small {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

.loader--large {
    width: 64px;
    height: 64px;
    border-width: 6px;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.25rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    padding: 1rem;
}

.skeleton-card__image {
    width: 100%;
    height: 200px;
    background: #e5e7eb;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.skeleton-card__line {
    height: 1rem;
    background: #e5e7eb;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-card__line--short {
    width: 60%;
}

.skeleton-card__line--medium {
    width: 80%;
}

/* ----------------------------------------
   WIDGETS ESPECIALES
   ---------------------------------------- */

/* Widget de temporada */
.season-widget {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.season-widget__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.season-widget__countdown {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.season-widget__label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.season-widget__button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s;
}

.season-widget__button:hover {
    background: white;
    color: var(--naranja);
}

/* Widget de clima (mercadito) */
.weather-widget {
    background: linear-gradient(135deg, #0F8F4A 0%, #0A5C2F 100%);
    color: white;
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-widget__icon {
    font-size: 2.5rem;
}

.weather-widget__temp {
    font-size: 2rem;
    font-weight: 700;
}

.weather-widget__city {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ----------------------------------------
   UTILIDADES
   ---------------------------------------- */

.text-verde { color: var(--verde); }
.text-verde-dark { color: var(--verde-dark); }
.text-naranja { color: var(--naranja); }

.bg-verde { background: var(--verde); }
.bg-verde-dark { background: var(--verde-dark); }
.bg-verde-light { background: var(--verde-light); }
.bg-naranja { background: var(--naranja); }

.border-verde { border-color: var(--verde); }
.border-verde-dark { border-color: var(--verde-dark); }
.border-naranja { border-color: var(--naranja); }

/* Espaciado */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

.section-padding-lg {
    padding: 7rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-padding-lg {
        padding: 4rem 0;
    }
}

/* Contenedor */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .container-custom {
        padding: 0 1rem;
    }
}

/* Animaciones */
.hover-scale {
    transition: transform 0.3s;
}

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

.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------------
   PRINT STYLES
   ---------------------------------------- */

@media print {
    .no-print,
    .fab-button,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .recipe-card,
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}