/*
Theme Name:  ViveBuceo
Theme URI:   https://vivebuceo.com
Author:      ViveBuceo
Author URI:  https://vivebuceo.com
Description: Tema ligero y 100% responsive para ViveBuceo — Escuela de Buceo en La Herradura, Costa Tropical de Granada. Optimizado para conversión, SEO local y rendimiento.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vivebuceo
Tags:        full-width-template, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════════
   VARIABLES GLOBALES — se sobreescriben desde el Customizer
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* Colores */
  --vb-deep:    #041e2e;
  --vb-mid:     #063550;
  --vb-teal:    #0b7a8c;
  --vb-light:   #1ab3c8;
  --vb-gold:    #f0b429;
  --vb-muted:   #5a7a8a;
  --vb-alt:     #eef6f8;
  --vb-white:   #ffffff;
  --vb-text:    #0d1b24;
  --vb-bg:      #ffffff;

  /* Tipografía */
  --vb-font-body:    'Roboto', Arial, sans-serif;
  --vb-font-heading: 'Roboto', Arial, sans-serif;
  --vb-size-base:    16px;
  --vb-line-height:  1.65;

  /* Layout */
  --vb-max-width:  1200px;
  --vb-radius:     10px;
  --vb-gap:        24px;

  /* Header */
  --vb-header-height: 72px;
}

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

html {
  font-size: var(--vb-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--vb-font-body);
  font-size: 1rem;
  line-height: var(--vb-line-height);
  color: var(--vb-text);
  background: var(--vb-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--vb-teal); transition: color 0.2s; }
a:hover { color: var(--vb-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vb-font-heading);
  line-height: 1.2;
  color: var(--vb-deep);
  font-weight: 800;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Contenedor genérico ─────────────────────────────────────── */
.vb-container {
  width: 100%;
  max-width: var(--vb-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 768px) {
  .vb-container { padding-left: 20px; padding-right: 20px; }
}

/* ── Skip link accesibilidad ─────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--vb-deep);
  color: var(--vb-white);
  padding: 8px 16px;
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── WordPress core classes ──────────────────────────────────── */
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.alignwide { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--vb-muted); text-align: center; margin-top: 0.5rem; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
