/* ===========================================
   PREC MANTENIMIENTOS — styles.css
   =========================================== */

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --azul: #0B4F6C;
  --azul-medio: #1A7FA1;
  --celeste: #5EC4E0;
  --celeste-claro: #D8F2F9;
  --arena: #F5F0E8;
  --arena-oscuro: #E8DFC8;
  --texto: #1A1A1A;
  --texto-suave: #555;
  --blanco: #fff;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
}

/* ── LOGO ── */
.logo-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-nombre {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--blanco);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-top: 2px;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 79, 108, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── NAV ── */
nav {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 5%;
  height: 72px;
}

/* ── MAIN centrado ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Secciones full-width ── */
#hero,
#nosotros,
#contacto {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.nav-logo {
  display: flex;
  justify-content: center;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--celeste);
}

.nav-contacto {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  align-items: center;
}

.nav-tel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-tel:hover {
  color: var(--celeste);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background:
     linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(11,79,108,0.35) 40%, rgba(11,79,108,0.85) 100%),
    url('portada_pagina_prec.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 5%;
  position: relative;
}

.hero-content {
  max-width: 680px;
  animation: fadeUp 0.9s ease both;
  margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: var(--celeste);
  color: var(--azul);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--blanco);
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

h1 em {
  color: var(--celeste);
  font-style: normal;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--celeste);
  color: var(--azul);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #7DD4EA;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--blanco);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--celeste);
  background: rgba(255, 255, 255, 0.07);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
}

/* ── STATS ── */
#stats {
  background: var(--azul);
  padding: 3.5rem 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--celeste);
  line-height: 1;
}

.stat-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── SECCIONES GENÉRICAS ── */
section {
  padding: 5rem 5%;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azul-medio);
  margin-bottom: 0.75rem;
  display: block;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--azul);
  line-height: 1.25;
  font-weight: 600;
  margin-bottom: 1rem;
}

.lead {
  color: var(--texto-suave);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 620px;
}

/* ── SERVICIOS ── */
#servicios {
  background: var(--arena);
}

.servicios-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.serv-card {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.serv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(11, 79, 108, 0.13);
}

.serv-img {
  height: 170px;
  background-size: cover;
  background-position: center;
}

.serv-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.serv-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}

.serv-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 0.5rem;
}

.serv-desc {
  color: var(--texto-suave);
  font-size: 0.88rem;
  line-height: 1.65;
}

.serv-items {
  margin-top: 0.75rem;
  padding-left: 0;
  list-style: none;
}

.serv-items li {
  font-size: 0.84rem;
  color: var(--texto-suave);
  padding: 0.25rem 0;
  border-top: 1px solid var(--arena);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.serv-items li::before {
  content: '—';
  color: var(--celeste);
  flex-shrink: 0;
}

/* ── FRECUENCIAS ── */
#frecuencia {
  background: var(--blanco);
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.freq-card {
  border: 1.5px solid var(--celeste-claro);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.freq-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--celeste);
}

.freq-estacion {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul-medio);
  margin-bottom: 0.4rem;
}

.freq-meses {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--azul);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.freq-ritmo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul);
  font-family: 'Playfair Display', serif;
}

.freq-desc {
  font-size: 0.84rem;
  color: var(--texto-suave);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ── NOSOTROS ── */
#nosotros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 540px;
}

.nosotros-img {
  background: url('https://images.unsplash.com/photo-1562778612-e1e0cda9915c?w=900&q=80') center/cover no-repeat;
  min-height: 380px;
}

.nosotros-content {
  background: var(--azul);
  padding: 5rem 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nosotros-content .section-label { color: var(--celeste); }
.nosotros-content h2             { color: var(--blanco); }
.nosotros-content .lead          { color: rgba(255, 255, 255, 0.72); margin-bottom: 2.5rem; }

.features {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feat-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(94, 196, 224, 0.15);
  border: 1px solid rgba(94, 196, 224, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.feat-text strong {
  color: var(--blanco);
  font-weight: 500;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.feat-text span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ── PROCESO ── */
#proceso {
  background: var(--arena);
  text-align: center;
}

#proceso .lead {
  margin: 0 auto 3.5rem;
}

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.step {
  padding: 2rem 1.5rem;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--arena-oscuro);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-title {
  font-weight: 500;
  color: var(--azul);
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--texto-suave);
  font-size: 0.87rem;
  line-height: 1.65;
}

/* ── CONTACTO ── */
#contacto {
  padding: 5rem 5%;
  background: var(--arena);
}

.contacto-header {
  margin-bottom: 3rem;
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.contacto-form {
  background: var(--blanco);
  border-radius: 8px;
  padding: 2.5rem;
}

.contacto-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--azul);
  margin-bottom: 2rem;
}

/* ASIDE datos */
.contacto-aside {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-datos {
  background: var(--blanco);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-style: normal;
}

.aside-horario {
  background: var(--celeste-claro);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aside-horario strong {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--azul);
}

.aside-horario span {
  font-size: 0.85rem;
  color: var(--texto-suave);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #D0D0D0;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--texto);
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--azul-medio);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  margin-top: 1.25rem;
  background: var(--azul);
  color: white;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.submit-btn:hover {
  background: var(--azul-medio);
}

/* ── FOOTER ── */
footer {
  background: #070F14;
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-logo .logo-nombre {
  font-size: 1.1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

footer a:hover {
  color: var(--celeste);
}

footer nav ul {
  flex-wrap: wrap;
  gap: 1.25rem;
}

.redes {
  display: flex;
  gap: 0.75rem;
}

.red {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, color 0.2s;
}

.red:hover {
  background: var(--celeste);
  color: var(--azul) !important;
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── COLORES NAV (azul) ── */
nav ul a {
  color: rgba(255, 255, 255, 0.85);
}

nav ul a:hover {
  color: var(--celeste);
}

.nav-cta {
  background: var(--celeste) !important;
  color: var(--azul) !important;
}

.nav-cta:hover {
  background: #7DD4EA !important;
  color: var(--azul) !important;
}

.nav-tel {
  color: rgba(255, 255, 255, 0.8);
}

.nav-tel:hover {
  color: var(--celeste);
}

/* ── EQUIPO (aside) ── */
#equipo {
  background: var(--arena);
  padding: 5rem 5%;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--azul);
  text-align: center;
  border-radius: 8px;
  padding: 2rem 1.25rem 1.5rem;
  box-shadow: 0 0px 25px #0007;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(11, 79, 108, 0.2);
}

.card_img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--celeste);
  margin-bottom: 1rem;
}

.card_img_migue {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--celeste);
  margin-bottom: 1rem;
}

.card_title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blanco);
  margin: 0 0 0.3rem;
}

.card_subtitle {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--celeste);
  margin: 0 0 1rem;
}

.card_content {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  text-align: justify;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  #nosotros {
    grid-template-columns: 1fr;
  }

  .contacto-layout {
    grid-template-columns: 1fr;
  }

  .contacto-aside {
    position: static;
  }

  .nosotros-img {
    min-height: 260px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  

  nav ul {
    display: none;
  }
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25D366;
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.wa-btn:hover {
  background: #1eaf55;
}