/* Pramadex S.A. — hoja de estilos del sitio estático */

:root {
  --brand: #662B33;
  --brand-dark: #522929;
  --ink: #343434;
  --text: #54595F;
  --muted: #7A7A7A;
  --light: #F0F0F0;
  --lighter: #F5F5F5;
  --line: #DDDDDD;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sc { font-family: var(--serif); font-variant: small-caps; letter-spacing: .02em; }
.serif { font-family: var(--serif); }
.justify { text-align: justify; hyphens: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; z-index: 100; background: var(--white); padding: 8px 12px; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--brand); color: var(--white); font-size: 12px; }
.topbar .wrap { display: flex; justify-content: center; gap: 60px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Cabecera ---------- */
.header { background: var(--white); border-bottom: 1px solid #EEE; position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.logo img { width: 64px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav li { position: relative; }
.nav a.item, .nav button.item {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 15px; font: 500 14px var(--sans); color: var(--brand);
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav a.item:hover, .nav button.item:hover { text-decoration: none; color: var(--ink); }
.nav a.item.active::after, .nav li.active > .item::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 0; height: 2px; background: var(--ink);
}
.nav .sub {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--white); box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none;
}
.nav li:hover > .sub, .nav li.open > .sub { display: block; }
.nav .sub a { display: block; padding: 9px 18px; font-size: 14px; color: var(--brand); }
.nav .sub a:hover, .nav .sub a.active { background: var(--brand); color: var(--white); text-decoration: none; }
.caret { width: 10px; height: 10px; }

.lang { display: flex; margin-left: 16px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.lang a { padding: 4px 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lang a + a { border-left: 1px solid var(--line); }
.lang a:hover { text-decoration: none; color: var(--brand); }
.lang a.current { background: var(--brand); color: var(--white); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brand); }
.burger .icon { width: 28px; height: 28px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 10px 20px; font: 400 14px var(--sans);
  background: var(--brand); color: var(--white); border: 2px solid var(--brand); border-radius: 0;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); text-decoration: none; }
.btn-outline-light { background: var(--brand); border-color: var(--white); }
.btn-gray { background: var(--text); border-color: var(--text); font-size: 17px; padding: 9px 28px; }
.btn-gray:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); font-size: 17px; padding: 10px 30px; }
.btn-ghost:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }

/* ---------- Slider de inicio ---------- */
.slider { position: relative; height: 420px; overflow: hidden; background: #111; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease; display: flex; align-items: center;
}
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.1)); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide .wrap { position: relative; color: var(--white); padding-left: 90px; }
.slide h2 { font-family: var(--serif); font-variant: small-caps; font-size: 32px; margin-bottom: 18px; }
.slide p { max-width: 460px; font-size: 15px; margin-bottom: 22px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: none; border: 0; color: var(--white); cursor: pointer; padding: 10px;
}
.slider-arrow .icon { width: 30px; height: 30px; }
.slider-arrow.prev { left: 6px; }
.slider-arrow.next { right: 6px; }
.slider-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.slider-dots button.is-active { background: var(--white); }

/* ---------- Cabecera de página interior ---------- */
.hero {
  position: relative; background-size: cover; background-position: center;
  min-height: 300px; display: flex; align-items: center; color: var(--white);
}
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hero .wrap { position: relative; padding-left: 200px; }
.hero h1 { font: 600 38px var(--sans); margin-bottom: 14px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; }
.crumbs li + li::before { content: '|'; margin: 0 9px; opacity: .7; }
.crumbs a { color: var(--white); }

/* ---------- Bloques comunes ---------- */
.section { padding: 70px 0; }
.bg-light { background: var(--light); }
.bg-dark { background: var(--ink); color: var(--white); }
.title-sc { font-family: var(--serif); font-variant: small-caps; color: var(--brand); font-size: 28px; letter-spacing: .02em; }
.divider { width: 90px; height: 1px; background: var(--brand); margin: 16px 0 26px; border: 0; }
.divider.center { margin-left: auto; margin-right: auto; }
.divider.white { background: var(--white); }
.center { text-align: center; }

/* Acordeón y desplegables */
.toggle { border-bottom: 1px solid var(--line); }
.toggle summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 17px; color: var(--brand);
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary .icon { width: 12px; height: 12px; transition: transform .2s; }
.toggle[open] summary .icon { transform: rotate(180deg); }
.toggle .body { padding: 0 0 18px; font-size: 13px; font-weight: 300; color: var(--muted); }
.toggle .body a { color: var(--muted); }

/* ---------- Inicio ---------- */
.home-services { display: grid; grid-template-columns: 1fr 1fr; max-width: 860px; margin: 0 auto; align-items: center; }
.home-services .pic {
  position: relative; min-height: 280px; background: url(../img/clientescomerciales.jpg) center/cover;
  display: flex; align-items: center; justify-content: center;
}
.home-services .pic h2 { position: relative; font-family: var(--serif); font-variant: small-caps; font-size: 24px; color: var(--ink); text-transform: uppercase; }
.home-services .acc { padding: 0 0 0 12px; }
.home-about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; max-width: 840px; margin: 0 auto; }
.home-about .kicker { font-family: var(--serif); font-variant: small-caps; font-size: 13px; margin-bottom: 26px; font-weight: 700; }
.home-about h2 { font-family: var(--serif); font-size: 28px; margin-bottom: 26px; }
.home-about p { font-size: 13px; font-weight: 600; margin-bottom: 26px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 830px; margin: 0 auto; }
.card { background: var(--lighter); display: flex; flex-direction: column; text-align: center; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .in { padding: 26px 24px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; color: var(--ink); font-weight: 500; margin-bottom: 14px; }
.card p { font-size: 13px; flex: 1; margin-bottom: 24px; }
.card .btn { align-self: center; }

/* ---------- Pie de página ---------- */
.footer { background: var(--light); padding: 30px 0 18px; }
.footer .wrap { display: grid; grid-template-columns: 1fr 2.4fr; gap: 30px; align-items: center; max-width: 900px; }
.footer .logo-f img { width: 76px; margin: 0 auto; }
.footer h2 { font-family: var(--serif); color: var(--brand); font-size: 19px; margin-bottom: 14px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 30px; font-size: 13px; }
.contact-list a { color: var(--ink); display: flex; gap: 8px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--ink); }
.copy { background: var(--brand); color: var(--white); text-align: center; font-size: 11px; padding: 9px 0; }

/* ---------- Sobre nosotros ---------- */
.lead-serif { font-family: var(--serif); font-size: 17px; color: var(--ink); font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.text-sm { font-size: 13px; }
.quote { position: relative; padding: 46px 10px 0; font-size: 14px; color: var(--text); }
.quote::before, .quote .end {
  font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--brand); font-weight: 700; position: absolute;
}
.quote::before { content: '\201C'; top: -6px; left: 0; }
.quote .end { right: 0; bottom: -40px; }
.quote cite { display: block; font-style: normal; font-weight: 700; color: var(--brand); margin-top: 18px; }
.supervision {
  background: linear-gradient(rgba(82,41,41,.93), rgba(82,41,41,.88)), url(../img/slider2.jpg) center/cover;
  color: var(--white); padding: 90px 0;
}
.supervision .in { max-width: 760px; margin: 0 auto; font-size: 13px; }
.supervision h2 { font-family: var(--serif); font-variant: small-caps; font-size: 24px; text-align: center; }
.supervision a { color: var(--white); text-decoration: underline; }
.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mission h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.mission p { font-size: 13px; margin-bottom: 22px; }
.values { display: grid; grid-template-columns: 1fr 1fr; }
.value { padding: 22px 14px; text-align: center; }
.value:nth-child(1), .value:nth-child(2) { border-bottom: 2px solid var(--brand); }
.value:nth-child(odd) { border-right: 2px solid var(--brand); }
.value .icon { width: 42px; height: 42px; color: var(--brand); margin: 0 auto 14px; display: block; }
.value h3 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.value p { font-size: 11px; font-weight: 300; color: var(--muted); }

/* ---------- Clientes ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > div { padding: 90px 60px 70px; }
.split .left { padding-left: max(20px, calc((100vw - var(--wrap)) / 2 + 60px)); }
.split .right { background: #E8E8E8; padding-right: max(20px, calc((100vw - var(--wrap)) / 2)); }
.split .right .lead { text-align: center; color: var(--brand); font-weight: 700; font-style: italic; font-size: 13px; margin-bottom: 14px; }
.acc-box { border: 1px solid var(--line); }
.acc-box details + details { border-top: 1px solid var(--line); }
.acc-box summary { list-style: none; cursor: pointer; padding: 12px 15px; font-weight: 500; color: var(--ink); display: flex; gap: 10px; align-items: center; font-size: 14px; }
.acc-box summary::-webkit-details-marker { display: none; }
.acc-box summary::before { content: '+'; font-weight: 700; font-size: 18px; width: 12px; line-height: 1; }
.acc-box details[open] summary { color: var(--brand); }
.acc-box details[open] summary::before { content: '\2212'; }
.acc-box .body { padding: 6px 15px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.acc-box ul { margin: 8px 0 0; padding-left: 20px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 870px; margin: 0 auto; }
.card-2 { background: #F2F2F2; }
.card-2 img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; }
.card-2 .in { padding: 14px 10px 40px; font-size: 13px; }
.card-2 h3 { font-family: var(--serif); font-size: 20px; color: var(--text); margin-bottom: 12px; }
.banks { max-width: 540px; margin: 0 auto; display: grid; gap: 22px; text-align: left; }
.bank { background: var(--white); box-shadow: 0 2px 18px rgba(0,0,0,.09); }
.bank summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 800; color: var(--ink); text-transform: uppercase; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.bank summary::-webkit-details-marker { display: none; }
.bank summary .icon { width: 12px; height: 12px; transition: transform .2s; }
.bank[open] summary .icon { transform: rotate(90deg); }
.bank .body { padding: 0 28px 22px; font-size: 14px; }
.bank .body a { color: var(--muted); }
.big-icon { width: 30px; height: 30px; color: var(--brand); margin: 0 auto 12px; display: block; }

/* ---------- Servicios ---------- */
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; max-width: 1240px; margin: 0 auto; }
.svc-card { background: var(--white); box-shadow: 0 10px 40px rgba(0,0,0,.08); padding: 60px 30px; text-align: center; color: inherit; display: block; }
.svc-card:hover { text-decoration: none; box-shadow: 0 10px 40px rgba(0,0,0,.16); }
.svc-card .icon { width: 54px; height: 54px; color: var(--brand); margin: 0 auto 50px; display: block; stroke-width: 2.4; }
.svc-card h2 { font-family: var(--serif); font-size: 21px; color: var(--text); margin-bottom: 30px; }
.svc-card p { font-size: 15px; }
.fipi { max-width: 1240px; margin: 70px auto 0; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.fipi .top { background: var(--white); padding: 60px 0 0; }
.fipi .top .icon { width: 54px; height: 54px; color: var(--brand); margin: 0 auto -14px; display: block; position: relative; z-index: 1; stroke-width: 2.6; }
.fipi .box { background: #F1EDEE; border: 1px solid var(--brand); padding: 60px 30px 60px; text-align: center; }
.fipi h2 { font-family: var(--serif); font-size: 21px; color: var(--text); text-transform: uppercase; margin-bottom: 30px; }
.fipi p { font-size: 15px; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1240px; margin: 70px auto 0; justify-items: center; }

/* ---------- Páginas de servicio ---------- */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 90px; }
.side h2 { font-family: var(--serif); font-variant: small-caps; color: var(--brand); font-size: 24px; letter-spacing: .02em; }
.side .divider { width: 120px; height: 3px; margin: 18px 0 24px; }
.side-nav { list-style: none; margin: 0 0 50px; padding: 0; }
.side-nav a { display: block; padding: 22px 24px; color: var(--ink); font-size: 15px; font-weight: 600; }
.side-nav a:hover { text-decoration: none; color: var(--brand); }
.side-nav a.active { background: var(--brand); color: var(--white); }
.side .contact-btns { display: grid; gap: 12px; }
.side .contact-btns .btn { text-align: center; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 16px; padding: 12px; }
.svc-main h2.page-title { font-family: var(--serif); font-variant: small-caps; color: var(--brand); font-size: 30px; text-align: center; margin-bottom: 20px; letter-spacing: .02em; text-transform: uppercase; }
.svc-main { font-size: 18px; }
.svc-main p { margin-bottom: 1.1em; }
.callout { background: var(--light); border-left: 6px solid var(--ink); padding: 34px 30px; color: #000; font-size: 16px; margin: 0 0 34px; }
.checks { list-style: none; margin: 0 0 30px; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 2px 0; }
.checks .icon { color: var(--brand); stroke-width: 3; width: 16px; height: 16px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; max-width: 1300px; margin: 0 auto; }
.contact-grid .icon { width: 56px; height: 56px; color: var(--brand); margin: 0 auto 30px; display: block; stroke-width: 2.2; }
.contact-grid .val { font-size: 22px; color: var(--brand); font-weight: 500; min-height: 66px; display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.contact-grid .val.small { font-size: 14px; font-weight: 600; }
.map iframe { display: block; width: 100%; height: 520px; border: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 110px 20px; }
.notfound h1 { font-family: var(--serif); color: var(--brand); font-size: 46px; margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { padding-left: 20px; }
  .svc-layout { grid-template-columns: 220px 1fr; gap: 40px; }
  .split .left, .split .right { padding: 60px 30px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); row-gap: 60px; }
}

@media (max-width: 860px) {
  .topbar .wrap { gap: 18px; flex-wrap: wrap; }
  .topbar .addr { display: none; }
  .burger { display: block; }
  .header .wrap { min-height: 72px; }
  .logo img { width: 52px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,.1); display: none;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a.item, .nav button.item { padding: 13px 22px; width: 100%; justify-content: space-between; font-size: 16px; }
  .nav a.item.active::after, .nav li.active > .item::after { display: none; }
  .nav a.item.active, .nav li.active > .item { background: var(--light); }
  .nav .sub { position: static; box-shadow: none; padding: 0 0 6px 18px; }
  .nav li:hover > .sub { display: none; }
  .nav li.open > .sub { display: block; }
  .lang { margin: 14px 22px 0; align-self: flex-start; }
  .lang a { padding: 7px 14px; font-size: 14px; }

  .slider { height: 360px; }
  .slide .wrap { padding: 0 54px; }
  .slide h2 { font-size: 26px; }
  .hero { min-height: 200px; }
  .hero h1 { font-size: 28px; }
  .section { padding: 50px 0; }

  .home-services, .home-about, .two-col, .mission, .split, .cards-2, .svc-cards, .svc-layout { grid-template-columns: 1fr; }
  .home-services .acc { padding: 16px 0 0; }
  .two-col, .mission { gap: 40px; }
  .cards { grid-template-columns: 1fr; max-width: 420px; }
  .split .left, .split .right { padding: 50px 20px; }
  .svc-cards { gap: 30px; }
  .downloads { grid-template-columns: 1fr; gap: 16px; }
  .svc-layout { gap: 30px; }
  .svc-layout .side { order: 2; }
  .svc-main { font-size: 16px; }
  .footer .wrap { grid-template-columns: 1fr; text-align: center; }
  .contact-list { grid-template-columns: 1fr; justify-items: center; }
  .map iframe { height: 380px; }
}

@media (max-width: 520px) {
  .topbar .wrap { justify-content: space-around; }
  .values { grid-template-columns: 1fr; }
  .value:nth-child(odd) { border-right: 0; }
  .value { border-bottom: 2px solid var(--brand); }
  .value:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .quote .end { bottom: -46px; }
}
