@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0b2b40;
  --secondary-color: #1b5b82;
  --accent-color: #f2a65a;
  --bg-color: #f8f9fa;
  --text-color: #333333;
  --light-text: #ffffff;
  --muted-text: #777777;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --border-radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, rgba(27, 91, 130, 0.03) 0, transparent 50%), 
    radial-gradient(at 50% 0%, rgba(242, 166, 90, 0.02) 0, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(27, 91, 130, 0.03) 0, transparent 50%);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* Bloqueo de selección de texto */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Estándar */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  display: block;
  width: 100%;
}

h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

p {
  margin-bottom: 1rem;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 0.8rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 40px;
  transition: var(--transition);
}

header.scrolled .logo img {
  height: 35px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-text);
  transition: var(--transition);
}

header.scrolled .logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 500;
  color: var(--light-text);
  font-size: 1rem;
  position: relative;
}

header.scrolled .nav-links li a {
  color: var(--primary-color);
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

header.scrolled .mobile-menu-btn {
  color: var(--primary-color);
}

/* Hero Section with Slider */
.hero {
  height: 100vh;
  height: 100dvh; /* Dynamic Viewport Height for mobile */
  min-height: 500px; /* Reduced to fit mobile screens better */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 10s linear;
  transform: scale(1);
}

.slide.active {
  opacity: 1;
  transform: scale(1.1); /* Subtle zoom effect */
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(11, 43, 64, 0.4), rgba(11, 43, 64, 0.7));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--light-text);
  box-shadow: 0 4px 15px rgba(242, 166, 90, 0.3);
}

.btn-primary:hover {
  background-color: #e09348;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 166, 90, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-text);
  margin-left: 1rem;
}

.btn-outline:hover {
  background-color: var(--light-text);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.scroll-down {
  position: absolute;
  bottom: 100px; /* Adjusted for waves */
  left: 50%;
  transform: translateX(-50%);
  color: var(--light-text);
  font-size: 2rem;
  animation: bounce 2s infinite;
  opacity: 0.7;
  z-index: 5;
}

/* Hero Waves Divider */
.hero-waves {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 85px; /* Increased from 60px */
  min-height: 60px;
  max-height: 110px;
  z-index: 4;
}

.waves {
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: -7px;
}

/* Animation */
.parallax > use {
  animation: move-forever 20s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 8s;
  fill: rgba(255, 255, 255, 0.3); /* White foam cap */
}
.parallax > use:nth-child(2) {
  animation: move-reverse 12s cubic-bezier(.55,.5,.45,.5) infinite;
  animation-delay: -3s;
  fill: rgba(27, 156, 133, 0.4); /* Turquoise layer */
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 15s;
  fill: rgba(93, 173, 226, 0.3); /* Middle blue */
}
.parallax > use:nth-child(4) {
  animation: move-reverse 18s cubic-bezier(.55,.5,.45,.5) infinite;
  animation-delay: -5s;
  fill: #0b2b40; /* Deep base blue */
}

@keyframes move-forever {
  0% { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}
@keyframes move-reverse {
  0% { transform: translate3d(85px,0,0); }
  100% { transform: translate3d(-90px,0,0); }
}

@media (max-width: 768px) {
  .hero-waves {
    height: 30px;
    min-height: 25px;
  }
}

/* Quienes Somos */
.about {
  background-color: #ffffff;
}

/* Quiénes Somos - Marine Slider & Effects */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image.marine-frame {
  position: relative;
  height: 500px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic liquid shape */
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(11, 43, 64, 0.2);
  animation: liquidMorph 10s ease-in-out infinite alternate, bobbing 4s ease-in-out infinite;
  border: 8px solid white;
}

.about-slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
}

.about-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.about-slide.active {
  opacity: 1;
}

.marine-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, rgba(11, 43, 64, 0.2), transparent);
  pointer-events: none;
  z-index: 2;
}

@keyframes liquidMorph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes bobbing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image.marine-frame {
    height: 400px;
    margin-bottom: 2rem;
  }
}

/* Nuestras Empresas Premium */
.companies {
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  z-index: 1;
}

/* Ambient Glowing Orbs */
.companies-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.4;
  animation: floatOrb 15s infinite alternate ease-in-out;
}

.companies-glow.circle-1 {
  width: 450px;
  height: 450px;
  background: rgba(242, 166, 90, 0.15);
  top: -100px;
  left: -150px;
}

.companies-glow.circle-2 {
  width: 550px;
  height: 550px;
  background: rgba(27, 91, 130, 0.1);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.9); }
}

.companies-header {
  text-align: center;
  margin-bottom: 5rem;
}

.holding-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(242,166,90,0.15), rgba(242,166,90,0.05));
  border: 1px solid rgba(242,166,90,0.4);
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(242, 166, 90, 0.1);
}

.companies-header h2 {
  margin-bottom: 1.5rem;
  font-size: 3.2rem;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.companies-header h2::after {
  display: none; /* Remove default underline to use premium divider */
}

.premium-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.companies-header p {
  font-size: 1.15rem;
  color: var(--muted-text);
  max-width: 750px;
  margin: 0 auto;
}

.companies-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 1200px;
}

.companies-premium-card {
  position: relative;
  max-width: 1100px;
  width: 100%;
  border-radius: 32px;
  padding: 2px; /* Gradient border thickness */
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2), rgba(242,166,90,0.4));
  box-shadow: 0 25px 60px rgba(11, 43, 64, 0.06);
  transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
}

.companies-premium-card::after {
  content: '';
  position: absolute;
  top: -15px; right: -15px; bottom: -15px; left: -15px;
  background: linear-gradient(135deg, var(--accent-color) 0%, transparent 50%, var(--primary-color) 100%);
  z-index: -1;
  border-radius: 45px;
  opacity: 0;
  filter: blur(25px);
  transition: opacity 0.7s ease;
}

.companies-premium-card:hover {
  transform: translateY(-12px) rotateX(2deg) rotateY(1deg);
  box-shadow: 0 35px 70px rgba(11, 43, 64, 0.12);
}

.companies-premium-card:hover::after {
  opacity: 0.15;
}

.card-inner {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 5rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Light shimmer sweep effect */
.card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-25deg);
  animation: shimmerSweep 8s infinite;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.companies-collage {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  object-fit: contain;
  max-height: 450px;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(11, 43, 64, 0.15);
  filter: grayscale(12%);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.companies-premium-card:hover .companies-collage {
  filter: grayscale(0%);
  transform: scale(1.02);
  box-shadow: 0 25px 50px rgba(11, 43, 64, 0.25);
}

.companies-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
  z-index: 2;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  padding: 1.2rem 2.5rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  letter-spacing: 1px;
  border: 1px solid rgba(11, 43, 64, 0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.brand-text:hover {
  background: var(--accent-color);
  color: var(--light-text);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(242, 166, 90, 0.3);
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .companies-header h2 {
    font-size: 2.2rem;
  }
  .card-inner {
    padding: 3rem 1.5rem;
  }
  .brand-text {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
  }
}

/* Fleet Carousel Section - Professional Tide Theme */
.fleet {
  background-color: #0b2b40;
  background-image: 
    linear-gradient(rgba(11, 43, 64, 0.9), rgba(11, 43, 64, 0.9)),
    url('../images/LA-POZA-web.jpg');
  background-attachment: fixed;
  background-size: cover;
  padding: 6rem 0 2rem; /* Reduced padding */
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fleet-header {
  margin-bottom: 0; /* Remove gap before carousel */
  text-align: center;
}

.fleet-header p {
  margin-bottom: 0.5rem;
}

.fleet h2 {
  color: #fff;
}

.fleet h2::after {
  background-color: var(--accent-color);
}

.fleet-carousel-wrapper {
  position: relative;
  margin-top: 0; /* Glue to header */
  padding: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.tide-carousel {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 50%; /* No vertical padding */
  -ms-overflow-style: none;
  align-items: center;
  height: 380px; /* Reduced to fit slides tightly */
}

.tide-carousel::-webkit-scrollbar {
  display: none;
}

.tide-slide {
  flex: 0 0 320px; /* Slightly narrower */
  height: 220px;    /* Slightly shorter */
  position: relative;
  border-radius: 12px; /* Softer corners */
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  cursor: pointer;
  filter: brightness(0.6) grayscale(0.4); /* Less aggressive grayscale */
  transform: scale(0.9);
  opacity: 0.7;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), 
              filter 0.8s ease, 
              opacity 0.8s ease,
              box-shadow 0.8s ease;
  will-change: transform, filter;
}

.tide-slide.active {
  filter: brightness(1) grayscale(0);
  transform: scale(1.1); /* Subtle enhancement instead of 1.2 */
  opacity: 1;
  box-shadow: 0 20px 50px rgba(11, 43, 64, 0.4);
  border: 1px solid rgba(242, 166, 90, 0.5); /* Thinner accent border */
  z-index: 10;
}

.tide-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
  pointer-events: none;
}

.tide-slide:hover {
  filter: brightness(0.9) grayscale(0.2);
  opacity: 0.9;
}

.tide-slide.active:hover {
  filter: brightness(1.05) grayscale(0);
  transform: scale(1.12); /* Very subtle hover on active */
  opacity: 1;
}

.tide-slide:hover img {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .tide-carousel {
    padding: 0 50%;
    gap: 1.5rem;
    height: 200px;
  }
  
  .tide-slide {
    flex: 0 0 180px;
    height: 120px;
    transform: scale(0.85);
    opacity: 0.8;
  }

  .tide-slide.active {
    transform: scale(1.05); /* Very subtle on mobile */
    opacity: 1;
    z-index: 10;
  }
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(11, 43, 64, 0.95));
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.tide-slide.active .slide-overlay {
  transform: translateY(0);
  opacity: 1;
}

.slide-tag {
  font-family: 'Courier New', monospace;
  color: var(--accent-color);
  font-size: 0.8rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.slide-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.slide-overlay p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-top: 0; /* Right under the carousel */
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-color);
  width: 30px;
  border-radius: 10px;
}

.active-caption-box {
  text-align: center;
  margin-top: 0.5rem; /* Minimal gap */
  min-height: 24px;
}

.active-caption-box p {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .tide-slide {
    flex: 0 0 300px;
    height: 200px;
  }
}

/* Mision & Vision */
.mision-vision {
  background-color: var(--bg-color);
  position: relative;
}

.mision-vision::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('../images/LA-POZA-web.jpg') center/cover fixed;
  opacity: 0.05;
  pointer-events: none;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mv-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  text-align: center;
}

.mv-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 50px rgba(11, 43, 64, 0.2);
  border-color: var(--accent-color);
}

.mv-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(242, 166, 90, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.mv-card:hover .mv-icon {
  background-color: var(--accent-color);
  color: var(--light-text);
}

.mv-card h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.mv-card p {
  color: var(--muted-text);
}

/* Valores */
.valores {
  background: linear-gradient(rgba(11, 43, 64, 0.85), rgba(11, 43, 64, 0.9)), url('../images/LA-POZA-web.jpg') center/cover no-repeat fixed;
  color: var(--light-text);
  padding: 8rem 0;
}

.valores h2 {
  color: var(--light-text);
}

.valores h2::after {
  background-color: var(--accent-color);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.valor-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.valor-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.valor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.valor-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.valor-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.valor-card p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
}

/* Reseñas Section */
.resenas {
  background-color: #ffffff;
  padding: 6rem 0;
}

.resenas-grid {
  max-width: 900px;
  margin: 0 auto;
}

.resena-card {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 20px;
  border-left: 5px solid var(--accent-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.resena-content p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.resena-meta {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contacto */
.contacto {
  background-color: #ffffff;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info p {
  color: var(--muted-text);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(27, 91, 130, 0.1);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.contact-details p {
  margin-bottom: 0;
  font-size: 1rem;
}

.contact-form {
  background: var(--bg-color);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #ffffff;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(27, 91, 130, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* Footer */
footer {
  background-color: #05141e;
  color: var(--light-text);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -5px;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

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

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

.footer-bottom a {
  color: var(--accent-color);
  font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  .about-grid, .mv-grid, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 220px;
    height: 100vh;
    background: rgba(11, 43, 64, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    border-left: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 0.35rem 0;
    width: 85%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 15px;
    transition: var(--transition);
    width: 100%;
  }

  .nav-links li a.active {
    background: rgba(242, 166, 90, 0.15);
    color: var(--accent-color) !important;
    box-shadow: inset 0 0 0 1px rgba(242, 166, 90, 0.2);
  }
  
  header.scrolled .nav-links li a {
    color: var(--light-text);
  }
  
  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
    display: block;
  }
  
  section {
    padding: 4rem 0;
  }
}

/* Webmail Navigation Button */
.webmail-nav {
  margin-left: 1rem;
}

.btn-webmail {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem !important;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn-webmail i {
  margin-right: 5px;
}

.btn-webmail:hover {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

header.scrolled .btn-webmail {
  background-color: var(--primary-color);
  color: #fff !important;
  border-color: var(--primary-color);
}

header.scrolled .btn-webmail:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Webmail Login Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 43, 64, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted-text);
  cursor: pointer;
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
  transform: rotate(90deg);
}

.modal-header-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-header-brand .modal-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.modal-header-brand h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.modal-header-brand p {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 0;
}

.modal-content .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  font-weight: 500;
}

.select-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
  pointer-events: none;
}

.input-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-text);
  z-index: 2;
}

.form-control.with-icon {
  padding-left: 2.5rem;
}

.input-group input {
  border-radius: 10px;
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-footer-info {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.modal-footer-info p {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .webmail-nav {
    margin-left: 0;
  }
  .modal-content {
    padding: 2rem 1.5rem;
    width: 90%;
  }
}

/* Fishing Boat Visitor Counter */
.visitor-counter-section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #ffffff, #eaf2f8);
  position: relative;
  overflow: hidden;
}

.fishing-counter-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.fishing-counter-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.fishing-counter-header p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.sea-track-container {
  position: relative;
  width: 100%;
  height: 160px; /* Increased for better visibility */
  margin: 1.5rem 0;
  border-radius: 15px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .visitor-counter-section {
    padding: 3rem 0;
  }

  .fishing-counter-header p {
    margin-bottom: 1.8rem;
  }

  .sea-track-container {
    height: 140px; /* Increased */
    margin: 1rem 0;
    border-radius: 12px;
  }

  .sea-line {
    height: 34px;
  }

  .wave {
    width: 220%;
  }

  .boat-icon {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .visitor-counter-section {
    padding: 2.2rem 0;
  }

  .fishing-counter-wrapper {
    padding: 0 0.75rem;
  }

  .fishing-counter-header h2 {
    font-size: 1.7rem;
  }

  .fishing-counter-header p {
    font-size: 0.95rem;
    margin-bottom: 1.3rem;
  }

  .sea-track-container {
    height: 130px; /* Increased for mobile */
    margin: 0.75rem 0;
    border-radius: 10px;
  }

  .sea-line {
    height: 30px;
  }

  .wave {
    width: 240%;
  }

  .boat-container {
    bottom: -15px;
  }

  .boat-icon {
    font-size: 2.5rem;
  }
}

.sea-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px; /* Reducido */
  background: transparent;
}

/* Sea waves animation */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-size: 50% 100%;
}

.wave1 {
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,50 C150,80 350,0 500,50 C650,100 850,20 1000,50 L1000,100 L0,100 Z" fill="%231b5b82" opacity="0.6"/></svg>') repeat-x;
  background-size: 50% 100%;
  animation: waveAnim 15s linear infinite;
  z-index: 2;
}

.wave2 {
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,50 C150,20 350,100 500,50 C650,0 850,80 1000,50 L1000,100 L0,100 Z" fill="%230b2b40" opacity="0.9"/></svg>') repeat-x;
  background-size: 50% 100%;
  animation: waveAnim 10s linear infinite reverse;
  z-index: 3;
}

.wave3 {
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,60 C200,90 300,30 500,60 C700,90 800,30 1000,60 L1000,100 L0,100 Z" fill="%231b9c85" opacity="0.4"/></svg>') repeat-x;
  background-size: 50% 100%;
  animation: waveAnim 20s linear infinite;
  z-index: 1;
}

@keyframes waveAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.boat-container {
  position: absolute;
  bottom: -18px; /* Hundido firmemente en el agua */
  left: 5%; /* Start point */
  transform: translateX(-50%);
  z-index: 2; /* Intercalado entre las olas */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Eliminada la transition en 'left' porque choca con requestAnimationFrame bloqueando el movimiento */
}

.boat-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.3));
  animation: boatRock 4s ease-in-out infinite; /* Balanceo suave */
}

@keyframes boatRock {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-2px); }
}

/* Peces saltando (Color Jurel) */
.jumping-fish {
  position: absolute;
  color: #7998a6; /* Tono plateado-azulado del jurel chileno */
  font-size: 1.2rem;
  z-index: 5; /* Por delante de las olas para que se vean claros */
  bottom: 0;
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}

.fish-1 { left: 20%; animation: fishJump 5s infinite 1s; }
.fish-2 { left: 50%; animation: fishJump 6.5s infinite 3s; }
.fish-3 { left: 80%; animation: fishJump 8s infinite 0.5s; }

@keyframes fishJump {
  0%, 75% { transform: translateY(15px) rotate(-60deg) scale(0.8); opacity: 0; }
  80% { transform: translateY(-35px) rotate(-20deg) scale(1); opacity: 1; }
  85% { transform: translateY(10px) rotate(40deg) scale(0.8); opacity: 0; }
  100% { transform: translateY(15px); opacity: 0; }
}

.number-bubble {
  background: var(--accent-color);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  margin-bottom: 0.5rem;
  position: relative;
  box-shadow: 0 5px 15px rgba(242, 166, 90, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBubble 4s ease-in-out infinite;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.number-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: var(--accent-color) transparent transparent transparent;
}

.counter-number {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pulse-dot-small {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulseWhite 1.5s infinite;
}

@keyframes pulseWhite {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.water-splash {
  position: absolute;
  bottom: -5px;
  left: -15px;
  width: 50px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  filter: blur(3px);
  animation: splashAnim 1s infinite alternate;
}

@keyframes splashAnim {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.fishing-counter-footer {
  margin-top: 1.5rem;
}

.fishing-counter-footer .counter-label {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 500px;
  background: rgba(11, 43, 64, 0.98);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 9999;
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  color: #fff;
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.cookie-header i {
  color: var(--accent-color);
  font-size: 1.4rem;
}

.cookie-banner p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cookie-banner a {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 600;
}

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

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  flex: 1;
}

.cookie-btn.primary {
  background-color: var(--accent-color);
  color: #fff;
}

.cookie-btn.secondary {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

.cookie-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
    padding: 1.5rem;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0b2b40; /* Solid Corporate Blue */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(15px);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10001;
}

.lightbox-close:hover {
  color: var(--accent-color);
  transform: scale(1.1) rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
}
