/* =====================================================
   PETROGOLD – PÁGINA DE MANTENIMIENTO
   style.css
   ===================================================== */

/* ----- RESET Y BASE ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #ffffff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* ----- VARIABLES DE COLOR ----- */
:root {
  --navy-deep:    #050c1a;
  --navy-mid:     #0d1b2e;
  --navy-light:   #16294a;
  --gold:         #c9a84c;
  --gold-light:   #e8c96d;
  --gold-dark:    #9a7c2e;
  --white:        #ffffff;
  --white-soft:   rgba(255, 255, 255, 0.82);
  --white-dim:    rgba(255, 255, 255, 0.45);
}

/* ----- FONDO CON IMAGEN Y OVERLAY ----- */
body {
  background-color: var(--navy-deep);
  background-image: url('assets/mantenimiento-petrogold.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Capa oscura encima de la imagen para legibilidad */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    rgba(5, 12, 26, 0.88) 0%,
    rgba(13, 27, 46, 0.78) 50%,
    rgba(22, 41, 74, 0.85) 100%
  );
  pointer-events: none;
}

/* ----- LOADER / BARRA DE PROGRESO ----- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.loader__bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.10);
}

.loader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--gold);
}

.loader--hidden {
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}

/* ----- CONTENIDO PRINCIPAL ----- */
.main {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.main.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- LOGO ----- */
.logo-wrap {
  margin-bottom: 28px;
}

.logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.45));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 4px 18px rgba(201, 168, 76, 0.35)); }
  50%       { filter: drop-shadow(0 4px 30px rgba(232, 201, 109, 0.65)); }
}

/* ----- SEPARADOR DORADO ----- */
.divider {
  width: 80px;
  height: 2px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.divider--short {
  width: 50px;
  margin: 28px auto 32px;
}

/* ----- TÍTULO ----- */
.title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 680px;
  background: linear-gradient(135deg, #ffffff 0%, #e8c96d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* ----- DESCRIPCIÓN ----- */
.description {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--white-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ----- BOTÓN CONTACTAR ----- */
.btn-contact {
  display: inline-block;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow:
    0 4px 20px rgba(201, 168, 76, 0.45),
    0 1px 4px rgba(0, 0, 0, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-contact:hover,
.btn-contact:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(201, 168, 76, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.30);
  outline: none;
}

.btn-contact:active {
  transform: translateY(0);
}

/* ----- EMAIL DE CONTACTO VISIBLE ----- */
.contact-email {
  margin-top: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.contact-email a {
  color: var(--gold-light);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  outline: none;
}

/* ----- FOOTER ----- */
.footer {
  position: relative;
  z-index: 10;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  padding: 0 24px;
}

.footer p {
  font-size: 0.82rem;
  color: var(--white-dim);
  letter-spacing: 0.04em;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
  .main {
    padding: 48px 20px 32px;
  }
  .logo {
    max-width: 220px;
  }
  .btn-contact {
    padding: 13px 36px;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 40px 16px 28px;
  }
  .logo {
    max-width: 170px;
  }
  .title {
    font-size: 1.5rem;
  }
  .description {
    font-size: 0.92rem;
  }
  .btn-contact {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Forzar email en dorado */
.contact-email a,
.contact-email a:visited,
.contact-email a:active {
  color: var(--gold-light) !important;
  text-decoration: none;
}

.contact-email a:hover,
.contact-email a:focus {
  color: var(--gold) !important;
  text-decoration: underline;
}
