/* Estilos base inspirados en el tiburón tropical */
:root {
  /* Project palette (user requested)
     Primary: #FF2E63 (rosa vibrante)
     Secondary: #4DB8E8 (azul celeste)
     Background light: #F5F8FA
     Text main: #2C3E50
     Accent: #8B9CA8
  */
  --brand-1: #4db8e8; /* secondary */
  --brand-2: #2c3e50; /* text / darker */
  --brand-3: #ff2e63; /* primary */
  --brand-4: #8b9ca8; /* accent */
  --brand-5: #eaf3f8; /* light blue tint */
  --brand-6: #f5f8fa; /* background soft */

  --bg: #f5f8fa; /* fondo claro solicitado */
  --card: #ffffff;
  --primary: var(--brand-3);
  --secondary: var(--brand-1);
  --text: #2c3e50;
  --muted: #8b9ca8;
  --accent: var(--brand-4);
  --soft: var(--brand-6);
  --grad-1: linear-gradient(90deg, var(--brand-1), var(--brand-3));
  --grad-2: linear-gradient(90deg, var(--brand-5), var(--brand-4));
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.site-header {
  background: linear-gradient(180deg, var(--soft), rgba(255, 255, 255, 0.95));
  box-shadow: 0 2px 14px rgba(77, 184, 232, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
}
.logo span {
  color: var(--brand-3);
}
.main-nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.hero {
  margin-top: 22px;
}
.featured {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
}
.featured-img {
  flex: 1 1 480px;
  background-size: cover;
  background-position: center;
  height: 360px;
}
.featured-content {
  flex: 1 1 420px;
  padding: 28px;
}
.categoria {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
}
.featured h1 {
  margin: 12px 0 10px;
  font-size: 1.6rem;
  color: var(--brand-2);
}
.resumen {
  color: var(--muted);
  line-height: 1.5;
}
.btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--grad-1);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(77, 184, 232, 0.18);
}
.listado {
  margin-top: 28px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(77, 184, 232, 0.08);
  transition: transform 0.25s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(255, 46, 99, 0.12);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 14px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--brand-2);
}
.card-resumen {
  color: var(--muted);
  font-size: 0.95rem;
}
.leer {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.single-header {
  height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.single-header .overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
  color: #fff;
  padding: 24px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.single-body {
  background: var(--card);
  padding: 22px;
  margin-top: 18px;
  border-radius: 12px;
  line-height: 1.8;
}
/* Admin */
.admin {
  max-width: 700px;
  padding: 30px;
  background: var(--card);
  margin: 30px auto;
  border-radius: 12px;
}
label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}
input[type="text"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6eef6;
  margin-top: 6px;
}
.info {
  background: linear-gradient(
    90deg,
    rgba(255, 179, 198, 0.15),
    rgba(255, 46, 99, 0.08)
  );
  padding: 10px;
  border-radius: 8px;
}
/* Animaciones */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.fade-up.in {
  opacity: 1;
  transform: none;
}
@media (max-width: 800px) {
  .featured {
    flex-direction: column;
  }
  .featured-img {
    height: 260px;
  }
  .featured-content {
    padding: 18px;
  }
}

/* ===== Tailwind utility overrides to apply project palette ===== */
/* Header top gradient */
.bg-gradient-to-r.from-blue-900.via-blue-800.to-cyan-800 {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #fff !important;
}

/* Generic utility overrides used across templates */
.text-cyan-600 {
  color: var(--primary) !important;
}
.hover\:text-cyan-700:hover {
  color: #d12253 !important; /* slightly darker primary */
}
.bg-cyan-500 {
  background-color: var(--primary) !important;
}
.text-cyan-300 {
  color: var(--soft) !important;
}
.bg-blue-700 {
  background-color: var(--secondary) !important;
}
.hover\:bg-blue-600:hover {
  background-color: #3bb0e0 !important;
}
.text-blue-200 {
  color: var(--soft) !important;
}
.border-blue-700 {
  border-color: var(--secondary) !important;
}
.from-cyan-500.to-blue-500 {
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--primary)
  ) !important;
}
.bg-gradient-to-r.from-cyan-500.to-blue-500 {
  background: linear-gradient(
    90deg,
    var(--secondary),
    var(--primary)
  ) !important;
}
.bg-blue-100 {
  background-color: rgba(77, 184, 232, 0.08) !important;
}
.text-blue-700 {
  color: var(--secondary) !important;
}
.hover\:text-blue-600:hover {
  color: #3bb0e0 !important;
}
.bg-blue-800\/50 {
  background-color: rgba(77, 184, 232, 0.5) !important;
}
.border-t.border-gray-200 {
  border-top-color: rgba(139, 156, 168, 0.2) !important;
}
.focus\:ring-cyan-500:focus {
  box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.12) !important;
}
.hover\:bg-gray-50:hover {
  background-color: rgba(139, 156, 168, 0.06) !important;
}

/* Footer gradient override */
footer.relative.bg-gradient-to-b.from-blue-900.via-blue-800.to-slate-900 {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* Buttons and badges */
.badge-brand {
  background: var(--primary);
  color: #fff;
}
.btn-gradient {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 46, 99, 0.12);
}

/* Small helpers */
.text-primary {
  color: #4db8e8 !important;
}
.bg-primary {
  background-color: #4db8e8 !important;
}

/* Make sure links that used cyan highlight use brand colors */
a[class*="text-cyan"],
a[class*="hover:text-cyan"] {
  color: #ff2e63;
}
