/* ==========================================================================
   AUSTRAL DIVING - ESTILOS CSS3 PUROS PARA HOSTINGER
   Sitio Web Oficial www.australdiving.com • Caleta El Manzano, Hualaihué
   100% Estático, Sin WordPress, Sin Node.js, Compatible con Todos los Navegadores
   ========================================================================== */

/* 1. VARIABLES & RESET */
:root {
  --color-bg: #022c33;
  --color-bg-dark: #01191d;
  --color-bg-card: #033a44;
  --color-bg-card-hover: #044b58;
  --color-primary: #38bdf8;
  --color-primary-hover: #7dd3fc;
  --color-secondary: #0b798c;
  --color-accent-green: #10b981;
  --color-accent-amber: #f59e0b;
  --color-text-main: #f0f9ff;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(56, 189, 248, 0.4);
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  
  --container-max: 1200px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* 2. UTILIDADES DE ESTRUCTURA */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-padding-sm {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.bg-dark {
  background-color: var(--color-bg-dark);
}

.bg-ocean {
  background-color: var(--color-bg);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 0.85rem;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* 3. BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0284c7);
  color: #01191d;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-whatsapp:hover {
  background: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* 4. BARRA SUPERIOR (TOPBAR) */
.topbar {
  background: var(--color-bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a:hover {
  color: #ffffff;
}
.topbar-badge {
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

/* 5. NAVEGACIÓN (NAVBAR) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 44, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-normal);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.4);
}

.brand-text h1, .brand-text span.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-text p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}

/* MENÚ MÓVIL OVERLAY */
.mobile-menu {
  display: none;
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-menu-links a {
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  padding: 0.4rem 0;
  color: #ffffff;
}

.mobile-menu-links a:hover {
  color: var(--color-primary);
}

/* 6. HERO SECTION */
.hero {
  position: relative;
  padding: 5rem 0 6rem 0;
  background: linear-gradient(180deg, rgba(2, 44, 51, 0.75) 0%, rgba(1, 25, 29, 0.95) 100%),
              url('../images/backgrounds/fondo-oceano.jpg') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h2 {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-content h2 .highlight {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

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

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.showcase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.showcase-card.featured {
  grid-column: span 2;
  height: 240px;
}

.showcase-card:not(.featured) {
  height: 160px;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-card:hover img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(1, 25, 29, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.showcase-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.showcase-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

/* 7. TARJETAS DE SERVICIOS Y CURSOS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  background: var(--color-bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.card-img-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.card-floating-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-primary);
  color: #01191d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: block;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-features {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.card-features li {
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-features li::before {
  content: '✓';
  color: var(--color-accent-green);
  font-weight: bold;
}

.card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.card-price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-display);
}

/* 8. GALERÍA DE FOTOS & LIGHTBOX */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(1, 25, 29, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-overlay p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* MODAL LIGHTBOX */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image-wrap {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 60vh;
}

.modal-image-wrap img {
  max-height: 60vh;
  width: auto;
  object-fit: contain;
}

.modal-info {
  padding: 1.5rem;
}

.modal-info h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.modal-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* 9. CALCULADORA & COTIZADOR INTERACTIVO */
.calculator-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #cbd5e1;
  letter-spacing: 0.05em;
}

.form-control {
  background: var(--color-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.calc-result-box {
  background: var(--color-bg-dark);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.calc-total-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-display);
  line-height: 1.1;
}

/* 10. CONTACTO & FORMULARIO */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--color-bg-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* 11. PIE DE PÁGINA (FOOTER) */
.footer {
  background: #011417;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* BOTÓN FLOTANTE WHATSAPP */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  background: #10b981;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  background: #059669;
}

/* 12. RESPONSIVE BREAKPOINTS (MEDIA QUERIES) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-content h2 {
    font-size: 2.35rem;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .calc-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.85rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .cards-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
}
