/* ========================================
   FIX GLOBAL - Evita conflictos con general.css
======================================== */
html {
  background-color: #ffffff !important;
}

body {
  background-color: #ffffff !important;
}

/* ========================================
   HEADER
======================================== */

.header {
  height: 100vh;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 80px 0 0 0; /* Fix para navbar fijo */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.header .container {
  z-index: 3;
  max-width: 800px;
  width: 100%;
  padding: 0;
  margin: 0;
}

.header-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.header .lead {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
  opacity: 0.95;
}

.line {
  width: 120px;
  height: 4px;
  background: #00a1b9;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   TÍTULO SECCIÓN
======================================== */

.titulo-gradiente {
  font-weight: 700;
  font-family: 'Segoe UI', sans-serif;
  font-size: 2.5rem;
  background: linear-gradient(45deg, #006474, #00a6a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ========================================
   TARJETAS - ESTILO OVERLAY EDITORIAL
======================================== */

.tarjeta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  border: none !important;
  border-radius: 14px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

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

.tarjeta-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  height: 260px;
}

.tarjeta-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.tarjeta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 20, 30, 0.88) 0%,
    rgba(0, 20, 30, 0.45) 55%,
    rgba(0, 20, 30, 0.10) 100%
  );
  transition: background 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1.1rem 1rem 1.1rem;
}

.tarjeta-overlay-titulo {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  transition: color 0.3s ease;
}

.tarjeta-overlay-subtitulo {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  margin: 0 0 0.7rem 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.tarjeta-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #00a1b9;
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-decoration: none !important;
  width: fit-content;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
}

.tarjeta-overlay-btn i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

/* ========================================
   HOVER EFFECTS
======================================== */

.tarjeta:hover {
  box-shadow: 0 12px 36px rgba(0, 161, 185, 0.25);
  transform: translateY(-6px);
}

.tarjeta:hover .tarjeta-img-wrapper img {
  transform: scale(1.07);
}

.tarjeta:hover .tarjeta-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 100, 116, 0.93) 0%,
    rgba(0, 100, 116, 0.55) 55%,
    rgba(0, 100, 116, 0.12) 100%
  );
}

.tarjeta:hover .tarjeta-overlay-btn {
  opacity: 1;
  transform: translateY(0);
}

.tarjeta:hover .tarjeta-overlay-btn:hover {
  background: #007a8e;
}

.tarjeta:hover .tarjeta-overlay-btn:hover i {
  transform: translateX(3px);
}

/* ========================================
   RESPONSIVE - MÓVIL
======================================== */

@media (max-width: 768px) {
  .header {
    min-height: 400px;
    height: auto;
    padding-top: 80px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header-title {
    font-size: 2.2rem;
    text-align: center;
    padding: 0 15px;
  }

  .header .lead {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 15px;
  }

  .line {
    width: 80px;
    height: 3px;
  }

  .tarjeta-img-wrapper {
    height: 220px;
  }

  .tarjeta-overlay-btn {
    opacity: 1;
    transform: translateY(0);
  }
}
