/* Páginas internas rediseñadas: Nosotros, Contacto y Cómo funciona.
   Paleta del sitio (negro, crema y rojo) con títulos en serif. */
.px-hero, .px-section, .px-split { --px-black: #0b0b0b; --px-panel: #141414; --px-red: #E62026; --px-red-deep: #c3161c; --px-cream: #EFE6D8; --px-white: #F5F3EE; --px-line: rgba(245, 243, 238, .16); --px-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --px-ease: cubic-bezier(.22, .8, .2, 1); }
.px-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* Portada de cada página */
.px-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(320px, 52vh, 520px); padding: clamp(40px, 6vw, 80px) 0; color: var(--px-white); background: #0b0b0b; isolation: isolate; }
.px-hero--short { min-height: clamp(260px, 38vh, 380px); }
.px-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 11, .35) 0%, rgba(11, 11, 11, .88) 100%), var(--px-foto) center / cover no-repeat; }
.px-hero__sub { margin: 14px 0 0; max-width: 56ch; color: rgba(245, 243, 238, .82); font-size: 1.05rem; line-height: 1.5; }

/* Tipografía */
.px-kicker { margin: 0 0 12px; color: rgba(245, 243, 238, .7); font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.px-title { margin: 0; font-family: var(--px-serif); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.px-title--xl { font-weight: 700; font-size: clamp(3rem, 8vw, 6.4rem); line-height: .92; }
.px-title--sm { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.px-n { display: block; font-family: var(--px-serif); font-weight: 600; font-size: 3rem; line-height: 1; color: var(--px-red); }

/* Secciones */
.px-section { padding: clamp(56px, 8vw, 110px) 0; background: var(--px-black); color: var(--px-white); }
.px-section--cream { background: var(--px-cream); color: #111; }
.px-section--panel { background: var(--px-panel); border-block: 1px solid var(--px-line); }
.px-two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.px-text p, .px-split__body p, .px-text-p { margin: 0 0 1em; max-width: 62ch; font-size: 1.05rem; line-height: 1.65; color: rgba(245, 243, 238, .8); }
.px-section--cream .px-text p, .px-section--cream p { color: #4a3f36; }

/* Foto + texto */
.px-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--px-panel); color: var(--px-white); }
.px-split__media { min-height: 360px; overflow: hidden; }
.px-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-split__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 90px); }

/* Valores */
.px-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.px-values article { padding-top: 20px; border-top: 1px solid rgba(17, 17, 17, .22); }
.px-values h3 { margin: 10px 0 8px; font-family: var(--px-serif); font-size: 1.9rem; line-height: 1.05; color: #111; }
.px-values p { margin: 0; line-height: 1.6; }

/* Propósito */
.px-purpose { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.px-aside { padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--px-red); color: #fff; }
.px-aside h3 { margin: 0 0 10px; font-family: var(--px-serif); font-size: 2rem; line-height: 1.05; }
.px-aside p { margin: 0; color: rgba(255, 255, 255, .92); line-height: 1.55; }

/* Valores de la empresa */
.px-company { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.px-company__photo { border-radius: 999px 999px 32px 32px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 460px; }
.px-company__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-list { margin: 0; padding: 0; list-style: none; }
.px-list li { padding: 16px 0; border-top: 1px solid var(--px-line); font-family: var(--px-serif); font-size: 1.7rem; line-height: 1.1; }
.px-list li:last-child { border-bottom: 1px solid var(--px-line); }

/* Valores de la cultura (acordeón) */
.px-acc details { border-top: 1px solid rgba(17, 17, 17, .22); }
.px-acc details:last-child { border-bottom: 1px solid rgba(17, 17, 17, .22); }
.px-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--px-serif); font-size: 1.7rem; font-weight: 600; color: #111; }
.px-acc summary::-webkit-details-marker { display: none; }
.px-acc summary::after { content: "+"; font-family: system-ui, sans-serif; font-size: 1.6rem; color: var(--px-red); transition: transform .3s var(--px-ease); }
.px-acc details[open] summary::after { transform: rotate(45deg); }
.px-acc p { margin: 0 0 20px; max-width: 60ch; line-height: 1.6; }
.px-acc summary:focus-visible { outline: 2px solid var(--px-red); outline-offset: 4px; }

/* Botones */
.px-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s var(--px-ease), color .25s, border-color .25s, transform .2s; }
.px-btn:active { transform: scale(.98); }
.px-btn--red { background: var(--px-red); color: #fff; }
.px-btn--red:hover { background: var(--px-red-deep); }
.px-btn--dark { background: #111; color: var(--px-cream); }
.px-btn--dark:hover { background: var(--px-red); color: #fff; }
.px-btn--line-dark { border-color: rgba(17, 17, 17, .35); color: #111; }
.px-btn--line-dark:hover { background: #111; color: var(--px-cream); }

/* Contacto */
.px-contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.px-form { display: grid; gap: 22px; }
.px-field { position: relative; display: block; }
.px-field input, .px-field textarea { width: 100%; padding: 24px 0 10px; border: 0; border-bottom: 1px solid rgba(17, 17, 17, .3); border-radius: 0; background: transparent; color: #111; font: inherit; font-size: 1.05rem; outline: 0; transition: border-color .25s; }
.px-field textarea { min-height: 130px; resize: vertical; }
.px-field span { position: absolute; left: 0; top: 22px; color: #6b5d51; pointer-events: none; transition: transform .25s var(--px-ease), font-size .25s; transform-origin: left; }
.px-field input:focus, .px-field textarea:focus { border-color: #111; }
.px-field input:focus + span, .px-field input:not(:placeholder-shown) + span, .px-field textarea:focus + span, .px-field textarea:not(:placeholder-shown) + span { transform: translateY(-20px); font-size: .75rem; }
.px-form .px-btn { justify-self: start; min-width: 200px; }
.px-side { display: grid; gap: 36px; }
.px-office { display: grid; gap: 14px; justify-items: start; padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: #111; color: var(--px-white); }
.px-office .px-kicker { margin: 0; }
.px-office__phone { font-family: var(--px-serif); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: #fff; text-decoration: none; }
.px-office__phone:hover { color: var(--px-red); }
.px-office .px-btn--dark { background: var(--px-red); color: #fff; }
.px-office .px-btn--dark:hover { background: var(--px-red-deep); }
.px-side .px-title--sm { color: #111; margin-bottom: 14px; }
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.px-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(17, 17, 17, .25); color: #111; font-size: .82rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.px-chips a:hover { background: #111; color: var(--px-cream); border-color: #111; }

/* Cómo funciona */
.px-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.px-steps li { padding-top: 20px; border-top: 1px solid rgba(17, 17, 17, .25); }
.px-steps h2 { margin: 12px 0 8px; font-family: var(--px-serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.05; color: #111; }
.px-steps p { margin: 0; line-height: 1.6; }
.px-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 5vw, 56px); }

@media (max-width: 900px) {
  .px-two, .px-split, .px-purpose, .px-company, .px-contact { grid-template-columns: 1fr; }
  .px-values, .px-steps { grid-template-columns: 1fr; }
  .px-split__media { min-height: 260px; max-height: 360px; }
  .px-company__photo { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { .px-btn, .px-field span, .px-acc summary::after { transition: none; } }

.px-office__title { margin: 0; font-family: var(--px-serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--px-white); }
