/* ============================================================
   Montoliu Notarios - capa de diseño moderno (solo escritorio)
   Se carga despues de notaria.css. Para volver al diseno anterior
   basta con quitar el <link> a este archivo (y los cambios de HTML
   son compatibles con el CSS antiguo).
   ============================================================ */
@font-face { font-family: "RalewayMed";  src: url(../fuentes/Raleway-Medium.ttf); }
@font-face { font-family: "RalewayBold"; src: url(../fuentes/Raleway-Bold.ttf); }


/* ---------- Componentes comunes (escritorio y movil) ---------- */
:root { --teal: #75d8d0; --teal-dark: #037E8C; --ink: #262626; --text: #555; --line: #e3e8e8; }
/* Botones */
.botones { display: flex; gap: 14px; flex-wrap: wrap; }
.boton {
  display: inline-block; padding: 14px 28px; border: 1px solid transparent; border-radius: 2px;
  font-family: RalewayMed, Raleway-Regular, sans-serif; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.boton-primario { background: var(--teal); color: #16302e; }
.boton-primario:hover { background: #fff; }
.boton-secundario { border-color: rgba(255,255,255,.75); color: #fff; }
.boton-secundario:hover { background: rgba(255,255,255,.14); }
.boton-oscuro { background: #2b2b2b; color: #fff; }
.boton-oscuro:hover { background: #000; }
.boton-contorno { border-color: var(--teal-dark); color: var(--teal-dark); }
.boton-contorno:hover { background: var(--teal-dark); color: #fff; }


.botones { margin-top: 6px; }
#pieservicios .boton { margin: 14px 0 6px; }
.cargo {
  display: block; font-family: RalewayMed, Raleway-Regular, sans-serif; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px; text-align: left;
}
.datos { list-style: none; margin: 0 0 30px; padding: 0; }
.datos li { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.datos li:first-child { border-top: 1px solid var(--line); }
.datos svg { flex: none; width: 24px; height: 24px; stroke: var(--teal-dark); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.datos small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #849290; margin-bottom: 2px; }
.datos a { font-size: 16px; color: var(--ink); text-decoration: none; }
#info a { color: #fff; text-decoration: none; }

@media (min-width: 810px) {


/* ---------- Menu lateral ---------- */
nav ul li { float: none; }
#menulateral nav ul li a {
  padding: 9px 20px 9px 17px;
  border-left: 3px solid transparent;
  transition: border-color .25s ease;
}
#menulateral nav ul li a span { color: #fff; transition: color .25s ease; }
#menulateral nav ul li a:hover span { color: var(--teal); }
#menulateral nav ul li.active a { border-left-color: var(--teal); }
#menulateral nav ul li.active a span { color: var(--teal); }

#info::before {
  content: ""; display: block; width: 36px; height: 2px;
  background: var(--teal); margin: 0 0 12px 20px;
}
#info a { color: #fff; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
#info a:hover { border-bottom-color: var(--teal); }

/* ---------- Franja legal ---------- */
#footer {
  height: auto; min-height: 40px; box-sizing: border-box;
  padding: 11px 28px; line-height: 1.5; font-size: 12px;
  background: rgba(255,255,255,.95); color: #4a5856;
  border-top: 2px solid var(--teal); text-wrap: balance;
}
#footer a { color: var(--teal-dark); text-decoration: underline; }

/* ---------- Inicio ---------- */
#section0 { position: relative; }
#section0::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,18,18,.88) 0%, rgba(18,18,18,.62) 38%, rgba(18,18,18,0) 74%);
}
#section0 #intro {
  position: relative; z-index: 1; margin: max(60px, calc(50vh - 200px)) 0 0 calc(15% + 5%);
  width: 55%; max-width: 760px; text-align: left;
}
#section0 #intro h1 {
  font-size: 46px; line-height: 1.12; font-weight: normal; text-align: left; margin: 0 0 16px; white-space: nowrap;
}
#section0 #intro h1 span { color: var(--teal); }
#section0 #intro h2 {
  font-family: RalewayMed, Raleway-Regular, sans-serif; font-size: 15px; font-weight: normal;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal); text-align: left; margin: 0 0 22px;
}
#section0 #intro p {
  font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.9); text-align: left; margin: 0 0 34px; max-width: 520px;
}

/* ---------- Quienes somos ---------- */
#ferrertexto, #alcontexto {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 7%; box-sizing: border-box; font-size: 16px; color: var(--text);
}
#ferrertexto h2, #alcontexto h2 {
  font-family: "Goudy Old Style Regular", serif; font-weight: normal; font-size: 32px; line-height: 1.15;
  color: var(--ink); text-align: left; padding: 0; margin: 0;
}
#ferrertexto h2::after, #alcontexto h2::after {
  content: ""; display: block; width: 44px; height: 2px; background: var(--teal); margin: 16px 0 6px;
}
#ferrertexto p, #alcontexto p {
  font-size: 16px; line-height: 1.7; color: var(--text); text-align: left; padding: 0; margin-top: 10px;
}
#ferrertexto strong, #alcontexto strong { color: #2f2f2f; }

/* ---------- Servicios ---------- */
#section2 { padding-top: 0; }
#servicios { margin-top: max(24px, calc((100vh - 700px) / 2)); }
.grid-item {
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(20,40,40,.09);
  transition: transform .25s ease, box-shadow .25s ease;
}
.grid-item:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,40,40,.15); }
.grid-item .cabservicio { transition: background .25s ease; }
.grid-item:hover .cabservicio { background: var(--teal-dark); }
.grid-item .bodyservicio { outline: none; background: #fff; }
.grid-item .bodyservicio h2 { font-family: RalewayMed, Raleway-Regular, sans-serif; font-weight: normal; font-size: 16.5px; color: var(--ink); }
.grid-item .bodyservicio p { color: var(--text); font-size: 13.5px; line-height: 1.38; }
#pieservicios {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 18px 26px; border-radius: 4px;
}
#pieservicios p { padding: 0; font-size: 14.5px; line-height: 1.5; color: #14312e; }
#pieservicios .boton { margin: 0; }
#pieservicios .boton { flex: none; }

/* ---------- Contacto ---------- */
#section4 #contacto { margin-left: 15%; width: 85%; height: 100%; display: flex; }
#section4 #infocontacto {
  float: none; width: auto; flex: 1 1 46%; max-width: none; margin: 0; height: auto;
  padding: 0 5% 0 6%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center;
}
#section4 .embed-container {
  flex: 1 1 54%; position: relative; float: none; width: auto; height: auto; padding-bottom: 0; max-width: none;
}
#section4 .embed-container iframe, #section4 .embed-container img.mapa-prueba {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
#subcontacto { width: 100%; max-width: 560px; float: none; margin: 0; padding: 0; }
#subcontacto h3 {
  font-family: "Goudy Old Style Regular", serif; font-weight: normal; font-size: 38px; line-height: 1.15;
  color: var(--ink); text-align: left; margin: 0 0 10px; text-wrap: balance;
}
#subcontacto h4 {
  font-family: RalewayMed, Raleway-Regular, sans-serif; font-weight: normal; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-dark); text-align: left; margin: 0 0 26px; white-space: nowrap;
}
.datos a:hover { color: var(--teal-dark); }
#section4 #infocontacto h2 {
  font-family: RalewayMed, Raleway-Regular, sans-serif; font-weight: normal; font-size: 13px;
  letter-spacing: .18em; color: var(--teal-dark); padding: 0; margin: 0 0 10px; text-align: left;
}
#section4 #infocontacto p { width: auto; padding: 0; font-size: 15px; line-height: 1.7; color: var(--text); margin: 0 0 22px; }
#section4 #infocontacto p b { color: #2f2f2f; }

/* ---------- Entrada suave de cada seccion ---------- */
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fp-section.active #intro > *,
.fp-section.active .somos > div,
.fp-section.active .grid-item,
.fp-section.active #pieservicios,
.fp-section.active #subcontacto,
.fp-section.active #infocontacto > h2,
.fp-section.active #infocontacto > p,
.fp-section.active #infocontacto > .boton { animation: subir .7s ease backwards; }
.fp-section.active #intro > :nth-child(2) { animation-delay: .08s; }
.fp-section.active #intro > :nth-child(3) { animation-delay: .16s; }
.fp-section.active #intro > :nth-child(4) { animation-delay: .24s; }
.fp-section.active .grid-item:nth-child(3n+2) { animation-delay: .06s; }
.fp-section.active .grid-item:nth-child(3n)   { animation-delay: .12s; }

}  /* fin escritorio */

/* Portatiles de poca altura: un poco mas compacto para que todo quepa */
@media (min-width: 1151px) and (max-height: 780px) {
  .grid-item .bodyservicio h2 { font-size: 15px; padding-top: 8px; }
  .grid-item .bodyservicio p { font-size: 12px; line-height: 1.25; padding: 6px 12px 8px; }
  #pieservicios { padding: 12px 22px; margin-top: 14px; }
  #pieservicios p { font-size: 13px; line-height: 1.4; }
  #subcontacto h3 { font-size: 30px; }
  #subcontacto h4 { margin-bottom: 18px; }
  .datos { margin-bottom: 22px; }
  .datos li { padding: 8px 0; }
  #section4 #infocontacto p { font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
  #section0 #intro h1 { font-size: 40px; }
}

/* Ajustes solo para movil */
@media (max-width: 809px) {
  .botones { justify-content: center; }
  .cargo { padding: 16px 0 0 5%; margin-bottom: -6px; }
  .datos { margin: 0 10% 26px; }
  #infocontacto .boton-contorno { display: block; margin: 0 10% 24px; }
  #pieservicios .boton { display: block; margin: 14px 5% 8px; }
  #pieservicios p { color: #14312e; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
