/*
Theme Name: Americano con hielo V1.1
Theme URI: https://example.com/
Author: atgv_gftse
Description: Tema minimal y elegante en tonos crema/marrón para artículos y recursos (bilingüe ES/EN).
Version: 1.1.0
License: GPLv2 or later
Text Domain: americano-con-hielo
*/

:root{
  --bg: #fbf7f0;          /* crema */
  --paper: #fffaf2;       /* crema claro */
  --text: #2b241b;        /* cacao */
  --muted: #6b5b4b;       /* marrón suave */
  --brand: #5a3e2b;       /* café */
  --accent: #b88b5a;      /* caramelo */
  --border: rgba(43,36,27,.12);

  --radius: 18px;
  --maxw: 1040px;
  --shadow: 0 10px 30px rgba(43,36,27,.08);
}

@font-face{
  font-family: "Petit Formal Script";
  src: url("./assets/fonts/PetitFormalScript-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans";
  background: radial-gradient(1200px 800px at 20% 0%, #fff 0%, var(--bg) 45%, #f6efe6 100%);
  color:var(--text);
  line-height:1.65;
}

a{ color:var(--brand); text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width:min(var(--maxw), calc(100% - 2rem));
  margin-inline:auto;
}

.site-header{
  position:sticky; top:0;
  backdrop-filter:saturate(160%) blur(10px);
  background: rgba(251,247,240,.75);
  border-bottom:1px solid var(--border);
  z-index:10;
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: .9rem 0;
  gap:1rem;
}

.footer-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: .9rem 0;
  gap:1rem;
}

.nav ul{
  list-style:none;
  display:flex;
  gap:.9rem;
  padding:0; margin:0;
}
.nav a{
  display:inline-block;
  padding:.45rem .65rem;
  border-radius:999px;
}
.nav a:hover{
  background: rgba(184,139,90,.12);
  text-decoration:none;
}

.hero{
  padding: 2.2rem 0 1.2rem;
}
.hero-card{
  background: linear-gradient(180deg, rgba(255,250,242,.95), rgba(255,250,242,.86));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem;
}
.hero h1{
  margin:0 0 .35rem;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem);
  line-height:1.15;
}
.hero p{
  margin:.4rem 0 0;
  color:var(--muted);
  max-width: 68ch;
}
.hero .chips{
  margin-top: 1rem;
  display:flex; flex-wrap:wrap;
  gap:.5rem;
}
.chip{
  border:1px solid var(--border);
  background: rgba(255,255,255,.55);
  padding:.35rem .6rem;
  border-radius:999px;
  font-size:.9rem;
  color:var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 1.2rem;
  padding: 1.2rem 0 2.2rem;
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: rgba(255,250,242,.9);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card .pad{ padding: 1.2rem 1.2rem; }

.post-list article{
  padding: 1.05rem 0;
  border-bottom:1px solid var(--border);
}
.post-list article:last-child{ border-bottom:none; }
.meta{
  color:var(--muted);
  font-size:.92rem;
}

.content{
  padding: 1.2rem 1.2rem;
}
.content h1, .content h2, .content h3{ line-height:1.2; }
.content pre{
  overflow:auto;
  padding: .9rem 1rem;
  background:#1e1a16;
  color:#f4efe9;
  border-radius: 12px;
}
.content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.button{
  display:inline-block;
  background: var(--brand);
  color:#fff;
  padding: .55rem .85rem;
  border-radius: 12px;
  font-weight:600;
}
.button:hover{ filter:brightness(1.05); text-decoration:none; }

.widget-title{
  margin:0 0 .7rem;
  font-size:1rem;
}
.widget ul{ margin:0; padding-left:1.2rem; }
.widget li{ margin:.25rem 0; }

.site-footer{
  border-top:1px solid var(--border);
  padding: 1.4rem 0 2.4rem;
  color:var(--muted);
  font-size:.95rem;
}

/* Brand row */
.brand-row { display:flex; align-items:center; }
.brand-link{
  display:flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
}
.brand-link:hover{ text-decoration:none; }

.brand-mark{
  width:36px; height:36px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: rgba(184,139,90,.14);
  border: 1px solid var(--border);
}
.brand-title{
  display:block;
  /* font-weight: 750; */
  letter-spacing: .2px;
  color: var(--text);
  font-family: "Petit Formal Script", cursive;
  font-weight: 400;
}

.brand-sub{ 
  display:block;
  color: var(--muted);
  margin-top:.1rem; 
}

/* Language switch (Polylang renders an UL by default) */
.lang-switch ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:.4rem;
  align-items:center;
}
.lang-switch li{
  display: inline;
  list-style:none;
  align-items:center;
}
.lang-switch a{
  display:inline-block;
  padding:.35rem .55rem;
  border:1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .9rem;
  text-decoration:none;
  background: rgba(255,255,255,.45);
}
.lang-switch .current-lang a,
.lang-switch a:hover{
  color: var(--brand);
  background: rgba(184,139,90,.14);
}