/* Mejoradora Ferrol — colores del manual: Pantone 7407C (dorado) y 7474C (verde azulado) */
:root {
  --dorado: #E5B35D;
  --dorado-fuerte: #E3A43A;
  --verde: #007F8D;
  --verde-oscuro: #0A5A66;
  --verde-texto: #0B4F5A;
  --texto: #1F3A40;
  --texto-suave: #4B6469;
  --fondo-suave: #F3F8F9;
  --borde: #E2ECEE;
  --radio: 18px;
  --sombra: 0 10px 30px -12px rgba(10, 70, 80, .25);
  --ancho: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "Outfit", system-ui, sans-serif; color: var(--texto); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contenedor { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.t-verde { color: var(--verde-texto); }
.t-dorado { color: var(--dorado-fuerte); }

/* Huecos pendientes de datos reales */
.pendiente { background: #FFF6D6; outline: 2px dashed #D9A21B; outline-offset: 2px; color: #7A5A00; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.pendiente--foto { position: absolute; inset: auto 16px 16px auto; font-size: 13px; z-index: 2; }
.pendiente--bloque { display: block; max-width: 720px; margin: 28px 0 0; padding: 18px 22px; }

/* Botones */
.boton { display: inline-flex; align-items: center; gap: 12px; padding: 12px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton--dorado { background: var(--dorado-fuerte); color: #fff; box-shadow: 0 8px 20px -8px rgba(227, 164, 58, .8); }
.boton--dorado:hover { background: #D8962A; }
.boton--blanco { background: #fff; color: var(--verde-texto); padding: 14px 34px; }
.boton--grande { padding: 16px 34px; font-size: 1.15rem; }
.flecha { font-size: 1.2em; line-height: 1; transition: transform .2s ease; }
.boton:hover .flecha, .servicio:hover .flecha, .enlace:hover .flecha { transform: translateX(4px); }

.antetitulo { display: flex; align-items: center; gap: 16px; margin: 0 0 10px; color: var(--verde); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; }
.antetitulo::before { content: ""; width: 48px; height: 4px; border-radius: 4px; background: var(--dorado-fuerte); }
.antetitulo--claro { color: #CDE9EC; }
.titulo-grande { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }

/* Cabecera */
.cabecera { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); }
.cabecera__fila { display: flex; align-items: center; gap: 28px; min-height: 96px; }
.cabecera__logo img { width: 180px; }
.cabecera__separador { width: 1px; height: 34px; background: #CBD9DC; }
.cabecera__nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.cabecera__nav a:not(.boton) { text-decoration: none; color: var(--verde-texto); font-weight: 500; position: relative; padding: 8px 0; }
.cabecera__nav a:not(.boton)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--dorado-fuerte); transform: scaleX(0); transition: transform .2s ease; }
.cabecera__nav a:not(.boton):hover::after, .cabecera__nav a.activo::after { transform: scaleX(1); }
.cabecera__nav a.activo { color: var(--verde); font-weight: 600; }
.con-flecha { padding-right: 16px !important; }
.con-flecha::before { content: ""; position: absolute; right: 0; top: 50%; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(-20%); }
.cabecera__cta { margin-left: 18px; }
.cabecera__menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.cabecera__menu-btn span { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--verde-texto); margin: 5px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 470px; display: flex; align-items: center; background: linear-gradient(100deg, #fff 35%, #EEF6F8 100%); }
.hero__foto { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; background: right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
.hero__texto { position: relative; z-index: 2; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
.hero p { max-width: 470px; font-size: 1.3rem; color: var(--texto); margin: 18px 0 30px; line-height: 1.4; }

/* Ventajas */
.ventajas { background: linear-gradient(180deg, #F4F9FA, #fff); border-bottom: 1px solid var(--borde); }
.ventajas__fila { display: grid; grid-template-columns: repeat(3, 1fr); }
.ventaja { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; }
.ventaja + .ventaja { border-left: 1px solid #CFDDE0; }
.ventaja svg { width: 52px; height: 52px; color: var(--verde); stroke-width: 1.4; flex-shrink: 0; }
.ventaja p { margin: 0; color: var(--verde-texto); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }

/* Servicios */
.servicios { padding: 36px 0 40px; }
.servicios__rejilla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.servicio { position: relative; display: block; text-decoration: none; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--borde); transition: transform .25s ease, box-shadow .25s ease; }
.servicio:hover { transform: translateY(-5px); box-shadow: 0 18px 38px -14px rgba(10, 70, 80, .35); }
.servicio__img { width: 100%; aspect-ratio: 700 / 434; object-fit: cover; }
.servicio__cuerpo { position: relative; padding: 16px 52px 18px 20px; }
.servicio p { margin: 0; color: var(--texto-suave); font-size: 1rem; line-height: 1.4; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.servicio .flecha { position: absolute; right: 20px; bottom: 18px; color: var(--verde-texto); font-size: 1.5rem; }

/* Banda Ferrol */
.banda-ferrol { padding: 10px 0 40px; }
.banda { position: relative; overflow: hidden; display: grid; grid-template-columns: auto auto auto 1fr auto; align-items: center; gap: 32px; padding: 26px 56px; border-radius: 22px; color: #fff; background: linear-gradient(110deg, var(--verde-oscuro), var(--verde) 70%); }
.banda::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 320px; background: linear-gradient(160deg, transparent 0 44%, var(--dorado-fuerte) 44% 54%, transparent 54% 62%, rgba(255,255,255,.08) 62%); pointer-events: none; }
.banda__estrella { width: 76px; height: auto; }
.banda__separador { width: 2px; height: 56px; background: rgba(255,255,255,.6); }
.banda__titulo { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; line-height: .98; }
.banda__titulo .t-dorado { font-style: italic; }
.banda__texto { margin: 0; font-size: 1.2rem; max-width: 400px; color: #E6F3F5; }
.banda .boton { position: relative; z-index: 1; }

/* Particulares y empresas */
.ayudamos { padding: 56px 0; background: var(--fondo-suave); }
.ayudamos__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.bloque { background: #fff; border-radius: var(--radio); padding: 32px; border: 1px solid var(--borde); box-shadow: var(--sombra); scroll-margin-top: 110px; }
.bloque h3 { font-size: 1.5rem; color: var(--verde-texto); }
.bloque p { color: var(--texto-suave); margin: 12px 0 20px; font-size: 1.05rem; }
.enlace { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--verde); text-decoration: none; }

.opiniones { padding: 56px 0; }

/* Contacto */
.contacto { padding: 64px 0; background: linear-gradient(120deg, var(--verde-oscuro), var(--verde)); color: #fff; }
.contacto__fila { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contacto h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; }
.contacto__datos > p { color: #DDEFF1; font-size: 1.15rem; margin: 16px 0 26px; }
.contacto__lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contacto__lista li { display: flex; align-items: center; gap: 14px; }
.contacto__lista a { color: #fff; text-decoration: none; }
.contacto__lista a:hover { text-decoration: underline; }
.contacto__mapa { margin-top: 28px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 16px 34px -18px rgba(0,0,0,.5); }
.contacto__mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.contacto__lista svg { color: var(--dorado); width: 26px; height: 26px; }
.formulario { background: #fff; color: var(--texto); border-radius: 22px; padding: 32px; display: grid; gap: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.4); }
.formulario h3 { font-size: 1.6rem; color: var(--verde-texto); }
.formulario label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.formulario__dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formulario input:not([type=radio]):not([type=checkbox]), .formulario select { font: inherit; padding: 12px 14px; border: 1.5px solid #CFDDE0; border-radius: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; width: 100%; }
.formulario input:focus, .formulario select:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(0,127,141,.18); }
.formulario fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.formulario legend { font-weight: 500; font-size: .95rem; margin-bottom: 6px; width: 100%; }
.formulario .opcion { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.formulario .opcion input { accent-color: var(--verde); width: 18px; height: 18px; }
.opcion--legal { font-size: .9rem !important; }
.formulario .boton { justify-self: start; margin-top: 6px; }

/* Pie */
.pie { background: #08414A; color: #BFD9DD; padding: 34px 0; }
.pie__fila { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pie img { width: 150px; }
.pie p { margin: 0; font-size: .95rem; }


/* Aparición suave */
@media (prefers-reduced-motion: no-preference) {
  .hero__texto > * { animation: subir .7s ease both; }
  .hero__texto > *:nth-child(2) { animation-delay: .1s; }
  .hero__texto > *:nth-child(3) { animation-delay: .2s; }
  @keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 1100px) {
  .cabecera__nav { gap: 22px; }
  .cabecera__separador { display: none; }
  .servicios__rejilla { grid-template-columns: repeat(2, 1fr); }
  .banda { grid-template-columns: auto 1fr auto; padding: 26px 32px; }
  .banda__separador, .banda__texto { display: none; }
}

/* Menú móvil */
@media (max-width: 1180px) {
  .cabecera__fila { min-height: 76px; }
  .cabecera__logo img { width: 140px; }
  .cabecera__menu-btn { display: block; }
  .cabecera__nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: #fff; border-bottom: 1px solid var(--borde); box-shadow: 0 16px 30px -18px rgba(0,0,0,.3); display: none; }
  .cabecera__nav.abierto { display: flex; }
  .cabecera__nav a:not(.boton) { padding: 14px 0; border-bottom: 1px solid var(--borde); }
  .cabecera__nav a:not(.boton)::after { display: none; }
  .cabecera__cta { margin: 16px 0 0; justify-content: center; }
}

/* Móvil */
@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__foto { position: relative; width: 100%; height: 230px; order: 2;  background-position: 70% center; -webkit-mask-image: none; mask-image: none; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%, 0 30%); }
  .hero__texto { padding: 34px 0 30px; }
  .hero p { font-size: 1.12rem; }
  .boton--grande { width: 100%; justify-content: center; }
  .ventajas__fila { grid-template-columns: 1fr; }
  .ventaja { justify-content: flex-start; padding: 16px 4px; }
  .ventaja + .ventaja { border-left: 0; border-top: 1px solid #CFDDE0; }
  .ventaja svg { width: 40px; height: 40px; }
  .servicios__rejilla, .ayudamos__fila, .contacto__fila, .formulario__dos { grid-template-columns: 1fr; }
  .banda { grid-template-columns: 1fr; text-align: left; gap: 18px; padding: 28px 24px; }
  .banda__estrella { width: 56px; height: auto; }
  .banda .boton { justify-self: start; }
  .banda::after { width: 180px; opacity: .6; }
  .bloque, .formulario { padding: 24px 20px; }
}
