/* ==========================================================================
   BOMBINHAS.COM.AR - HOJA DE ESTILOS PRINCIPAL (SEO & UX EDITORIAL)
   ========================================================================== */

:root {
  --primary: #0077b6;        /* Azul océano Santa Catarina */
  --primary-dark: #023e8a;   /* Azul profundo */
  --accent: #00b4d8;         /* Turquesa cristalino */
  --accent-light: #e0f7fa;   /* Fondo suave turquesa */
  --brasil-yellow: #facc15;  /* Amarillo bandera Brasil */
  --brasil-green: #0d9488;   /* Verde esmeralda mar */
  --sand: #fdf8f2;           /* Arena cálida */
  --text-main: #1e293b;      /* Gris pizarra oscuro (alta legibilidad) */
  --text-muted: #475569;     /* Gris medio */
  --bg-body: #ffffff;
  --bg-card: #f8fafc;
  --border: #e2e8f0;
  --success: #0d9488;
  --warning-bg: #fffbeb;
  --warning-border: #f59e0b;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN CON COLOR, HOVER Y CAMBIO DE ESTADO AL SCROLLEAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #023e8a 0%, #0077b6 55%, #0096c7 100%);
  border-bottom: 3px solid var(--brasil-yellow);
  box-shadow: 0 4px 16px rgba(2, 62, 138, 0.22);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
  transition: var(--transition);
}

.site-header.scrolled .navbar {
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-domain {
  color: var(--brasil-yellow);
  transition: var(--transition);
}

.site-header.scrolled .brand {
  color: var(--primary-dark);
}

.site-header.scrolled .brand-domain {
  color: var(--primary);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brasil-yellow);
  color: #023e8a;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.brand:hover {
  opacity: 0.92;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.3rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.52rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--brasil-yellow);
}

.site-header.scrolled .nav-link {
  color: var(--text-main);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  background-color: var(--accent-light);
  color: var(--primary-dark);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2.5px;
  background: var(--brasil-yellow);
  border-radius: 2px;
  transition: var(--transition);
  transform: translateX(-50%);
}

.site-header.scrolled .nav-link::after {
  background: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 65%;
}

/* Submenús desplegables */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 245px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brasil-yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1001;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 8px;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background-color: var(--accent-light);
  color: var(--primary-dark);
  padding-left: 1.15rem;
}

.nav-cta {
  display: inline-block;
  background: var(--brasil-yellow);
  color: #023e8a !important;
  padding: 0.58rem 1.1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-cta:hover {
  background: #fde047;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.site-header.scrolled .nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff !important;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 1.3rem;
  cursor: pointer;
  color: #ffffff;
  transition: var(--transition);
}

.site-header.scrolled .menu-toggle {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--primary-dark);
}

/* ==========================================================================
   HERO PRINCIPAL (CON TARJETAS RESUMEN EN LUGAR DE FOTO ROTA)
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #023e8a 0%, #0077b6 55%, #0096c7 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fef08a;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 1.75rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.highlight-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.highlight-card strong {
  display: block;
  font-size: 1.02rem;
  color: #fef08a;
  margin-bottom: 0.2rem;
}

.highlight-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-white {
  background: var(--brasil-yellow);
  color: #023e8a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
  background: #fde047;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIONES Y TIPOGRAFÍA EDITORIAL
   ========================================================================== */
.section {
  padding: 3.75rem 0;
}

.section-sand {
  background-color: var(--sand);
}

.section-light {
  background-color: var(--bg-card);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  color: var(--primary-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.article-body {
  max-width: 860px;
}

.article-body p {
  font-size: 1.05rem;
  color: var(--text-main);
}

.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.5rem;
  color: var(--text-main);
}

.article-body li {
  margin-bottom: 0.55rem;
}

.widget-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   GRILLAS Y TARJETAS (PLAYAS, EXCURSIONES, GUÍAS)
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-light);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.card-body p {
  font-size: 0.96rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.5rem;
}

.card-link:hover {
  color: var(--primary-dark);
  gap: 0.6rem;
}

/* ==========================================================================
   TABLAS COMPARATIVAS Y CAJAS DESTACADAS (CALLOUTS)
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  text-align: left;
}

th {
  background: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
  padding: 0.95rem 1.1rem;
  font-size: 0.95rem;
}

td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-main);
}

tr:nth-child(even) td {
  background: var(--bg-card);
}

.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
}

.callout-warning {
  background: var(--warning-bg);
  border-left-color: var(--warning-border);
}

.callout strong {
  color: var(--primary-dark);
}

/* ==========================================================================
   BLOQUE DE AFILIADOS MERCADO LIBRE / CHECKLIST
   ========================================================================== */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.affiliate-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.affiliate-card:hover {
  border-color: #ffe600;
  box-shadow: var(--shadow-md);
}

.affiliate-icon {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
}

.btn-ml {
  display: inline-block;
  text-align: center;
  background: #ffe600;
  color: #1e293b;
  font-weight: 700;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

.btn-ml:hover {
  background: #f5dc00;
  transform: translateY(-1px);
}

.affiliate-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  font-style: italic;
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ ACORDEÓN NATIVO)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 860px;
}

details.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
}

details.faq-item summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--text-main);
}

/* ==========================================================================
   FOOTER PROFESIONAL (APTO ADSENSE)
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #023e8a;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-bottom: 3px solid var(--brasil-yellow);
    box-shadow: var(--shadow-md);
  }
  .site-header.scrolled .nav-menu {
    background: #ffffff;
  }
  .nav-menu.open {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 0.35rem;
  }
  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.9);
  }
  .site-header.scrolled .dropdown-menu {
    background: var(--bg-card);
  }
  .site-header.scrolled .dropdown-menu a {
    color: var(--text-main);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
