/* ============================================================
   COMPANY VIEW — company.css
   Ubicar en: web/css/company.css
   Cargar desde la view con: $this->registerCssFile('@web/css/company.css');

   Verde #1A4613 · Ámbar #E77700 · Dorado editorial #C9A227
   prefijo cp- para esta página.
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.cp-hero {
  position: relative;
  padding: 64px 24px 56px;
  overflow: hidden;
  background: #1A4613;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;

  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-top: -70px;
}

.cp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cp-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.35);
}

.cp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.cp-hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
}

.cp-badge--outline {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}

.cp-badge--rose {
  background: #E77700;
  color: #fff;
}

.cp-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 10px;
}

.cp-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.85);
  margin: 0 0 8px;
}

.cp-hero__location {
  font-size: .92rem;
  color: rgba(255,255,255,.75);
  margin: 0 0 18px;
}

/* ── ETIQUETAS ────────────────────────────────────────────── */
.cp-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.cp-tag {
  display: inline-block;
  border: 1px solid rgba(238, 131, 1, 0.5);
  color: #fff;
  background: rgba(238, 147, 1, 0.18);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}

/* ── LAYOUT DE CONTENIDO ──────────────────────────────────── */
.cp-content {
  background: #fff;
  padding: 56px 24px 24px;
}

.cp-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.cp-main { min-width: 0; }

/* Cuando no hay ningún dato de contacto, el contenido usa todo el ancho */
.cp-layout--full {
  grid-template-columns: 1fr;
  max-width: 760px;
}

/* ── HISTORIA / DESCRIPCIÓN — versión editorial ──────────── */
.cp-story {
  margin-bottom: 8px;
}

.cp-lead {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.55;
  color: #262019;
  letter-spacing: .003em;
  margin: 0;
}

/* Separador delgado dorado entre el destacado y el cuerpo del texto */
.cp-divider {
  display: block;
  width: 52px;
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(90deg, #C9A227, #E7D48F 65%, transparent);
}

.cp-description {
  font-size: .99rem;
  color: #4a4a4a;
  line-height: 1.95;
  letter-spacing: .01em;
  margin-bottom: 8px;
}

/* Capitular dorada discreta en el primer párrafo */
.cp-description::first-letter {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-size: 3.1rem;
  font-weight: 600;
  color: #1A4613;
  float: left;
  line-height: .82;
  padding: 4px 10px 0 0;
}

.cp-section-title {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #1A4613;
  margin: 44px 0 18px;
  padding-bottom: 12px;
}

.cp-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #C9A227, #E7D48F);
}

/* Video */
.cp-video__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  background: #000;
}

.cp-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mapa */
.cp-map__frame {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
}

.cp-map__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cp-map__cta {
  margin-top: 14px;
}

/* ── SIDEBAR / TARJETA DE CONTACTO ───────────────────────── */
.cp-sidebar { position: sticky; top: 24px; }

.cp-card {
  background: #f9fdf9;
  border: 1px solid #e8f5e9;
  border-radius: 14px;
  padding: 26px;
}

.cp-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A4613;
  margin: 0 0 18px;
}

.cp-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: #444;
  margin-bottom: 14px;
  line-height: 1.5;
}

.cp-card__row a {
  color: #1A4613;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.cp-card__row a:hover { color: #E77700; }

.cp-card__icon { flex-shrink: 0; }

.cp-card__cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 18px;
}

/* ── BOTONES ──────────────────────────────────────────────── */
.cp-btn {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .25s;
}

.cp-btn--primary {
  background: #25D366;
  color: #fff;
}

.cp-btn--primary:hover {
  background: #1A4613;
  transform: translateY(-2px);
}

.cp-btn--outline {
  background: transparent;
  color: #1A4613;
  border: 2px solid #1A4613;
}

.cp-btn--outline:hover {
  background: #1A4613;
  color: #fff;
}

/* Botón con ícono (ej. WhatsApp) */
.cp-btn--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.cp-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

/* ── CTA FINAL ────────────────────────────────────────────── */
.cp-cta {
  background: #1b5e20;
  padding: 60px 24px;
  text-align: center;

  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-bottom: -20px;
  margin-top: 40px;
}

.cp-cta__inner { max-width: 560px; margin: 0 auto; }

.cp-cta__title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cp-cta__text {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
  margin-bottom: 26px;
}

.cp-cta .cp-btn--primary {
  background: #fff;
  color: #00593C;
}

.cp-cta .cp-btn--primary:hover {
  background: #1A4613;
  color: #fff;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .cp-layout {
    grid-template-columns: 1fr;
  }
  .cp-sidebar { position: static; }
}

@media (max-width: 640px) {
  .cp-hero { padding: 48px 20px 40px; }
  .cp-content { padding: 40px 20px 16px; }
  .cp-cta { padding: 44px 20px; }
  .cp-description::first-letter { font-size: 2.6rem; }
}