/* Página de contacto — Ferrán Ferrán Casa Ferretera */
.ffc-hero {
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: 0;
}

.ffc-hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -42vw;
  width: 70vw;
  aspect-ratio: 1;
  border: 1px solid rgba(243, 230, 196, .22);
  border-radius: 50%;
  pointer-events: none;
}

.ffc-hero-grid {
  min-height: 520px;
  align-items: end;
}

.ffc-hero-texto {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-bottom: clamp(54px, 7vw, 90px);
  animation: ffc-aparecer .55s ease-out both;
}

@keyframes ffc-aparecer {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ffc-rotulo {
  margin: 0 0 14px;
  color: var(--arena);
  font-family: var(--fuente-texto);
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: italic;
  letter-spacing: .04em;
}

.ffc-hero .ff-titulo {
  font-size: clamp(40px, 5.5vw, 72px);
}

.ffc-hero .ff-texto { max-width: 53ch; }
.ffc-enlace-hero { color: #fff; }

.ffc-hero-ilustracion {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: end center;
  align-self: stretch;
}

.ffc-hero-ilustracion::before {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -18%;
  width: min(38vw, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(143, 44, 42, .16);
}

.ffc-hero-ilustracion .ff-ilustracion {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 430px;
  max-height: 540px;
  object-fit: contain;
  object-position: bottom;
}

.ffc-sucursal {
  padding: clamp(48px, 6vw, 80px) 16px;
  background: var(--arena-clara);
}

.ffc-contenedor {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.ffc-sucursal .sucursal-card {
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #fffaf0;
  color: var(--carbon);
  box-shadow: 0 18px 44px rgba(76, 24, 20, .2);
}

.ffc-sucursal .sucursal-foto { background: var(--vino); }

.ffc-sucursal .sucursal-foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ffc-sucursal .sucursal-info {
  padding: clamp(28px, 3vw, 42px);
  color: var(--carbon);
}

.ffc-sucursal .sucursal-info .rotulo {
  margin-bottom: 8px;
  color: var(--rojo);
  font-family: var(--fuente-texto);
  font-size: 17px;
  font-style: italic;
  text-transform: none;
}

.ffc-sucursal .sucursal-info h2 {
  margin: 0 0 26px;
  color: var(--vino);
  font-family: var(--fuente-titulo);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.ffc-sucursal .sucursal-datos {
  display: grid;
  gap: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.ffc-sucursal .ffc-dato {
  padding: 17px 0;
  border-top: 1px solid rgba(76, 24, 20, .18);
  background: transparent;
}

.ffc-sucursal .ffc-dato dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: var(--vino);
  font-family: var(--fuente-titulo);
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ffc-sucursal .ffc-dato dt img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ffc-sucursal .ffc-dato dd {
  margin: 0;
  color: #49352d;
  font-family: var(--fuente-texto);
  font-size: 17px;
  line-height: 1.4;
}

.ffc-sucursal .ffc-dato a {
  color: var(--vino);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ffc-sucursal .sucursal-telefonos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ffc-sucursal .sucursal-tel {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(76, 24, 20, .28);
  border-radius: 3px;
  background: #fff;
  color: var(--vino);
  font-family: var(--fuente-texto);
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.ffc-sucursal .sucursal-tel:hover,
.ffc-sucursal .sucursal-tel:focus-visible {
  border-color: var(--rojo);
  background: var(--arena-clara);
  transform: translateY(-2px);
}

.ffc-sucursal .sucursal-tel-linea {
  display: block;
  margin-top: 2px;
  color: #71584b;
  font-size: 12px;
}

.ffc-sucursal .sucursal-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ffc-sucursal .sucursal-acciones .boton {
  min-height: 46px;
  justify-content: center;
  border-color: var(--vino);
  color: var(--vino);
}

.ffc-sucursal .sucursal-acciones .boton.principal {
  border-color: var(--rojo);
  background: var(--rojo);
  color: #fff;
}

.ffc-sucursal .sucursal-mapa {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  overflow: hidden;
  background: #d8d3c8;
  color: #71584b;
  font-family: var(--fuente-texto);
  font-size: 14px;
}

.ffc-sucursal .sucursal-mapa::before {
  content: "Mapa de la sucursal";
  position: absolute;
}

.ffc-sucursal .sucursal-mapa iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
}

.ffc-sucursal :focus-visible {
  outline: 3px solid var(--rojo);
  outline-offset: 3px;
}

.ffc-cotizar { overflow: hidden; }

.ffc-cotizar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(76, 24, 20, .22), transparent 48%, rgba(76, 24, 20, .22));
}

.ffc-cotizar .ff-contenedor {
  position: relative;
  z-index: 1;
}

.ffc-cotizar-encabezado {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.ffc-cotizar-encabezado .ffc-rotulo { text-align: center; }
.ffc-cotizar-encabezado .ff-titulo { margin-bottom: 14px; }
.ffc-cotizar-encabezado .ff-texto { margin-inline: auto; }

.ffc-pasos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ffc-pasos li {
  position: relative;
  min-height: 230px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(231, 209, 159, .45);
  border-radius: 4px;
  background: rgba(76, 24, 20, .55);
  color: #fff;
  box-shadow: 6px 8px 0 rgba(76, 24, 20, .22);
  transition: transform .22s ease, background .22s ease;
}

.ffc-pasos li:hover {
  background: rgba(76, 24, 20, .72);
  transform: translateY(-4px);
}

.ffc-paso-numero {
  display: block;
  margin-bottom: 28px;
  color: var(--arena);
  font-family: var(--fuente-titulo);
  font-size: 40px;
  line-height: 1;
}

.ffc-pasos h3 {
  margin: 0 0 10px;
  color: var(--arena-clara);
  font-family: var(--fuente-titulo);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.1;
  text-transform: uppercase;
}

.ffc-pasos p {
  margin: 0;
  color: #fff;
  font-family: var(--fuente-texto);
  font-size: 18px;
  line-height: 1.4;
}

.ffc-cotizar-acciones {
  justify-content: center;
  margin-top: 36px;
}

@media (min-width: 980px) {
  .ffc-sucursal .sucursal-card {
    grid-template-columns: minmax(220px, .78fr) minmax(340px, 1.12fr) minmax(380px, 1.25fr);
  }
}

@media (max-width: 979px) {
  .ffc-sucursal .sucursal-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .ffc-sucursal .sucursal-mapa { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .ffc-hero { padding-bottom: 0; }
  .ffc-hero-grid { min-height: 0; }
  .ffc-hero-texto { padding-bottom: 12px; }
  .ffc-hero-ilustracion { min-height: 390px; }
  .ffc-hero-ilustracion::before { right: 50%; width: 340px; transform: translateX(50%); }
  .ffc-hero-ilustracion .ff-ilustracion { max-width: 300px; max-height: 410px; }
  .ffc-sucursal .sucursal-card { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ffc-sucursal .sucursal-card > *,
  .ffc-sucursal .sucursal-info,
  .ffc-sucursal .sucursal-datos,
  .ffc-sucursal .ffc-dato { min-width: 0; }
  .ffc-sucursal .sucursal-foto { height: 240px; min-height: 0; border-right: 0; }
  .ffc-sucursal .sucursal-foto img { object-fit: cover; }
  .ffc-sucursal .ffc-dato dd { overflow-wrap: anywhere; }
  .ffc-sucursal .sucursal-mapa { grid-column: auto; height: 300px; min-height: 300px; }
  .ffc-sucursal .sucursal-mapa iframe { height: 300px; min-height: 300px; }
  .ffc-sucursal .sucursal-acciones { flex-direction: column; }
  .ffc-sucursal .sucursal-acciones .boton { width: 100%; max-width: 100%; box-sizing: border-box; }
  .ffc-pasos { grid-template-columns: 1fr; }
  .ffc-pasos li { min-height: 0; }
  .ffc-paso-numero { margin-bottom: 18px; }
}

@media (max-width: 650px) {
  .ffc-hero,
  .ffc-sucursal,
  .ffc-cotizar { padding-left: 16px; padding-right: 16px; }

  .ffc-hero .ff-titulo { font-size: clamp(38px, 11vw, 46px); }
  .ffc-hero .ff-titulo br { display: none; }
  .ffc-hero .ff-botones,
  .ffc-cotizar-acciones { align-items: flex-start; flex-direction: column; }
  .ffc-sucursal .sucursal-telefonos,
  .ffc-sucursal .sucursal-acciones { flex-direction: column; }
  .ffc-sucursal .sucursal-tel,
  .ffc-sucursal .sucursal-acciones .boton { width: 100%; }
  .ffc-pasos li { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ffc-hero-texto { animation: none; }

  .ffc-sucursal .sucursal-tel,
  .ffc-pasos li { transition: none; }
}
