/* ============================================================
   INNER-PAGES.CSS — Nosotros, Servicios, Contacto
   YEYSON INOX PERU S.A.C.
   ============================================================ */

/* ── NOSOTROS — Historia ─────────────────────────────────────── */
.history-section { padding: 88px 0; background: var(--white); }
.history-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* Wrapper para decoraciones relativas a la imagen */
.history-img-wrap {
  position: relative;
  padding: 20px 20px 20px 0;
}
/* Bloque geométrico de acento detrás */
.history-img-wrap::before {
  content: '';
  position: absolute; top: 0; left: -12px; right: 32px; bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(245,130,31,0.08) 0%, rgba(13,27,62,0.05) 100%);
  border: 1.5px solid rgba(245,130,31,0.15);
  z-index: 0;
}
/* Línea naranja vertical izquierda */
.history-img-wrap::after {
  content: '';
  position: absolute; top: 40px; bottom: 40px; left: -12px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(to bottom, #f5821f, rgba(245,130,31,0.2));
  z-index: 1;
}

.history-img {
  border-radius: 18px; overflow: hidden;
  aspect-ratio: 3/2;
  min-height: 440px;
  background: var(--hist-bg, linear-gradient(135deg, #E8EAED 0%, #C8D0D8 100%));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative; z-index: 1;
  box-shadow: 0 28px 72px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.history-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 90px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.14);
}

/* Brackets de esquina naranja */
.history-img::before,
.history-img::after {
  content: ''; position: absolute;
  width: 32px; height: 32px;
  border-color: #f5821f; border-style: solid;
  z-index: 2; pointer-events: none;
}
.history-img::before { top: 14px; left: 14px; border-width: 3px 0 0 3px; border-radius: 3px 0 0 0; }
.history-img::after  { bottom: 14px; right: 14px; border-width: 0 3px 3px 0; border-radius: 0 0 3px 0; }

/* Tarjetas flotantes de estadísticas */
.hi-stat {
  position: absolute; z-index: 3;
  background: rgba(4,10,24,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245,130,31,0.28);
  border-radius: 14px; padding: 14px 20px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
}
.hi-stat strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.9rem; font-weight: 900; line-height: 1;
  color: #f5821f; letter-spacing: -0.5px;
}
.hi-stat strong sup { font-size: 1rem; vertical-align: super; }
.hi-stat span {
  font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 1px;
}
.hi-stat--years  { bottom: -18px; left: -18px; }
.hi-stat--projs  { top: -18px; right: -18px; }
.hi-stat--projs .hi-stat-icon {
  font-size: 1rem; color: #f5821f; margin-bottom: 4px;
}

.history-img .img-placeholder {
  text-align: center; color: rgba(255,255,255,.7);
}
.history-img .img-placeholder i  { font-size: 70px; margin-bottom: 14px; display: block; }
.history-img .img-placeholder span { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.history-text h2 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 44px; font-weight: 900; color: var(--navy-dark);
  line-height: 1.0; margin-bottom: 18px; letter-spacing: -0.3px;
}
.history-text h2 span { color: var(--orange); }
.history-text p   { font-size: 15px; color: var(--text-mid); line-height: 1.85; margin-bottom: 16px; }

/* Mission / Vision */
.mv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px;
}
.mv-card {
  background: var(--bg); border-radius: var(--rl); padding: 22px;
  border-left: 4px solid var(--orange);
}
.mv-card h3 { font-size: 14px; font-weight: 800; color: var(--navy-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.mv-card h3 i { color: var(--orange); }
.mv-card p  { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* ── NOSOTROS — Valores ──────────────────────────────────────── */
.values-section { padding: 80px 0; background: var(--bg); }
.values-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.value-card {
  background: var(--white); border-radius: var(--rl); padding: 28px 22px;
  text-align: center; box-shadow: var(--shadow); transition: all var(--t);
  border-top: 3px solid transparent;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--orange); }
.value-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: all var(--t);
}
.value-card:hover .value-icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.value-icon i { font-size: 22px; color: #fff; }
.value-card h3 { font-size: 15px; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.value-card p  { font-size: 13px; color: var(--text-lt); line-height: 1.7; }

/* ── NOSOTROS — Equipo ───────────────────────────────────────── */
.team-section { display: none !important; }
.team-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.team-card {
  background: var(--bg); border-radius: var(--rl); padding: 32px 24px;
  text-align: center; transition: all var(--t); border: 1px solid transparent;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); background: var(--white); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}
.team-card h3    { font-size: 16px; font-weight: 700; color: var(--navy-dark); margin-bottom: 4px; }
.team-card .role { font-size: 12px; color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.team-card p     { font-size: 13px; color: var(--text-lt); line-height: 1.6; }

/* ── SERVICIOS — Main services ───────────────────────────────── */
.services-main { padding: 88px 0; background: var(--white); }
.services-main-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-main-card {
  background: var(--bg); border-radius: 18px; padding: 34px;
  transition: all var(--t); border: 1px solid var(--border); display: flex; gap: 24px;
}
.service-main-card:hover {
  background: var(--white); border-color: var(--orange);
  box-shadow: 0 12px 40px rgba(212,105,30,.15); transform: translateY(-4px);
}
.smc-icon {
  width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; transition: all var(--t);
  box-shadow: 0 4px 16px rgba(26,47,94,.3);
}
.service-main-card:hover .smc-icon {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 6px 20px rgba(212,105,30,.4);
}
.smc-body h3 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px;
}
.smc-body p  { font-size: 14px; color: var(--text-lt); line-height: 1.75; margin-bottom: 14px; }
.smc-body ul { display: flex; flex-direction: column; gap: 6px; }
.smc-body li { font-size: 13px; color: var(--text-mid); display: flex; align-items: center; gap: 8px; }
.smc-body li i { font-size: 11px; color: var(--orange); flex-shrink: 0; }

/* ── SERVICIOS — Process ──────────────────────────────────────── */
.process-section { padding: 88px 0; background: var(--navy-dark); position: relative; overflow: hidden; }
.process-section::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,.015) 60px, rgba(255,255,255,.015) 61px);
}
.process-section .sec-heading { color: #fff; }
.process-section .sec-sub { color: rgba(200,208,216,.7); }
.process-section .eyebrow { color: var(--orange); }
.process-section .container { position: relative; z-index: 1; }
.process-steps   {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--navy-light), var(--orange));
  opacity: .5;
}
.process-step { text-align: center; position: relative; }
.step-num {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 2px solid rgba(212,105,30,.4);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  position: relative; z-index: 1;
  transition: all var(--t);
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 26px; font-weight: 900;
  box-shadow: 0 0 0 6px rgba(212,105,30,.08);
}
.process-step:hover .step-num {
  background: var(--orange); color: #fff; border-color: var(--orange);
  transform: scale(1.12); box-shadow: 0 6px 20px rgba(212,105,30,.5);
}
.process-step h3 { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.process-step p  { font-size: 13px; color: rgba(200,208,216,.7); line-height: 1.65; }

/* ── SERVICIOS — Materials ────────────────────────────────────── */
.materials-detail { padding: 80px 0; background: var(--white); }
.materials-table  { width: 100%; border-collapse: collapse; margin-top: 36px; }
.materials-table th {
  background: var(--navy-dark); color: #fff; padding: 14px 18px;
  text-align: left; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.materials-table td {
  padding: 12px 18px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-mid); vertical-align: middle;
}
.materials-table tr:hover td { background: rgba(26,47,94,.03); }
.materials-table tr:last-child td { border-bottom: none; }
.mat-grade { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.mat-grade i { color: var(--orange); font-size: 12px; }

/* ── CONTACTO — Layout ────────────────────────────────────────── */
.contact-section { padding: 80px 0; background: var(--bg); }
.contact-layout  { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }

/* Contact form */
.contact-form-card {
  background: var(--white); border-radius: var(--rl); padding: 36px;
  box-shadow: var(--shadow);
}
.contact-form-card h2 { font-size: 22px; font-weight: 800; color: var(--navy-dark); margin-bottom: 6px; }
.contact-form-card p  { font-size: 14px; color: var(--text-lt); margin-bottom: 28px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label {
  font-size: 12px; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .4px;
}
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 11px 14px; font-size: 14px; color: var(--text);
  outline: none; transition: all var(--t); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(212,105,30,.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--orange); color: #fff; border: none; border-radius: var(--r);
  padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--t); width: 100%; justify-content: center;
}
.form-submit:hover { background: var(--orange-dark); box-shadow: 0 6px 20px rgba(212,105,30,.35); }
.form-submit.loading { pointer-events: none; opacity: .8; }

/* Contact info sidebar */
.contact-info-card {
  background: var(--navy-dark); border-radius: var(--rl); padding: 32px;
  color: var(--silver-lt);
}
.contact-info-card h3 { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.contact-info-card > p { font-size: 14px; color: var(--silver); margin-bottom: 28px; line-height: 1.6; }
.cinfo-list  { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.cinfo-item  { display: flex; align-items: flex-start; gap: 14px; }
.cinfo-icon  {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(212,105,30,.15); border: 1px solid rgba(212,105,30,.25);
  display: flex; align-items: center; justify-content: center;
}
.cinfo-icon i     { font-size: 15px; color: var(--orange); }
.cinfo-text strong { display: block; font-size: 13px; color: var(--white); font-weight: 600; margin-bottom: 3px; }
.cinfo-text span  { display: block; font-size: 13px; color: var(--silver); line-height: 1.5; }
.cinfo-text a     { color: var(--silver); transition: color var(--t); }
.cinfo-text a:hover { color: var(--orange); }

.cic-divider { height: 1px; background: rgba(255,255,255,.08); margin: 24px 0; }

.wa-cta-box {
  background: linear-gradient(135deg, #128c3e 0%, #075e2b 100%);
  border: 1px solid rgba(37,211,102,.30);
  border-radius: var(--rl); padding: 28px 24px;
  text-align: center; position: relative; overflow: hidden;
}
.wa-cta-box::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
/* Ícono grande arriba — BLANCO */
.wa-cta-box > i {
  font-size: 44px; color: #fff;
  margin-bottom: 14px; display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.20));
}
.wa-cta-box p {
  font-size: 13.5px; color: rgba(255,255,255,0.88);
  margin-bottom: 20px; line-height: 1.65;
}
.wa-cta-box a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: #fff; color: #128c3e;
  border-radius: 50px; padding: 12px 28px;
  font-size: 14px; font-weight: 800;
  transition: all var(--t);
  box-shadow: 0 4px 16px rgba(0,0,0,0.20);
}
.wa-cta-box a i { font-size: 18px; color: #25d366; }
.wa-cta-box a:hover {
  background: #f0fff4; color: #075e2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

/* Map */
.map-section { display: none !important; }
.map-wrap {
  border-radius: 20px; overflow: hidden; height: 420px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  background: var(--bg-mid); border-radius: 20px; height: 420px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border); text-align: center;
}
.map-placeholder i    { font-size: 40px; color: var(--silver); margin-bottom: 12px; display: block; }
.map-placeholder p    { font-size: 14px; color: var(--text-lt); }
.map-placeholder span { font-size: 12px; color: var(--text-lt); opacity: .7; }

/* Form success / error message */
.form-result {
  display: none; padding: 14px 18px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; margin-top: 16px;
  align-items: center; gap: 10px;
}
.form-result.success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3); color: #27AE60; display: flex; }
.form-result.error   { background: rgba(231,76,60,.08); border: 1px solid rgba(231,76,60,.3); color: #E74C3C; display: flex; }

/* ── RESPONSIVE INNER PAGES ──────────────────────────────────── */
@media (max-width: 1024px) {
  .values-grid  { grid-template-columns: repeat(2, 1fr); }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-main-grid { grid-template-columns: 1fr; }
  .process-steps      { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .contact-layout     { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .history-grid  { grid-template-columns: 1fr; }
  .mv-grid       { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
  .form-row-2    { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .values-grid   { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
}
