/*
Theme Name: Club Náutico Vichuquén
Theme URI: https://clubnauticovichuquen.cl
Author: N5Go
Author URI: https://n5go.cl
Description: Tema personalizado para el Club Náutico Vichuquén — Lago Vichuquén, VII Región. Estética náutica oscura con navy, dorado y teal.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Privado
Text Domain: cnv
Tags: nautical, dark, custom-menu, featured-images, full-width-template, custom-colors
*/

/* === VARIABLES === */
:root {
  --navy:      #0a1628;
  --navy-mid:  #0f2040;
  --navy-light:#162a52;
  --gold:      #c9a84c;
  --gold-light:#f0c84a;
  --teal:      #1a9b8a;
  --teal-light:#22c9b4;
  --white:     #f0f4f8;
  --muted:     #8ba8c4;
  --card-bg:   rgba(15,32,64,0.85);
  --border:    rgba(201,168,76,0.25);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --radius:    12px;
  --transition: 0.3s ease;
}

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

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

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

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

.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

/* === TOPBAR ADMIN === */
.admin-topbar {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.admin-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-topbar a { color: var(--muted); font-size: 0.8rem; }
.admin-topbar a:hover { color: var(--gold); }

/* === HEADER & NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  white-space: nowrap;
}
.site-logo .logo-icon { font-size: 1.6rem; }
.site-logo .logo-sub {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Nav principal */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav ul li a {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.btn-finanzas {
  background: rgba(201,168,76,0.15);
  color: var(--gold) !important;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.btn-finanzas:hover {
  background: rgba(201,168,76,0.3) !important;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-mid);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;
  }
  .main-nav ul li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0a1628 0%, #0f2040 50%, #0a1628 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(26,155,138,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-stat .icon { font-size: 1rem; }

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: var(--navy);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,155,138,0.4);
  color: var(--navy);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
  color: var(--navy);
}

/* === COUNTERS BAND === */
.counters-band {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 600px) {
  .counters-grid { grid-template-columns: repeat(2,1fr); }
}
.counter-item .num {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.counter-item .label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* === SECTIONS === */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--navy-mid);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-header h2 em {
  font-style: italic;
  color: var(--gold);
}
.section-header p {
  max-width: 560px;
  margin-inline: auto;
  color: var(--muted);
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.card p { font-size: 0.9rem; }

/* === NEWS GRID === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
}
.news-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--navy-light);
}
.news-card-body {
  padding: 1.5rem;
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.news-card-cat {
  background: rgba(26,155,138,0.2);
  color: var(--teal-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}
.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.news-card h3 a { color: var(--white); }
.news-card h3 a:hover { color: var(--gold); }

.section-link {
  display: block;
  text-align: center;
  margin-top: 2.5rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.section-link:hover { color: var(--gold-light); }

/* === ACTIVITIES === */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.activity-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}
.activity-card:hover { border-color: rgba(201,168,76,0.5); }
.activity-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  background: rgba(26,155,138,0.15);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.activity-card .activity-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.activity-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

/* === MARKETPLACE PREVIEW === */
.marketplace-preview {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}
.marketplace-preview p { max-width: 480px; margin-inline: auto; margin-bottom: 1.5rem; }

/* === FOOTER === */
.site-footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.875rem;
  max-width: 260px;
}
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--muted); font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--white); }

.footer-contact li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  margin: 0;
}

/* === SINGLE POST === */
.post-single {
  padding: 4rem 0;
  max-width: 780px;
  margin-inline: auto;
}
.post-single .post-header {
  margin-bottom: 2rem;
}
.post-single .post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.post-single .post-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.post-single .post-thumb {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  max-height: 480px;
  object-fit: cover;
}
.post-content p { color: var(--muted); margin-bottom: 1.25rem; }
.post-content h2,
.post-content h3 { color: var(--white); margin: 2rem 0 0.75rem; }
.post-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* === PAGE HEADER === */
.page-header {
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.page-header h1 em { font-style: italic; color: var(--gold); }
.page-header p { max-width: 540px; margin-inline: auto; color: var(--muted); }

/* === WIDGETS === */
.widget {
  margin-bottom: 2rem;
}
.widget-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.widget ul { list-style: none; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.widget ul li a { color: var(--muted); font-size: 0.875rem; }
.widget ul li a:hover { color: var(--gold); }

/* === FORMS === */
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  margin-bottom: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
select option { background: var(--navy-mid); }

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
}
.pagination a:hover,
.pagination .current {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
  color: var(--gold);
}

/* === UTILITY === */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.separator {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 2px;
  margin: 1rem auto 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(26,155,138,0.15);
  border: 1px solid rgba(26,155,138,0.3);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .section { padding: 4rem 0; }
  .counters-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero { min-height: auto; padding: 6rem 0 4rem; }
  .hero-stats { gap: 1rem; }
  .hero-buttons { flex-direction: column; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .marketplace-preview { padding: 2rem 1.5rem; }
}
