/* ============================================================
   JEPETO REFORMAS - ESTILO GLOBAL
   Autor: Jepeto.es
   Fecha: 2025
   Descripción: Base de estilos personalizada compatible con Tailwind
   ============================================================ */

/* ---------- VARIABLES DE COLOR CORPORATIVO ---------- */
:root {
  --color-primary: #004AAD;   /* Azul Jepeto */
  --color-secondary: #FFD700; /* Amarillo Jepeto */
  --color-bg: #f9fafb;        /* Gris claro */
  --color-text: #1f2937;      /* Gris oscuro */
}

/* ---------- RESETEO GENERAL ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* ---------- CLASES DE COLOR ---------- */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.border-primary { border-color: var(--color-primary) !important; }
.border-secondary { border-color: var(--color-secondary) !important; }

a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-secondary);
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background-color: #00368a;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background-color: #ffde55;
}

/* ---------- CABECERAS ---------- */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}

header a {
  font-weight: 500;
}

header a:hover {
  color: var(--color-secondary);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 100vh;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ---------- ANIMACIONES ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FORMULARIOS ---------- */
input, textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem;
  width: 100%;
  font-size: 1rem;
  transition: all 0.2s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4);
}

/* ---------- WHATSAPP BUTTON ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  animation: bounce 8s infinite;
  transition: transform 0.2s ease-in-out;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
}
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  90% { transform: translateY(-6px); }
}

/* ---------- FOOTER ---------- */
footer {
  background-color: #111827;
  color: #d1d5db;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
footer a {
  color: var(--color-secondary);
}
footer a:hover {
  color: white;
}

/* ---------- GALERÍA ---------- */
.gallery-img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.75rem;
  cursor: pointer;
}
.gallery-img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox-close:hover {
  color: #FFD700;
}

/* ---------- UTILIDADES ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  header nav {
    display: none;
  }
}
