/* ============================================
   RECETAS DE LA ABUELA - ESTILOS VINTAGE
   Colores: Verde, Amarillo, Naranja, Rojo
   ============================================ */

:root {
    --verde-vegetal: #4a7c59;
    --verde-claro: #5a9270;
    --amarillo-mantequilla: #f4d03f;
    --naranja-especias: #e67e22;
    --rojo-tomate: #c0392b;
    --crema-vintage: #f5f1e8;
    --papel-viejo: #e8f5e8;
    --texto-oscuro: #2c3e50;
}

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

body {
    font-family: 'Special Elite', 'Courier Prime', monospace;
    background-color: var(--crema-vintage);
    color: var(--texto-oscuro);
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.02) 2px,
            rgba(0,0,0,0.02) 4px
        );
}

/* ============================================
   HEADER CON DEGRADADO VERDE
   ============================================ */

.header-gradient {
    background: linear-gradient(135deg, 
        var(--verde-vegetal) 0%, 
        var(--verde-claro) 40%, 
        var(--amarillo-mantequilla) 70%, 
        var(--naranja-especias) 90%, 
        var(--rojo-tomate) 100%);
    padding: 60px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-title {
    font-family: 'Special Elite', cursive;
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

/* ============================================
   SECCIÓN HERO
   ============================================ */

.hero-section {
    padding: 80px 0;
    background-color: var(--papel-viejo);
    border-bottom: 3px dashed var(--naranja-especias);
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.9;
    margin-bottom: 30px;
}

/* ============================================
   BOTONES VINTAGE
   ============================================ */

.btn-vintage {
    font-family: 'Special Elite', cursive;
    padding: 15px 40px;
    font-size: 1.2rem;
    border: 3px solid;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-verde {
    background-color: var(--verde-vegetal);
    color: white;
    border-color: #3a5f45;
}

.btn-verde:hover {
    background-color: #3a5f45;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    color: white;
}

.btn-blanco {
    background-color: white;
    color: var(--verde-vegetal);
    border-color: white;
    font-weight: 700;
}

.btn-blanco:hover {
    background-color: #f0f0f0;
    color: #3a5f45;
    border-color: #f0f0f0;
}

/* ============================================
   CARACTERÍSTICAS (Features)
   ============================================ */

.features-section {
    padding: 100px 0;
    background-color: var(--crema-vintage);
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-left: 5px solid;
    margin-bottom: 50px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.feature-card.verde { border-left-color: var(--verde-vegetal); }
.feature-card.amarillo { border-left-color: #d4a017; }
.feature-card.naranja { border-left-color: var(--naranja-especias); }
.feature-card.rojo { border-left-color: var(--rojo-tomate); }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.feature-title {
    font-family: 'Special Elite', monospace;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--texto-oscuro);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* ============================================
   CATEGORÍAS (Landing Page)
   ============================================ */

.categories-section {
    padding: 80px 0;
    background-color: var(--papel-viejo);
}

.category-col {
    padding: 15px;
}

.section-title {
    font-family: 'Special Elite', cursive;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--texto-oscuro);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-box {
    background: white;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: 6px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.category-box:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateX(5px);
}

.category-box.carnes { border-left-color: var(--rojo-tomate); }
.category-box.pescados { border-left-color: #2980b9; }
.category-box.sopas { border-left-color: var(--naranja-especias); }
.category-box.postres { border-left-color: #d4a017; }
.category-box.verduras { border-left-color: var(--verde-vegetal); }
.category-box.otras { border-left-color: #7d3c98; }

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.85;
}

.category-name {
    font-family: 'Special Elite', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--texto-oscuro);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.category-description {
    font-size: 0.95rem;
    color: #666;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        var(--verde-vegetal) 0%, 
        var(--verde-claro) 60%, 
        var(--amarillo-mantequilla) 100%);
    text-align: center;
}

.cta-title {
    font-family: 'Special Elite', cursive;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-text {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--texto-oscuro);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer a {
    color: var(--amarillo-mantequilla);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   PÁGINA DE RECETAS - HEADER PEQUEÑO
   ============================================ */

.header-small {
    background: linear-gradient(135deg, 
        var(--verde-vegetal) 0%, 
        var(--verde-claro) 60%, 
        var(--amarillo-mantequilla) 100%);
    padding: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-small .logo-title {
    font-size: 2rem;
    margin-bottom: 0;
}

/* ============================================
   BARRA DE HERRAMIENTAS (Filtros y búsqueda)
   ============================================ */

.toolbar {
    background-color: var(--papel-viejo);
    padding: 30px 0;
    border-bottom: 2px solid var(--verde-vegetal);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Special Elite', monospace;
    font-size: 1rem;
    border: 2px solid var(--verde-vegetal);
    border-radius: 8px;
    background-color: white;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.2);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-filter {
    font-family: 'Special Elite', monospace;
    padding: 10px 20px;
    font-size: 0.9rem;
    border: 2px solid;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-filter.active {
    color: white;
    font-weight: 700;
}

.btn-filter.todas { border-color: #555; }
.btn-filter.todas.active { background-color: #555; }
.btn-filter.carnes { border-color: var(--rojo-tomate); }
.btn-filter.carnes.active { background-color: var(--rojo-tomate); }
.btn-filter.pescados { border-color: #2980b9; }
.btn-filter.pescados.active { background-color: #2980b9; }
.btn-filter.sopas { border-color: var(--naranja-especias); }
.btn-filter.sopas.active { background-color: var(--naranja-especias); }
.btn-filter.postres { border-color: #d4a017; }
.btn-filter.postres.active { background-color: #d4a017; }
.btn-filter.verduras { border-color: var(--verde-vegetal); }
.btn-filter.verduras.active { background-color: var(--verde-vegetal); }
.btn-filter.otras { border-color: #7d3c98; }
.btn-filter.otras.active { background-color: #7d3c98; }

/* ============================================
   GRID DE RECETAS
   ============================================ */

.recetas-section {
    padding: 60px 0;
    background-color: var(--crema-vintage);
}

.receta-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 6px solid;
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.receta-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.receta-card.carnes { border-left-color: var(--rojo-tomate); }
.receta-card.pescados { border-left-color: #2980b9; }
.receta-card.sopas { border-left-color: var(--naranja-especias); }
.receta-card.postres { border-left-color: #d4a017; }
.receta-card.verduras { border-left-color: var(--verde-vegetal); }
.receta-card.otras { border-left-color: #7d3c98; }

.receta-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.receta-badge.carnes { background-color: var(--rojo-tomate); }
.receta-badge.pescados { background-color: #2980b9; }
.receta-badge.sopas { background-color: var(--naranja-especias); }
.receta-badge.postres { background-color: #d4a017; }
.receta-badge.verduras { background-color: var(--verde-vegetal); }
.receta-badge.otras { background-color: #7d3c98; }

.receta-title {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    color: var(--texto-oscuro);
    margin-bottom: 15px;
}

.receta-descripcion {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.receta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #666;
}

.receta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-ver-receta {
    font-family: 'Special Elite', monospace;
    padding: 12px 25px;
    background-color: var(--verde-vegetal);
    color: white;
    border: 2px solid #3a5f45;
    border-radius: 6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-ver-receta:hover {
    background-color: #3a5f45;
    transform: scale(1.05);
    color: white;
}

/* ============================================
   VISTA DETALLE DE RECETA
   ============================================ */

#vista-detalle {
    padding: 60px 0;
    background-color: var(--crema-vintage);
}

.detalle-header {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-left: 10px solid;
}

.detalle-header.carnes { border-left-color: var(--rojo-tomate); }
.detalle-header.pescados { border-left-color: #2980b9; }
.detalle-header.sopas { border-left-color: var(--naranja-especias); }
.detalle-header.postres { border-left-color: #d4a017; }
.detalle-header.verduras { border-left-color: var(--verde-vegetal); }
.detalle-header.otras { border-left-color: #7d3c98; }

.detalle-titulo {
    font-family: 'Special Elite', cursive;
    font-size: 2.5rem;
    color: var(--texto-oscuro);
    margin-bottom: 20px;
}

.detalle-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1rem;
    color: #555;
}

.detalle-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalle-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.section-subtitle {
    font-family: 'Special Elite', cursive;
    font-size: 1.8rem;
    color: var(--verde-vegetal);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--verde-vegetal);
    padding-bottom: 10px;
}

.ingredientes-lista {
    list-style: none;
    padding-left: 0;
}

.ingredientes-lista li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 1.05rem;
}

.ingredientes-lista li:before {
    content: "✓ ";
    color: var(--verde-vegetal);
    font-weight: 700;
    margin-right: 10px;
}

.preparacion-lista {
    counter-reset: paso;
    list-style: none;
    padding-left: 0;
}

.preparacion-lista li {
    counter-increment: paso;
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--papel-viejo);
    border-radius: 8px;
    border-left: 4px solid var(--verde-vegetal);
    position: relative;
    padding-left: 60px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.preparacion-lista li:before {
    content: counter(paso);
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: var(--verde-vegetal);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Special Elite', cursive;
}

.consejos-box {
    background: linear-gradient(135deg, var(--verde-vegetal), var(--verde-claro));
    padding: 30px;
    border-radius: 8px;
    color: white;
    margin-top: 30px;
}

.consejos-box h3 {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.consejos-box p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.autor-box {
    font-style: italic;
    color: #777;
    text-align: right;
    margin-top: 20px;
    font-size: 0.95rem;
}

.botones-navegacion {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-volver {
    font-family: 'Special Elite', monospace;
    padding: 12px 25px;
    background-color: #555;
    color: white;
    border: 2px solid #333;
    border-radius: 6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-volver:hover {
    background-color: #333;
    transform: scale(1.05);
    color: white;
}

/* ============================================
   MENSAJE SIN RESULTADOS
   ============================================ */

.no-resultados {
    text-align: center;
    padding: 80px 20px;
}

.no-resultados h2 {
    font-family: 'Special Elite', cursive;
    font-size: 2rem;
    color: var(--texto-oscuro);
    margin-bottom: 20px;
}

.no-resultados p {
    font-size: 1.1rem;
    color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .logo-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .detalle-titulo {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .btn-filter {
        width: 100%;
    }
    
    .detalle-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .preparacion-lista li {
        padding-left: 50px;
    }
    
    .preparacion-lista li:before {
        left: 15px;
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
}