/*
Theme Name: ProxoDive Child
Theme URI: https://proxodive.com
Description: Tema child ultraliviano para ProxoDive - Salidas de buceo en Córdoba
Author: ProxoDive
Author URI: https://proxodive.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: proxodive-child
*/

/* ==========================================================================
   DESIGN SYSTEM - CSS Custom Properties
   Based on 06-style-guide.md
   ========================================================================== */

:root {
  /* Colors - Ocean Palette */
  --color-primary: #0077B6;
  --color-primary-dark: #023E8A;
  --color-primary-light: #00B4D8;
  --color-accent: #90E0EF;
  --color-accent-light: #CAF0F8;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-border: #F1F5F9;
  --color-text: #334155;
  --color-text-light: #94A3B8;
  --color-text-dark: #0F172A;

  /* Semantic */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DA851;
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', var(--font-body);

  /* Font Sizes (fluid) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.5rem, 4vw, 1.875rem);
  --text-4xl: clamp(1.875rem, 5vw, 2.25rem);
  --text-5xl: clamp(2.25rem, 6vw, 3rem);

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
  --container-padding: var(--space-4);
}

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-6);
  }
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: 700;
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
  font-weight: 500;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.card-content {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.card-text {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: 500;
  color: var(--color-primary);
}

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

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.badge-inicial {
  background-color: #DCFCE7;
  color: #166534;
}

.badge-intermedio {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.badge-avanzado {
  background-color: var(--color-primary-dark);
  color: white;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  color: var(--color-text-dark);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding-bottom: var(--space-4);
  color: var(--color-text);
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

/* ==========================================================================
   WHATSAPP STICKY CTA
   ========================================================================== */

.whatsapp-sticky {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  background-color: var(--color-whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.whatsapp-sticky svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  display: none;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--color-text-dark);
}

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 99;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-dark);
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(2, 62, 138, 0.7) 0%,
      rgba(0, 119, 182, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  color: white;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-lg);
  opacity: 0.95;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    gap: var(--space-4);
  }
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumb-item:not(:last-child)::after {
  content: '→';
  color: var(--color-text-light);
}

.breadcrumb-link {
  color: var(--color-text-light);
}

.breadcrumb-link:hover {
  color: var(--color-primary);
}

.breadcrumb-current {
  color: var(--color-text);
}

/* ==========================================================================
   CALENDAR TABLE
   ========================================================================== */

.calendar-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.calendar-table th,
.calendar-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.calendar-table th {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-bg-alt);
}

.calendar-table tbody tr:hover {
  background-color: var(--color-bg-alt);
}

.calendar-sitio {
  font-weight: 500;
  color: var(--color-text-dark);
}

.calendar-cupos-disponible {
  color: var(--color-success);
  font-weight: 500;
}

.calendar-cupos-completo {
  color: var(--color-error);
  font-weight: 500;
}

/* Mobile: Cards view */
@media (max-width: 767px) {
  .calendar-table-wrapper {
    overflow-x: visible;
  }

  .calendar-table {
    min-width: 0;
  }

  .calendar-table thead {
    display: none;
  }

  .calendar-table tbody tr {
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-border);
  }

  .calendar-table td {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: none;
  }

  .calendar-table td::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--color-text-light);
    font-size: var(--text-sm);
  }

  .calendar-table td:last-child {
    margin-top: var(--space-2);
    justify-content: center;
  }

  .calendar-table td:last-child::before {
    display: none;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--color-primary-dark);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  color: white;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast);
}

.footer-social a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  opacity: 0.7;
  text-align: center;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background-color: var(--color-primary-dark);
  color: white;
  padding: var(--space-3) var(--space-6);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mt-8 {
  margin-top: var(--space-8);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background-color: var(--color-bg-alt);
  font-weight: 600;
  font-size: var(--text-sm);
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--color-text-dark);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.checklist-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-success);
}

/* Timeline / Plan del día */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 2px;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 4px);
  top: var(--space-1);
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
}

.timeline-time {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.timeline-content {
  color: var(--color-text);
}

/* Security / Features Grid */
.features-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: var(--space-4);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-text h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.feature-text p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 0;
}