/* ================================================================
   CHEF TOCADO - ESTILOS PERSONALIZADOS
   ================================================================ */

:root {
    --primary-orange: #f97316;
    --primary-red: #dc2626;
    --accent-yellow: #fbbf24;
    --dark-bg: #1f2937;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ================================================================
   NAVBAR
   ================================================================ */
nav {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav h1 {
    letter-spacing: 0.5px;
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
    background: linear-gradient(135deg, #fff7ed 0%, #fee2e2 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h2 {
    background: linear-gradient(135deg, #f97316, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* ================================================================
   YOUTUBE ADVERTISING SECTION
   ================================================================ */
.youtube-ad-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 12px;
    padding: 2rem;
    color: white;
    box-shadow: 0 20px 25px rgba(220, 38, 38, 0.3);
    overflow: hidden;
    position: relative;
}

.youtube-ad-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.youtube-ad-section > * {
    position: relative;
    z-index: 1;
}

.youtube-ad-section h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.youtube-ad-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.youtube-ad-section strong {
    font-weight: 700;
    color: #fbbf24;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-buttons a:first-child {
    background: white;
    color: #dc2626;
    flex: 1;
    justify-content: center;
}

.cta-buttons a:first-child:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.cta-buttons a:last-child {
    background: #b91c1c;
    color: white;
    border: 2px solid white;
}

.cta-buttons a:last-child:hover {
    background: white;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.youtube-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
}

.youtube-stats div p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.youtube-stats div p:last-child {
    color: rgba(255, 255, 255, 0.8);
}

/* ================================================================
   VIDEO CONTAINER
   ================================================================ */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: black;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ================================================================
   INFO CARDS
   ================================================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.15);
}

.info-card .emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* ================================================================
   RECIPE VIEW
   ================================================================ */
.recipe-header {
    background: linear-gradient(135deg, #fff7ed 0%, #fee2e2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.recipe-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.recipe-header p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recipe-meta-item .emoji {
    font-size: 1.5rem;
}

.recipe-meta-item div p:first-child {
    font-weight: 600;
    color: #1f2937;
}

.recipe-meta-item div p:last-child {
    color: #6b7280;
    font-size: 0.85rem;
}

/* ================================================================
   INGREDIENTS & STEPS
   ================================================================ */
.ingredients-section,
.steps-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ingredients-section h3,
.steps-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-section ul {
    list-style: none;
}

.ingredients-section li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.ingredients-section li:last-child {
    border-bottom: none;
}

.ingredients-section li span:first-child {
    color: var(--primary-orange);
    font-weight: 700;
    flex-shrink: 0;
}

.steps-section ol {
    list-style: none;
    counter-reset: step-counter;
}

.steps-section li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.steps-section li:last-child {
    border-bottom: none;
}

.step-number {
    background: var(--primary-orange);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ================================================================
   CHATBOT
   ================================================================ */
.chatbot-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chatbot-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.chat-messages {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    height: 16rem;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-message {
    display: flex;
    margin-bottom: 0.5rem;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    word-wrap: break-word;
}

.chat-message.user .chat-bubble {
    background: var(--primary-orange);
    color: white;
}

.chat-message.bot .chat-bubble {
    background: #e5e7eb;
    color: #1f2937;
}

.chat-input-group {
    display: flex;
    gap: 0.5rem;
}

.chat-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.chat-input-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.chat-input-group button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input-group button:hover {
    background: #ea580c;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-print {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(59, 130, 246, 0.3);
}

.btn-share {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(16, 185, 129, 0.3);
}

/* ================================================================
   ADMIN PANEL
   ================================================================ */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card p:first-child {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.stat-card p:last-child {
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-card:nth-child(1) p:last-child {
    color: var(--primary-orange);
}

.stat-card:nth-child(2) p:last-child {
    color: var(--primary-red);
}

.stat-card:nth-child(3) p:last-child {
    color: #3b82f6;
}

.admin-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

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

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

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

/* ================================================================
   FLOATING CHATBOT
   ================================================================ */
.chatbot-button {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 50;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.chatbot-window {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 20rem;
    height: 24rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 50;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.chatbot-input button {
    padding: 0.5rem 1rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    nav,
    #landing,
    .chatbot-button,
    .chatbot-window,
    .btn-print,
    .btn-share {
        display: none !important;
    }

    body {
        background: white;
    }

    .recipe-header {
        page-break-after: avoid;
    }

    .ingredients-section,
    .steps-section {
        page-break-inside: avoid;
    }
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 768px) {
    .youtube-ad-section {
        padding: 1.5rem;
    }

    .youtube-ad-section h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons a {
        width: 100%;
    }

    .youtube-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .recipe-header h2 {
        font-size: 1.75rem;
    }

    .recipe-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .chat-bubble {
        max-width: 85%;
    }

    .chatbot-window {
        width: 100%;
        height: 70vh;
        bottom: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
    }

    .chatbot-button {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-section h2 {
        font-size: 1.75rem;
    }

    .youtube-ad-section {
        padding: 1rem;
    }

    .youtube-ad-section h3 {
        font-size: 1.25rem;
    }

    .youtube-ad-section p {
        font-size: 0.95rem;
    }

    .recipe-header h2 {
        font-size: 1.5rem;
    }

    .recipe-header p {
        font-size: 1rem;
    }

    .ingredients-section,
    .steps-section {
        padding: 1rem;
    }

    .ingredients-section h3,
    .steps-section h3 {
        font-size: 1.25rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }
}
