/* ═══════════════════════════════════════════════
   index.css — Recetify Lab
   ═══════════════════════════════════════════════ */

:root {
    --orange:      #F26522;
    --orange-dark: #d9551a;
    --dark-card:   #3b4147;
    --dark-deep:   #2d3238;
    --text-light:  #f0f0f0;
    --text-muted:  #adb5bd;
    --bg:          #f0f2f5;
    --radius-lg:   20px;
    --shadow-card: 0 8px 40px rgba(0,0,0,.18);
}

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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
}

.index-container {
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 80px;
    gap: 40px;
}

/* ══════════════════════════════════════════════
   HERO CARD
══════════════════════════════════════════════ */
.box-1 {
    background: linear-gradient(145deg, var(--dark-card) 0%, var(--dark-deep) 100%);
    color: var(--text-light);
    padding: 60px 56px 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    width: 100%;
    max-width: 920px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.box-1::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(242,101,34,.18) 0%, transparent 70%);
    pointer-events: none;
}
.box-1::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(242,101,34,.10) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Header: logo ENCIMA del título, ambos centrados ── */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

/* Fila logo + título: logo arriba, título abajo */
.header-row {
    display: flex;
    flex-direction: column;   /* logo sobre título */
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.35));
}

.title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-light);
    line-height: 1;
}

.title span { color: var(--orange); }

/* ── Buscador unificado ── */
.search-container {
    display: flex;
    justify-content: center;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 580px;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.14);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.search-form:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242,101,34,.22);
}

.search-input {
    flex: 1;
    padding: 15px 24px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
}

.search-input::placeholder { color: var(--text-muted); }

.btn-search {
    background: var(--orange);
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    color: white;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 0 50px 50px 0;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover { background: var(--orange-dark); transform: scale(1.03); }
.btn-search i { font-size: .9rem; }

/* Tagline DEBAJO del buscador */
.tagline {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 14px;
    text-align: center;
}

/* ── Chips ── */
.search-hints {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hint-chip {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--text-muted);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: .8rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    display: inline-block;
}

.hint-chip:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* ══════════════════════════════════════════════
   SECCIÓN "SOBRE LA PLATAFORMA"
══════════════════════════════════════════════ */
.box-2 {
    width: 100%;
    max-width: 920px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    color: #333;
}

.box-2 h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.box-2 h2::before {
    content: '';
    display: inline-block;
    width: 4px; height: 24px;
    background: var(--orange);
    border-radius: 4px;
    flex-shrink: 0;
}

.box-2 p {
    font-size: .96rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 14px;
}

.box-2 p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 680px) {
    .index-container { padding: 32px 14px 60px; gap: 24px; }
    .box-1 { padding: 36px 22px 32px; border-radius: 16px; }

    .logo { width: 80px; height: 80px; }
    .title { font-size: 1.9rem; }
    .tagline { font-size: .85rem; }

    .search-form { max-width: 100%; }
    .search-input { padding: 13px 16px; font-size: .9rem; }
    .btn-search { padding: 13px 20px; }

    .box-2 { padding: 28px 22px; border-radius: 14px; }
}

@media (max-width: 380px) {
    .title { font-size: 1.6rem; }
    .btn-search span { display: none; }
}