/* ==========================================================================
   Cocina con Jassy - styles.css global
   GCS Static - Optimizado para Core Web Vitals - Editable para futuras secciones
   ========================================================================== */

/* Reset mínimo indispensable */
*{box-sizing:border-box}
html{scrollbar-gutter:stable;scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,sans-serif;background:#fff;color:#23272a;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit}
img{max-width:100%;height:auto}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.98);border-bottom:1px solid #ececec;backdrop-filter:blur(8px)}
.header-top{max-width:1180px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.header-logo{font-weight:800;font-size:1.45rem;color:#c0392b;text-decoration:none;letter-spacing:-.02em}
.header-search-container{flex:1;max-width:460px}
.header-form{display:flex;gap:8px}
.header-form input{flex:1;padding:11px 14px;border:1px solid #e0e0e0;border-radius:10px;font-size:.95rem;outline:none}
.header-form input:focus{border-color:#c0392b;box-shadow:0 0 0 3px rgba(192,57,43,.12)}
.header-form button{padding:11px 18px;background:#c0392b;color:#fff;border:0;border-radius:10px;cursor:pointer;font-weight:700}
.header-nav{max-width:1180px;margin:0 auto;padding:0 20px 12px;display:flex;gap:10px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.header-nav::-webkit-scrollbar{display:none}
.header-nav a{background:#f7f7f8;color:#2c3e50;text-decoration:none;font-weight:600;font-size:.88rem;padding:7px 14px;border-radius:999px;border:1px solid #f0f0f0}
.header-nav a:hover{background:#c0392b;color:#fff;border-color:#c0392b}

/* Layout principal - Sidebar a la derecha */
.container{max-width:1180px;margin:0 auto;padding:26px 20px;display:grid;grid-template-columns:1fr 360px;gap:30px}
@media(max-width:980px){.container{grid-template-columns:1fr}.sidebar{order:2}.main-content{order:1}}
.main-content{min-width:0}
.sidebar{position:sticky;top:86px;align-self:start}
.sidebar h3{font-size:1.05rem;margin:24px 0 10px;color:#111}
.sidebar h3:first-child{margin-top:0}
.sidebar ul{list-style:none;padding:0;margin:0 0 18px}
.sidebar li{margin-bottom:6px}
.sidebar li a{display:block;padding:7px 12px;background:#fafafb;border:1px solid #f0f0f0;border-radius:10px;text-decoration:none;color:#34495e;font-size:.93rem;transition:.15s}
.sidebar li a:hover{background:#fdecea;border-color:#f5c6c0;color:#a93226}

/* Hero / Author - EEAT */
.hero-box{background:linear-gradient(135deg,#fff5f3,#fef9e7);padding:26px;border-radius:18px;margin-bottom:28px;border:1px solid #f5e6e0}
.author-box{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #eee;padding:16px;border-radius:14px;margin:18px 0}
.author-box img{width:72px;height:72px;border-radius:50%;object-fit:cover;flex-shrink:0}
.ymyl-note{font-size:.85rem;color:#5b6570;margin-top:8px}

/* Article-Grid - 5 grids de 3 tarjetas */
.cards-section{margin-bottom:38px}
.cards-section h2{font-size:1.35rem;margin:0 0 14px;letter-spacing:-.01em}
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:800px){.cards-grid{grid-template-columns:1fr}}
.card{border:1px solid #eeeeee;border-radius:16px;overflow:hidden;background:#fff;transition:transform .15s, box-shadow .15s}
.card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.06)}
.card-img-wrap{aspect-ratio:3/2;background:#f6f7f8;display:block;overflow:hidden}
.card-img-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:12px 14px}
.card-body h3{font-size:.98rem;margin:0 0 6px;line-height:1.35}
.card-body h3 a{color:#111;text-decoration:none}
.card-body p{font-size:.86rem;color:#667085;margin:0 0 8px;line-height:1.4}
.card-body .link{color:#c0392b;font-weight:700;text-decoration:none;font-size:.84rem}

/* Sidebar destacadas - 5 mini cards */
.dest-mini{display:flex;flex-direction:column;gap:10px}
.dest-mini a{display:flex;gap:10px;align-items:center;text-decoration:none;background:#fff;border:1px solid #efefef;border-radius:12px;padding:8px;transition:.15s}
.dest-mini a:hover{border-color:#f5c6c0}
.dest-mini a span:last-child{font-size:.88rem;color:#2c3e50;font-weight:500;line-height:1.3}
.mini-img-wrap{width:88px;height:64px;background:#f6f7f8;border-radius:8px;overflow:hidden;flex-shrink:0}
.mini-img-wrap img{width:100%;height:100%;object-fit:cover;display:block}

/* Otras recetas que te pueden gustar - 4 tarjetas antes del footer */
#otras-recetas{max-width:1180px;margin:0 auto;padding:0 20px 40px}
#otras-recetas h2{font-size:1.35rem;margin-bottom:16px}

/* Footer */
.site-footer{background:#141414;color:#d0d0d0;margin-top:40px}
.footer-inner{max-width:1180px;margin:0 auto;padding:36px 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
@media(max-width:720px){.footer-inner{grid-template-columns:1fr}}
.footer-col h4{color:#fff;margin:0 0 12px;font-size:1rem;letter-spacing:.02em}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:9px}
.footer-col a{color:#b0b0b0;text-decoration:none;font-size:.9rem}
.footer-col a:hover{color:#fff;text-decoration:underline}
.copy{text-align:center;padding:16px 20px;border-top:1px solid #262626;color:#7a7a7a;font-size:.82rem}

/* ==================== SERPs estilo Google - para buscar.html ==================== */
.serp-wrapper{max-width:1180px;margin:0 auto;padding:20px 20px 40px;display:grid;grid-template-columns:1fr 360px;gap:30px}
@media(max-width:980px){.serp-wrapper{grid-template-columns:1fr}}
.serp-header{margin-bottom:18px;color:#70757a;font-size:.88rem}
.serp-item{margin-bottom:26px;max-width:640px}
.serp-breadcrumb{font-size:.82rem;color:#202124;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.serp-breadcrumb span{color:#5f6368}
.serp-title{font-size:1.15rem;line-height:1.3;margin:2px 0 4px}
.serp-title a{color:#1a0dab;text-decoration:none}
.serp-title a:hover{text-decoration:underline}
.serp-title a:visited{color:#681da8}
.serp-desc{font-size:.9rem;color:#4d5156;line-height:1.58;margin:0}
.serp-desc b{color:#202124;font-weight:700}
.serp-meta{font-size:.8rem;color:#70757a;margin-top:4px;display:flex;gap:10px}
.serp-thumb{width:92px;height:92px;border-radius:10px;overflow:hidden;flex-shrink:0;background:#f6f7f8}
.serp-thumb img{width:100%;height:100%;object-fit:cover}
.serp-item-with-thumb{display:flex;gap:14px;align-items:flex-start}
.no-results{background:#fffbe6;border:1px solid #ffe082;padding:18px;border-radius:12px;color:#5d4037}
