/* ============================================================================
   CANARY YACHT AGENTS - PALETA CROMÁTICA CANARIA Y ESTILOS DE LUJO NÁUTICO
   ============================================================================ */

:root {
  --canary-blue: #0077C8;
  --canary-blue-hover: #005FA3;
  --canary-white: #FFFFFF;
  --canary-yellow: #FFCC00;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;
  --dark-navy: #0A1E3F;
  --dark-slate: #0F172A;
  --text-primary: #1E293B;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --card-border-radius: 14px;
  --box-shadow-elevated: 0 20px 40px -10px rgba(10, 30, 63, 0.15);
  --box-shadow-hover: 0 25px 50px -12px rgba(0, 119, 200, 0.25);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset básico y control absoluto de hipervínculos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a, a:visited, a:hover, a:active {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-title, .hero-title, .section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 800;
}

/* ----------------------------------------------------------------------------
   HEADER & NAVEGACIÓN (Top Navigation Bar)
   ---------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 30, 63, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--canary-white);
}

.brand-flag {
  width: 32px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(to right, #FFFFFF 33.3%, #0077C8 33.3%, #0077C8 66.6%, #FFCC00 66.6%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--canary-white);
  text-transform: uppercase;
}

.brand-title span {
  color: var(--canary-yellow);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 180px;
  display: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: rgba(0, 119, 200, 0.2);
}

.lang-selector .lang-btn {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-dropdown-menu {
  min-width: 140px !important;
}

.active-lang {
  color: var(--canary-yellow) !important;
  font-weight: 800;
  background: rgba(255, 204, 0, 0.15);
}

/* BOTÓN DE NAVBAR EN AZUL CANARIO CON MICRO-INDICADOR VERDE DE 8PX (PULSING DOT) */
.nav-urgent-btn {
  background: var(--canary-blue);
  color: var(--canary-white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 119, 200, 0.3);
  transition: var(--transition-smooth);
}

.nav-urgent-btn:hover {
  background: var(--canary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 119, 200, 0.4);
}

.online-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ----------------------------------------------------------------------------
   HERO SLIDER SECCIÓN (Tratamiento Superyacht Luxury con Filtro Degradado AAA)
   ---------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 580px;
  background: linear-gradient(180deg, rgba(10,30,63,0.60) 0%, rgba(10,30,63,0.90) 100%),
              url('/images/hero-superyacht.jpg') center 20% / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 9rem 1.5rem 8rem 1.5rem;
  color: var(--canary-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--canary-yellow);
  color: var(--dark-navy);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  max-width: 950px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 780px;
  margin-bottom: 2.2rem;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* BOTÓN PRINCIPAL COMMERCIAL CTA EN AMARILLO CANARIO (#FFCC00) */
.btn-hero-primary {
  background: var(--canary-yellow);
  color: var(--dark-navy);
  padding: 0.95rem 2.2rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.35);
  transition: var(--transition-smooth);
}

.btn-hero-primary:hover {
  background: #E6B800;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 204, 0, 0.5);
}

/* BOTÓN SECUNDARIO TRANSPARENTE GHOST BUTTON CON BORDE BLANCO */
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--canary-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 0.95rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.btn-hero-ghost:hover {
  background: var(--canary-white);
  color: var(--dark-navy);
}

/* ----------------------------------------------------------------------------
   OVERLAPPED CARDS GRID (Cuadrícula Solapada con Margen Negativo -90px)
   ---------------------------------------------------------------------------- */
.services-overlap-container {
  max-width: 1280px;
  margin: -90px auto 4rem auto; /* SOLAPE NEGATIVO REFORZADO */
  padding: 0 1.5rem;
  position: relative;
  z-index: 20;
}

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

/* LA TARJETA SOLAPADA CON SOMBRA DIFUSA ELEVADA Y 1 ÚNICO BOTÓN ABAJO */
.service-card {
  background: var(--canary-white);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 20px 40px -15px rgba(10, 30, 63, 0.10);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--canary-yellow);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 119, 200, 0.20);
  border-color: rgba(0, 119, 200, 0.35);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 119, 200, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 36px;
  height: 36px;
}

.card-badge {
  background: #EBF5FF;
  color: var(--canary-blue);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 119, 200, 0.2);
}

.card-wa-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.card-wa-icon:hover {
  background: rgba(37, 211, 102, 0.25);
  transform: scale(1.1);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark-slate);
  margin-bottom: 0.8rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.55;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  margin-top: auto;
  width: 100%;
}

/* BOTÓN ÚNICO ABAJO EN AZUL CANARIO Y ESQUINAS REDONDEADAS 8PX */
.btn-card-details {
  width: 100%;
  background: var(--canary-blue);
  color: var(--canary-white);
  padding: 0.8rem 1rem;
  border-radius: 8px; /* 8px DE ESQUINAS REDONDEADAS */
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-card-details:hover {
  background: var(--canary-blue-hover);
}

/* ----------------------------------------------------------------------------
   FLOTAS Y LOGÍSTICA (GRID DE 4 COLUMNAS EN MONITORES GRANDES)
   ---------------------------------------------------------------------------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ----------------------------------------------------------------------------
   SECCIÓN 100% LOCAL & CANARY MANIFESTO
   ---------------------------------------------------------------------------- */
.manifesto-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: var(--dark-navy);
  border-radius: 20px;
  color: var(--canary-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.manifesto-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--canary-white);
}

.manifesto-text h2 span {
  color: var(--canary-yellow);
}

.manifesto-quote {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--canary-yellow);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--canary-yellow);
  padding-left: 1rem;
}

.manifesto-list {
  list-style: none;
  margin-top: 1.5rem;
}

.manifesto-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}

.manifesto-list li::before {
  content: '—';
  color: var(--canary-yellow);
  font-weight: 900;
}

/* ----------------------------------------------------------------------------
   MAPA Y SELECCIÓN DE LAS 7 ISLAS CANARIAS (TARJETAS ENRIQUECIDAS CON HOVER)
   ---------------------------------------------------------------------------- */
.islands-section {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

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

.island-card-link {
  background: var(--canary-white);
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.8rem 1.2rem;
  text-decoration: none;
  color: var(--dark-navy);
  font-weight: 800;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(10, 30, 63, 0.05);
  position: relative;
  overflow: hidden;
}

.island-card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--canary-blue);
  opacity: 0;
  transition: var(--transition-smooth);
}

.island-card-link:hover {
  border-color: var(--canary-blue);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 119, 200, 0.15);
}

.island-card-link:hover::before {
  opacity: 1;
}

/* ----------------------------------------------------------------------------
   BOTÓN FLOTANTE INTELIGENTE DE WHATSAPP 24/7 (Esquina Inferior Derecha)
   ---------------------------------------------------------------------------- */
.whatsapp-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 64px;
  height: 64px;
  background-color: var(--whatsapp-green);
  color: var(--canary-white);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  text-decoration: none;
  transition: var(--transition-smooth);
  animation: pulse-ring 2s infinite;
}

.whatsapp-float-btn svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-hover);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ----------------------------------------------------------------------------
   FOOTER (Pie de página)
   ---------------------------------------------------------------------------- */
.footer {
  background: var(--dark-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 2rem 2rem 2rem;
  border-top: 3px solid var(--canary-yellow);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--canary-white);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ----------------------------------------------------------------------------
   RESPONSIVE (Adaptación Móvil Extrema)
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1rem;
    font-size: 0.85rem;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-section {
    padding: 6rem 1rem 6rem 1rem;
    min-height: 480px;
  }
  .services-overlap-container {
    margin-top: -40px;
    padding: 0 1rem;
  }
  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  .service-card {
    width: 100%;
    min-width: 100%;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-description {
    font-size: 0.88rem;
  }
  .manifesto-section {
    grid-template-columns: 1fr;
    padding: 2rem 1.2rem;
  }
  .whatsapp-float-btn {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
  }
}
