/* ===== VARIABLES =====
   Los mismos azules y verde agua del logo de PMS que usa el panel (ver public/styles.css). La
   landing mantiene variables propias porque no carga Bootstrap ni styles.css: es una página
   suelta. Los nombres son de ROL (`dark`/`main`/`mid`), no de color — así el próximo cambio de
   marca no deja un `--green-*` pintando azul, que es exactamente de donde venimos.

   Los tres tonos fuertes pasan AA sobre blanco (9.0:1, 6.1:1 y 5.4:1) y aguantan texto blanco
   encima con los mismos números; los dos claros son solo fondos. */
:root {
  --brand-dark:  #0A4A85;
  --brand-main:  #0D63B0;
  --brand-mid:   #0F6CBE;
  --brand-light: #E3F1FB;
  --brand-pale:  #EAF6F4;
  --text-dark:   #1a1a1a;
  --text-mid:    #4a4a4a;
  --text-muted:  #757575;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: transparent;
  transition: background .25s, box-shadow .25s;
}

.lp-nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.lp-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .25s;
}

.lp-nav.scrolled .lp-brand { color: var(--brand-dark); }

.lp-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.lp-links a {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: color .2s;
}

.lp-links a:hover { color: #fff; }

.lp-nav.scrolled .lp-links a { color: var(--text-mid); }
.lp-nav.scrolled .lp-links a:hover { color: var(--brand-main); }

/* Selector de idioma (D127). Va al final de la lista de links y en un tono más apagado: es una
   preferencia de lectura, no una sección del sitio, y no tiene que competir con la navegación. */
.lp-idiomas {
  font-size: .8rem;
  letter-spacing: .02em;
  color: rgba(255,255,255,.6);
}

.lp-idiomas a { font-size: inherit; font-weight: 400; color: inherit; }
.lp-idiomas a:hover { color: #fff; }
.lp-idiomas strong { font-weight: 600; color: rgba(255,255,255,.95); }

.lp-nav.scrolled .lp-idiomas { color: var(--text-mid); }
.lp-nav.scrolled .lp-idiomas strong { color: var(--brand-dark); }
.lp-nav-cta {
  background: var(--brand-mid) !important;
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 6px;
  transition: background .2s !important;
}

.lp-nav-cta:hover { background: var(--brand-dark) !important; }

/* Hamburger */
.lp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.lp-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .25s;
}

.lp-nav.scrolled .lp-hamburger span { background: var(--text-dark); }

.lp-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-hamburger.open span:nth-child(2) { opacity: 0; }
.lp-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.lp-hero {
  min-height: 100vh;
  /* El barrido del logo, en el mismo orden: azul profundo abajo a la izquierda, celeste al medio,
     verde agua arriba a la derecha. Los tres primeros tramos cubren el 80% para que el texto
     blanco del hero caiga siempre sobre azul oscuro y no sobre el agua, que no le da contraste. */
  background: linear-gradient(135deg, #07386B 0%, #0D63B0 45%, #1C9CCB 78%, #16BFA6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 7rem 2rem 4rem;
  flex-wrap: wrap;
}

.lp-hero-text { max-width: 500px; }

.lp-hero-tag {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: .75rem;
}

.lp-hero-text h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.25rem;
}

.lp-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 420px;
}

.lp-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.lp-btn-primary {
  display: inline-block;
  padding: .75rem 1.75rem;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.lp-btn-primary:hover {
  background: var(--brand-pale);
  transform: translateY(-1px);
}

.lp-btn-ghost {
  display: inline-block;
  padding: .75rem 1.75rem;
  border: 2px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.lp-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}

.lp-hero-photo {
  flex-shrink: 0;
}

.lp-hero-photo img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ===== SECCIONES GENERALES ===== */
.lp-section {
  padding: 5rem 1.5rem;
}

.lp-section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
  line-height: 1.15;
  padding-left: 1rem;
  border-left: 4px solid var(--brand-mid);
}

/* ===== SOBRE MÍ ===== */
.lp-about { background: var(--brand-pale); }

.lp-about .container { max-width: 700px; }

.lp-about-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Credenciales */
.lp-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.lp-credential {
  background: #fff;
  border: 1px solid #BFDCF0;
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 20px;
}

/* ===== SERVICIOS ===== */
.lp-services { background: #fff; }

.lp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: .5rem;
}

.lp-service-card {
  background: var(--brand-pale);
  border: 1px solid #BFDCF0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: box-shadow .2s, transform .2s;
}

.lp-service-card:hover {
  box-shadow: 0 6px 20px rgba(56,142,60,.15);
  transform: translateY(-2px);
}

.lp-service-icon {
  color: var(--brand-mid);
  margin-bottom: .75rem;
  line-height: 1;
}

.lp-service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: .5rem;
}

.lp-service-card p {
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ===== CONTACTO ===== */
.lp-contact { background: var(--brand-light); }

.lp-contact-sub {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  max-width: 560px;
}

.lp-contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lp-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #BFDCF0;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
  flex: 1 1 220px;
  transition: box-shadow .2s, transform .15s;
}

.lp-contact-card:hover {
  box-shadow: 0 4px 16px rgba(56,142,60,.15);
  transform: translateY(-2px);
  color: var(--text-dark);
}

/* El verde de acá es el de WhatsApp, no el nuestro: es la señal de que ese botón abre WhatsApp.
   No se repinta con la marca — perdería justamente lo que lo hace reconocible de un vistazo. */
.lp-contact-wa {
  border-color: #25d366;
  background: #f0fff4;
}

.lp-contact-wa .lp-contact-value { color: #128c3e; }

.lp-contact-wa:hover {
  background: #e6ffee;
  box-shadow: 0 4px 16px rgba(37,211,102,.2);
}

.lp-contact-icon { font-size: 1.5rem; flex-shrink: 0; }

.lp-contact-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .2rem;
}

.lp-contact-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-dark);
}

/* Mapa + Formulario */
.lp-contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
  align-items: start;
}

.lp-map iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.lp-consult-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.lp-consult-form .form-control {
  font-size: .95rem;
  border-color: #BFDCF0;
}

.lp-consult-form .form-control:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 .2rem rgba(67,160,71,.2);
}

.lp-form-submit {
  width: 100%;
  padding: .75rem;
  background: var(--brand-mid);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}

.lp-form-submit:hover { background: var(--brand-dark); }

@media (max-width: 768px) {
  .lp-contact-bottom { grid-template-columns: 1fr; }
  .lp-map iframe { height: 260px; }
}

/* ===== FOOTER ===== */
.lp-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 1.5rem;
  font-size: .85rem;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .lp-hamburger { display: flex; }

  .lp-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: .5rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }

  .lp-links.open { display: flex; }

  .lp-links li { width: 100%; }

  .lp-links a {
    display: block;
    padding: .85rem 2rem;
    color: var(--text-mid) !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .lp-links a:hover { color: var(--brand-main) !important; background: var(--brand-pale); }

  .lp-nav-cta {
    margin: .5rem 2rem .75rem !important;
    border-radius: 6px !important;
    text-align: center;
  }

  .lp-hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    gap: 2rem;
  }

  .lp-hero-sub { margin: 0 auto 2rem; }

  .lp-hero-actions { justify-content: center; }

  .lp-hero-photo img { width: 200px; height: 200px; }
}
