/* ==========================================================================
   HOJA DE ESTILOS UNIFICADA - JESUSMALIA.COM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   -------------------------------------------------------------------------- */
:root {
  --bg-body: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --primary: #0f172a;
  --accent-green: #059669;
  --accent-warm: #c2410c;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

  /* Identidad Sube Tu Factura */
  --energy-orange: #f59e0b;
  --energy-orange-hover: #d97706;
  --energy-blue: #0e3047;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. HEADER & NAVEGACIÓN
   -------------------------------------------------------------------------- */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.logo span {
  color: var(--accent-green);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent-green);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.25rem;
}

/* --------------------------------------------------------------------------
   3. BOTONES REUTILIZABLES
   -------------------------------------------------------------------------- */
.btn {
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-energy {
  background: var(--energy-orange);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-energy:hover {
  background: var(--energy-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   4. HEROES (PORTADA Y PÁGINAS INTERNAS)
   -------------------------------------------------------------------------- */
/* Hero Portada */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Páginas Internas */
.page-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.page-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. TARJETAS Y GRID PRINCIPAL (INDEX)
   -------------------------------------------------------------------------- */
.section-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-featured {
  border-left: 4px solid var(--accent-green);
}

.card-featured-warm {
  border-left: 4px solid var(--accent-warm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-green {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-green);
}

.icon-warm {
  background: rgba(194, 65, 12, 0.1);
  color: var(--accent-warm);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-green);
}

.card-tag.tag-warm {
  color: var(--accent-warm);
}

.card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-link {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link span {
  transition: transform 0.2s ease;
  display: inline-block;
}

.card:hover .card-link {
  color: var(--accent-green);
}

.card:hover .card-link span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. CONTENIDO GENERAL Y BLOQUES INFORMATIVOS
   -------------------------------------------------------------------------- */
.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.content-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.info-block h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.info-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Bloque Destacado Verde */
.highlight-box-green {
  background: #ffffff;
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Bloque Cobertura Energía (Borde Naranja) */
.highlight-box-energy {
  background: #ffffff;
  border-left: 4px solid var(--energy-orange);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.value-proposition {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.prop-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.prop-icon-orange {
  background: rgba(245, 158, 11, 0.15);
  color: var(--energy-orange-hover);
  font-weight: 700;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* Grid de Tarjetas de Perfil/Capacidades */
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.target-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.target-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.target-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.target-card p {
  font-size: 0.95rem;
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-icon-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--primary);
}

.card-icon.icon-green-bg {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-green);
}

/* --------------------------------------------------------------------------
   7. BLOQUES DESTACADOS ESPECIALES (CONSEJOS & RESERVAMEMESA)
   -------------------------------------------------------------------------- */
/* Caja Azul de Consejos (Energía) */
.tips-box-blue {
  background: var(--energy-blue);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px -5px rgba(14, 48, 71, 0.3);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.tips-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--energy-orange);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tips-box-blue h2 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.tips-box-blue p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Bloque Clave de Seguimiento */
.key-feature-energy {
  background: var(--energy-blue);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius);
}

.key-feature-energy h2 {
  color: #ffffff;
}

.key-feature-energy p {
  color: #cbd5e1;
}

.check-list-orange {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list-orange li {
  position: relative;
  padding-left: 1.75rem;
  color: #f1f5f9;
  font-size: 1rem;
}

.check-list-orange li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--energy-orange);
  font-weight: bold;
}

.key-cta-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

/* Caja Terracota (Reservamemesa) */
.tips-box-warm {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent-warm);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tips-box-warm h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Texto de introducción compacto y discreto */
.tips-body-webs p {
  color: var(--text-muted);
  font-size: 0.875rem; /* Tamaño reducido deseado para compactar el bloque */
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.icon-white-bg {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-card-white {
  background: var(--bg-body); /* #f8fafc */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card-white h3 {
  font-size: 1.025rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.feature-card-white p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.feature-card-icon {
  background: rgba(194, 65, 12, 0.1);
  color: var(--accent-warm);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icono principal de la cabecera del bloque */
.icon-warm-bg {
  background: rgba(194, 65, 12, 0.1);
  color: var(--accent-warm);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-warm-light {
  background: rgba(194, 65, 12, 0.1);
  color: var(--accent-warm);
}

.border-warm-light {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.badge-upcoming-white {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.badge-upcoming-warm {
  display: inline-block;
  background: rgba(194, 65, 12, 0.08);
  color: var(--accent-warm);
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  border: 1px solid rgba(194, 65, 12, 0.25);
}

/* --------------------------------------------------------------------------
   8. SECCIÓN WEBS Y PROYECTOS (WEBS.PHP)
   -------------------------------------------------------------------------- */
.web-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-featured {
  border-top: 4px solid var(--accent-green);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-header h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0.25rem 0 0.75rem;
}

.project-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 4px;
  background: #ffffff;
  flex-shrink: 0;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tech-tag {
  background: var(--bg-body);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   9. BIO TEASER & FOOTER
   -------------------------------------------------------------------------- */
/* Bio Teaser */
.bio-teaser {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.bio-teaser-container {
  max-width: 800px;
  margin: 0 auto;
}

.bio-teaser h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.bio-teaser p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.bio-link {
  font-weight: 600;
  color: var(--accent-green);
  transition: opacity 0.2s ease;
}

.bio-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--primary);
  color: #f8fafc;
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-info .footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.footer-info .footer-tagline {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.footer-bio-link {
  margin-top: 0.5rem;
}

.footer-bio-link a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-bio-link a:hover {
  color: #ffffff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-label {
  opacity: 0.6;
  font-size: 0.85rem;
}

.contact-value a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-value a:hover {
  color: var(--accent-green);
}

.contact-value .wa-link {
  color: #10b981;
}

.contact-value .separator {
  opacity: 0.3;
  margin: 0 0.3rem;
}

/* --------------------------------------------------------------------------
   10. MEDIA QUERIES (ADAPTABILIDAD RESPONSIVE)
   -------------------------------------------------------------------------- */
@media (max-width: 868px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }
}

@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }

  .tips-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Aviso de Afiliados Amazon en Footer */
.footer-amazon-disclaimer {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-amazon-disclaimer p {
  font-size: 0.78rem;
  color: #94a3b8;
  opacity: 0.8;
  line-height: 1.4;
  margin: 0;
}
/* ==========================================================================
   GRID DE VÍDEOS Y REPRODUCTORES RESPONSIVE (LIBROS.PHP)
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.video-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 1.25rem;
}

.video-info h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.video-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}