/* ============================================================
   COMPANY PROFILE THEME (.profile) — black / gold / green
   Mirrors TRADEROMSPAIN_Company_Profile design.
   Applied only to: index, empresa, contacto, products.
   Product pages (minerales, biostimulantes) do NOT use this.
   ============================================================ */
.profile {
  --blk: #0b0c0a;
  --blk2: #141611;
  --panel: #10120d;
  --gold: #C4982E;
  --gold-lt: #dcb75c;
  --grn: #8ad99a;
  --grn-dim: #5aa76a;
  --pink: #eeeee4;
  --pmuted: #adae9f;
  --pline: rgba(196,152,46,.28);
  background: var(--blk);
  color: var(--pink);
}
.profile .container { max-width: 1160px; }

/* ---- top bar ---- */
.profile .topbar { background: #050604; color: #b9b9ad; border-bottom: 1px solid rgba(196,152,46,.15); }
.profile .topbar a { color: var(--gold-lt); }

/* ---- nav ---- */
.profile header.nav { background: #070806; border-bottom: 1px solid var(--pline); }
.profile .brand { gap: 12px; }
.profile .brand img.logo-mark { height: 40px; width: auto; display: block; }
.profile .brand-name { color: var(--grn); font-family: Georgia, serif; letter-spacing: .5px; }
.profile .brand-name small { color: var(--gold-lt); }
.profile nav.menu a { color: #d9d9cd; }
.profile nav.menu a:hover, .profile nav.menu a.active { color: var(--gold-lt); border-bottom-color: var(--gold-lt); }
.profile .lang-switch { border-color: var(--gold); }
.profile .lang-switch button { color: #d9d9cd; }
.profile .lang-switch button.on { background: var(--gold); color: #12100a; }
.profile .nav-toggle { color: var(--gold-lt); }

/* ---- gold divider bar ---- */
.profile .gold-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-lt) 50%, var(--gold) 80%, transparent); }

/* ---- HERO with corner frame ---- */
.p-hero {
  position: relative; background:
    radial-gradient(120% 90% at 50% 0%, #14160f 0%, var(--blk) 60%);
  padding: 80px 0 76px; text-align: center; overflow: hidden;
}
.p-frame { position: absolute; inset: 22px; pointer-events: none; }
.p-frame::before, .p-frame::after {
  content: ""; position: absolute; width: 74px; height: 74px;
  border: 2px solid var(--gold);
}
.p-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.p-frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.p-corner { position: absolute; inset: 22px; pointer-events: none; }
.p-corner::before, .p-corner::after {
  content: ""; position: absolute; width: 74px; height: 74px; border: 2px solid var(--gold);
}
.p-corner::before { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.p-corner::after { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.p-hero .inner { position: relative; z-index: 2; }
.p-hero img.logo-full { width: 300px; max-width: 74%; height: auto; margin: 0 auto 6px; display: block; }
.p-hero .diamond { color: var(--gold); letter-spacing: 6px; margin: 22px 0 18px; font-size: 12px; }
.p-hero h1 {
  font-family: Georgia, serif; font-weight: normal; letter-spacing: 8px;
  font-size: 38px; color: var(--pink); text-transform: uppercase;
}
.p-hero .sub { font-family: Georgia, serif; font-style: italic; color: var(--gold-lt); letter-spacing: 2px; font-size: 18px; margin-top: 10px; }
.p-hero .meta { margin-top: 26px; color: var(--pmuted); font-size: 12.5px; letter-spacing: 2px; }
.p-hero .meta b { color: #cfcfc2; }

/* ---- section ---- */
.profile section { padding: 74px 0; }
.profile section.dark { background: #23261b; }
.profile section.panel { background: #2a2e21; }
.p-kick { color: var(--gold); letter-spacing: 4px; font-size: 11.5px; text-transform: uppercase; }
.p-title { font-family: Georgia, serif; font-weight: bold; font-size: 34px; color: var(--pink); margin: 10px 0 8px; }
.p-title em { color: var(--gold-lt); font-style: italic; font-weight: normal; }
.p-sub { color: var(--pmuted); max-width: 720px; margin-bottom: 40px; font-size: 15px; }
.p-line-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.p-line-head .bar { width: 46px; height: 3px; background: var(--gold); }

/* ---- page-4 style cards ---- */
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.p-card {
  background: linear-gradient(160deg, #2e3324, #22271a); border: 1px solid rgba(196,152,46,.3);
  border-radius: 10px; padding: 24px 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .2s, transform .2s;
}
.p-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.p-badge {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center;
  color: var(--gold-lt); font-family: Georgia, serif; font-size: 15px; background: rgba(196,152,46,.06);
}
.p-card .pc-series { color: var(--gold); letter-spacing: 2.5px; font-size: 9.5px; text-transform: uppercase; }
.p-card h3 { font-family: Georgia, serif; font-size: 19px; color: var(--pink); font-weight: bold; margin: 3px 0 2px; }
.p-card h3 em { color: var(--pmuted); font-style: italic; font-weight: normal; font-size: 15px; }
.p-card p { font-size: 13px; color: var(--pmuted); line-height: 1.55; margin-top: 8px; }

/* ---- two-column bilingual note ---- */
.p-bilingual { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; border-top: 1px solid var(--pline); padding-top: 28px; }
.p-bilingual .col b { color: var(--gold); }
.p-bilingual .col p { color: var(--pmuted); font-size: 13.5px; }

/* ---- stats ---- */
.p-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 44px; }
.p-stat { border-left: 2px solid var(--gold); padding-left: 18px; }
.p-stat b { display: block; font-family: Georgia, serif; font-size: 34px; color: var(--gold-lt); }
.p-stat span { color: var(--pmuted); font-size: 12.5px; letter-spacing: .5px; }

/* ---- buttons ---- */
.profile .btn-gold { background: var(--gold); color: #12100a; }
.profile .btn-gold:hover { background: var(--gold-lt); }
.profile .btn-line { border: 1px solid var(--gold); color: var(--gold-lt); }
.profile .btn-line:hover { background: rgba(196,152,46,.12); }

/* ---- big product entry cards (home / products) ---- */
.p-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.p-entry a {
  position: relative; overflow: hidden; border-radius: 12px; min-height: 240px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
  text-decoration: none; border: 1px solid var(--pline); transition: transform .2s, box-shadow .2s;
}
.p-entry a:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.p-entry .e-min { background: linear-gradient(160deg, #23331f, #10180d); }
.p-entry .e-bio { background: radial-gradient(120% 95% at 82% 20%, #0f3226, #08130e); }
.p-entry .ek { letter-spacing: 3px; font-size: 11px; text-transform: uppercase; margin-bottom: 8px; }
.p-entry .e-min .ek { color: var(--gold); } .p-entry .e-bio .ek { color: #2fe08f; }
.p-entry h3 { font-family: Georgia, serif; font-size: 26px; font-weight: bold; color: #eef2ea; margin-bottom: 8px; }
.p-entry h3 em { font-style: normal; } .p-entry .e-min h3 em { color: var(--gold-lt); } .p-entry .e-bio h3 em { color: #2fe08f; }
.p-entry p { font-size: 13.5px; color: #b7bfb0; margin-bottom: 14px; max-width: 380px; }
.p-entry .ego { font-size: 13px; letter-spacing: .5px; } .p-entry .e-min .ego { color: var(--gold-lt); } .p-entry .e-bio .ego { color: #2fe08f; }

/* ---- contact / office cards ---- */
.profile .office { background: #262a1d; border: 1px solid var(--pline); border-top: 3px solid var(--gold); }
.profile .office h3 { color: var(--pink); }
.profile .office .role { color: var(--gold); }
.profile .office p { color: #c3c3b6; }
.profile .office a { color: var(--gold-lt); }

/* ---- footer ---- */
.profile footer { background: #050604; border-top: 1px solid var(--pline); color: #8f8f83; }
.profile footer h5 { color: var(--gold); }
.profile footer a { color: #b7b7ab; }
.profile footer a:hover { color: var(--gold-lt); }
.profile .foot-brand { color: var(--grn); font-family: Georgia, serif; }
.profile .foot-tag { color: var(--gold-lt); }

@media (max-width: 820px) {
  .p-entry, .p-bilingual { grid-template-columns: 1fr; }
  .p-stats { grid-template-columns: 1fr 1fr; }
  .p-hero h1 { font-size: 26px; letter-spacing: 5px; }
}
