/*
 * custom.css — Estilos complementarios a Tailwind CSS
 * ReformaPro · Reformas & Construcción
 *
 * Uso: enlazar DESPUÉS del CDN de Tailwind en cada página:
 *   <link rel="stylesheet" href="/css/custom.css" />
 */

/* ─────────────────────────────────────────
   Variables de color corporativo
───────────────────────────────────────── */
:root {
  --color-deep:   #128C99;
  --color-light:  #AAEAF4;
  --color-accent: #40CAD7;
  --color-text:   #222222;
  --color-muted:  #555555;
  --color-bg:     #FFFFFF;
}

/* ─────────────────────────────────────────
   Reset y base
───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────
   Animaciones de entrada
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up           { animation: fadeUp .7s ease both; }
.fade-up-delay-1   { animation: fadeUp .7s .15s ease both; }
.fade-up-delay-2   { animation: fadeUp .7s .30s ease both; }
.fade-up-delay-3   { animation: fadeUp .7s .45s ease both; }

/* ─────────────────────────────────────────
   Líneas decorativas bajo títulos
───────────────────────────────────────── */
.title-underline::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 10px;
}

.title-underline-center::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  background: var(--color-accent);
  margin: 10px auto 0;
}

/* ─────────────────────────────────────────
   Tarjetas con hover
───────────────────────────────────────── */
.card-hover {
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(18, 140, 153, .15);
}

/* ─────────────────────────────────────────
   Patrón de fondo sutil (usado en hero)
───────────────────────────────────────── */
.hero-pattern {
  background-color: #ffffff;
  background-image:
    linear-gradient(135deg, #AAEAF420 25%, transparent 25%),
    linear-gradient(225deg, #AAEAF420 25%, transparent 25%),
    linear-gradient(45deg,  #AAEAF420 25%, transparent 25%),
    linear-gradient(315deg, #AAEAF420 25%, #ffffff 25%);
  background-size: 24px 24px;
}

/* ─────────────────────────────────────────
   Galería de proyectos
───────────────────────────────────────── */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
}
.gallery-item img {
  transition: transform .4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ─────────────────────────────────────────
   Páginas legales — tipografía de contenido
───────────────────────────────────────── */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-deep);
  margin-top: 2rem;
  margin-bottom: .5rem;
  padding-bottom: .25rem;
  border-bottom: 2px solid var(--color-light);
}

.legal-content p,
.legal-content li {
  font-size: .9375rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: .75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--color-deep);
  text-decoration: underline;
}
.legal-content a:hover {
  color: var(--color-accent);
}

/* ─────────────────────────────────────────
   Utilidades extra
───────────────────────────────────────── */

/* Imagen placeholder mientras no hay foto real */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-light) 0%, #e0f7fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Ocultar visualmente pero mantener en DOM (accesibilidad) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
