/* ===========================================================================
   Estilos compartidos para páginas internas (subpáginas)
   Reutiliza tokens y componentes de style.css (header, CTA, footer, botones).
   =========================================================================== */

/* ----- Banner de título de página ----- */
.page-title {
  background: #999999;
  background-size: cover;
  background-position: center;
  padding: 58px 0 56px;
}
.page-title__inner { }
.page-title h1 {
  font-family: 'Raleway'; font-variant-caps: small-caps; font-weight: 400;
  font-size: 36px; letter-spacing: .5px; color: #fff; line-height: 1.1;
  position: relative; padding-bottom: 16px; margin-bottom: 14px;
}
.page-title h1:after {
  content: ""; position: absolute; left: 2px; bottom: 0;
  width: 46px; height: 3px; background: var(--green);
}
.breadcrumb {
  font-family: 'Lato', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.92);
}
.breadcrumb a { color: rgba(255,255,255,.92); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 10px; opacity: .7; }

/* ----- Contenedor de contenido ----- */
.page-content { padding: 70px 0 80px; }
.page-content.section-gray { background: var(--gray-bg); }

/* Section heading (serif small-caps like home) */
.sec-heading {
  font-family: 'Raleway'; font-variant-caps: small-caps; font-weight: 400;
  font-size: 30px; letter-spacing: .3px; color: var(--text); line-height: 1.2;
  margin-bottom: 22px;
}
.sec-heading .primary-color { color: var(--green); }

/* Green sub-heading (Raleway) */
.green-heading {
  font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 24px;
  color: var(--green); position: relative; padding-bottom: 16px; margin-bottom: 18px;
}
.green-heading:after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--green); }

.page-content p { font-family: 'Lato', sans-serif; font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.page-content strong { font-weight: 700; color: #555; }

/* Two-column content + sidebar */
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.content-grid.narrow { grid-template-columns: 1fr 300px; }

/* Green help box (sidebar CTA) */
.help-box { background: var(--green); color: #fff; padding: 36px 30px; text-align: center; }
.help-box h4 { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 14px; }
.help-box p { color: #fff; font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.help-box .button { background: var(--green-dark); }

/* Image */
.page-content img { width: 100%; height: auto; }
.media-box img { display: block; width: 100%; }

/* ----- Legal / long text pages ----- */
.legal { padding: 60px 0 80px; }
.legal h2 { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 24px; color: #444; margin: 30px 0 14px; }
.legal h3 { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 19px; color: #555; margin: 22px 0 10px; }
.legal p, .legal li { font-family: 'Lato', sans-serif; font-size: 16px; line-height: 1.8; color: var(--text); }
.legal p { margin-bottom: 16px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; list-style: disc; }
.legal a { color: var(--green); text-decoration: underline; }

/* ----- Contact form ----- */
.contact-grid { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; }
.contact-info h3 { font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 22px; color: var(--green); margin-bottom: 16px; padding-bottom: 12px; position: relative; }
.contact-info h3:after { content:""; position:absolute; left:0; bottom:0; width:40px; height:3px; background:var(--green); }
.contact-info p { font-size: 16px; line-height: 1.7; margin-bottom: 12px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: 'Lato', sans-serif; font-size: 15px; color: #555;
  background: #f4f4f4; border: 1px solid #e2e2e2; padding: 14px 16px; margin-bottom: 18px;
  border-radius: 0; outline: none;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); }
.form-msg { font-size: 15px; line-height: 1.5; padding: 14px 16px; margin-top: 4px; }
.form-msg--ok { background: #eef7e6; border: 1px solid var(--green); color: #3e6b1c; }
.form-msg--error { background: #fdecec; border: 1px solid #d9534f; color: #a8322e; }
.map-embed { width: 100%; height: 380px; background: #e9e9e9; margin-bottom: 40px; }

/* ===== Sidebar unificado de "Nosotros" (la-empresa, nuestra-historia, como-trabajamos) ===== */
.ct-sidemenu { list-style: none; margin: 0 0 36px; padding: 0; }
.ct-sidemenu li { background: #f2f2f2; margin-bottom: 4px; position: relative; }
.ct-sidemenu li a { display: block; padding: 16px 22px; font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 16px; color: var(--green); text-decoration: none; }
.ct-sidemenu li.active { background: #f7f7f7; border-left: 3px solid var(--green); }
.ct-sidemenu li.active a { color: var(--green); }

.ct-help { background: var(--green); color: #fff; padding: 36px 30px; margin-bottom: 36px; }
.ct-help h4 { font-family: 'Raleway', sans-serif; font-weight: 400; font-size: 24px; color: #fff; margin-bottom: 18px; line-height: 1.2; }
.ct-help p { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.6; color: #fff; margin-bottom: 26px; }
.ct-help .button { background: var(--green-dark, #12764b); display: inline-block; }
.ct-help .button .fa-env { margin-right: 8px; }

.ct-testi { background: #f5f5f5; padding: 30px 28px 24px; position: relative; }
.ct-testi .quote { font-family: Georgia, serif; font-size: 46px; color: #d24b4b; line-height: 1; margin-bottom: 10px; }
.ct-testi p { font-family: 'Lato', sans-serif; font-style: italic; font-size: 16px; line-height: 1.6; color: #777; margin: 0; }
.ct-testi:after { content:""; position:absolute; left:40px; bottom:-13px; border-width: 14px 14px 0 0; border-style: solid; border-color: #f5f5f5 transparent transparent transparent; }
.ct-testi-author { padding-top: 22px; }
.ct-testi-author .name { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 17px; color: var(--green); display: block; }
.ct-testi-author .role { font-family: 'Lato', sans-serif; font-style: italic; font-size: 14px; color: #999; }

/* ===== Portfolio (detalle): bloque "Portfolio Privado" centrado + navegación ===== */
.portfolio-single { padding: 90px 0 110px; }
.portfolio-single .content-grid,
.portfolio-single .portfolio-grid { grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

.portfolio-main h1.portfolio-heading {
  font-family: 'Raleway', sans-serif; font-weight: 500; font-size: 28px;
  color: var(--text); line-height: 1.2; position: relative;
  padding-bottom: 18px; margin-bottom: 50px;
}
.portfolio-main h1.portfolio-heading .primary-color { color: var(--green); }
.portfolio-main h1.portfolio-heading:after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--green);
}
.portfolio-icon { text-align: center; margin: 60px 0 30px; }
.portfolio-icon .icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 92px; height: 92px; border-radius: 50%; background: #f3f3f3; color: #c9a96a;
}
.portfolio-icon svg { width: 42px; height: 42px; }
.portfolio-confidential { text-align: center; margin-bottom: 70px; }
.portfolio-confidential p {
  font-family: 'Lato', sans-serif; font-size: 16px; color: var(--text);
  text-align: center; margin: 0 0 6px;
}

/* Iconos sociales unificados de la ficha de portfolio (verde plano) */
.pf-social { list-style: none; margin: 0 0 18px; padding: 0; display: flex; justify-content: center; gap: 14px; }
.pf-social li { display: inline-flex; }
.pf-social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--green); transition: color .2s; }
.pf-social a:hover { color: var(--green-dark); }
.pf-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Navegación entre portfolios (estilo Hispania) */
.post-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #ececec; margin-top: 34px; padding-top: 26px; }
.post-nav .nav-prev, .post-nav .nav-next { max-width: 48%; }
.post-nav .nav-next { text-align: right; margin-left: auto; }
.post-nav .meta-nav {
  display: block; font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #b6b6b6; margin-bottom: 6px;
}
.post-nav a { text-decoration: none; }
.post-nav h6 { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: 16px; color: var(--green); margin: 0; }
.post-nav a:hover h6 { color: var(--green-dark); }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .content-grid, .content-grid.narrow, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-single .content-grid, .portfolio-single .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .post-nav { flex-direction: column; gap: 20px; }
  .post-nav .nav-next { text-align: left; margin-left: 0; }
}
@media (max-width: 767px) {
  .container { padding: 0 30px; }
  .page-title { padding: 40px 0 38px; }
  .page-title h1 { font-size: 30px; }
  .page-content { padding: 50px 0 55px; }
  .legal { padding: 45px 0 55px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
}
