/* ============================================================
   ESTILOS PROPIOS DE PHYLAX
   La mayoría del diseño está hecho con clases de Tailwind en el HTML.
   Acá sólo va lo que Tailwind no resuelve bien (triángulos, fondos, formulario).
   Los colores principales están en js/tailwind-config.js — si cambiás el
   color de acento allá, cambialo también en la variable --acento de abajo.
   ============================================================ */

:root {
  --acento: #d3d655;
  --negro: #0c0c0c;
  --altura-menu: 80px;
}

/* Que el atributo "hidden" siempre oculte (aunque el elemento tenga clases como "flex") */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--altura-menu);
}

body {
  font-family: Asap, Helvetica, Arial, sans-serif;
  color: var(--negro);
  background: #fff;
}

/* ---------- Menú superior ---------- */
.nav-link {
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--acento);
  transition: width 0.25s;
}
.nav-link:hover::after,
.nav-link.activo::after {
  width: 100%;
}

#menu-movil {
  transition: max-height 0.3s ease;
  max-height: 0;
  overflow: hidden;
}
#menu-movil.abierto {
  max-height: 400px;
}

/* ---------- Fondos con imagen ---------- */
.fondo-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Efecto "parallax": la imagen queda fija al hacer scroll (sólo en pantallas grandes) */
@media (min-width: 1024px) {
  .fondo-fijo {
    background-attachment: fixed;
  }
}

/* Degradé para que el título del inicio se lea bien sobre la foto */
.hero-velo {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 70%);
}
@media (max-width: 767px) {
  .hero-velo {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.2) 100%);
  }
}

/* ---------- Tarjetas de servicios (triángulo verde invertido) ---------- */
.tarjeta-servicio {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
}
.tarjeta-servicio .triangulo {
  position: relative;
  width: 15rem;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tarjeta-servicio .triangulo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--acento);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform 0.3s ease;
  transform-origin: top center;
}
.tarjeta-servicio:hover .triangulo::before {
  transform: scale(1.06);
}
.tarjeta-servicio .triangulo span {
  position: relative;
  margin-top: 3rem;
  white-space: nowrap;
}

.boton-sombra {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s, transform 0.2s;
}
.boton-sombra:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* ---------- Viñeta triangular de las listas de servicios ---------- */
.vineta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.vineta::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.9rem;
  background: var(--acento);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- Formulario de contacto ---------- */
.campo {
  width: 100%;
  border: 1px solid #d4d4d4;
  background: #fff;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo::placeholder {
  color: #a3a3a3;
}
.campo:focus {
  outline: none;
  border-color: var(--acento);
  box-shadow: 0 0 0 3px rgba(211, 214, 85, 0.35);
}
.mensaje-error {
  display: none;
  color: #b42318;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
