/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --nav-bg: #2c3e50;
  --accent: #e42712;
  --text-light: #f6f6f6;
  --accent-hover: #ff7f7f;
}

/* RESET GLOBAL */
* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

/* FIX SCROLLBAR */
body { 
    width: 100%;
    overflow-x: hidden; 
    font-family: 'Montserrat', Arial, sans-serif; 
    color: var(--nav-bg); 
    background: #fafafa; 
    margin: 0;
}

/* ===== HEADER ===== */
header {
  background: var(--nav-bg);
  color: white;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; 
  position: relative; 
  z-index: 10;
  width: 100%;
}

.brand { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.logo-link { display: inline-flex; align-items: center; height: 100%; }
.logo-img { height: 100%; width: auto; cursor: pointer; }

/* ===== NAV ===== */
nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 3vw; 
}

nav a {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1;
  transition: color 0.25s ease;
  white-space: nowrap;
}

nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  border-radius: 6px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  z-index: -1;
}

nav a:hover { color: var(--nav-bg); }
nav a:hover::before { opacity: 1; transform: scale(1); }

/* Responsive Header */
@media (max-width: 900px) {
  header { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
  nav { flex-wrap: wrap; gap: 15px; width: 100%; }
  .logo-img { height: 50px; }
  .salt-fields { min-height: 80vh !important; } 
}

/* ===== SECTIONS GENERAL ===== */
.section { 
    position:relative; 
    overflow:hidden; 
    padding:60px 24px; 
    text-align:center; 
    min-height: 90vh;
    width: 100%;
}
.section h2 { font-size:2em; margin-bottom:24px; }

.btn-primary { 
    display:inline-block; padding:14px 32px; text-align:center; background:var(--accent); color:#fff; 
    border-radius:6px; text-decoration:none; font-weight:bold; transition: background .2s, transform .2s; 
}
.btn-primary:hover { background:var(--accent-hover); transform: translateY(-2px); }

/* Hero */
.salt-fields { 
    background:url('images/noncopywrite/gillian-rd-i-RaduUTZQ4-unsplash.jpg') center/cover no-repeat; 
    min-height: calc(100vh - 80px); 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    width: 100%;
}
.salt-fields .overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(44,62,80,0.65); }
.salt-fields .hero-content { 
    position:relative; 
    color:#fff; 
    max-width:800px;
    width: 90%; 
    padding: 20px;
}

.salt-fields h1 { 
    font-size: 3.5em; 
    margin: 0 auto 15px auto; 
    padding-bottom: 15px; 
    border-bottom: 4px solid white; 
    width: fit-content; 
    max-width: 100%;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8); 
    font-weight: 700; 
    line-height: 1.2;
}
.hero-subtitle { font-size: 1.8em; margin-bottom: 25px; font-weight: 400; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); }
.hero-description { font-size: 1.2em; margin-bottom: 24px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

@media (max-width:768px) { 
    .salt-fields h1 { font-size: 2.2em; } 
    .hero-subtitle { font-size: 1.3em; } 
}

/* ====== Producto ====== */
.white-bg { background: #fff; }

.products-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; 
  width: 95%; 
  max-width: 1600px; 
  margin: 0 auto;
}

.product-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  overflow: hidden;
  flex: 1 1 280px; 
  min-width: 260px; 
  max-width: none; 
  text-align: left;
  display: flex;
  flex-direction: column;
}

.product-img img { width: 100%; height: auto; display: block; margin: 0; padding: 20px; }
.product-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { margin-bottom: 12px; font-size: 1.3em; }
.product-info p { margin-bottom: 12px; font-size: 0.95em; }

.info-table {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 0;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.info-table li {
  margin: 0;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: right;
  font-size: 0.9em;
  line-height: 1.4;
}
.info-table li:last-child { border-bottom: none; }
.info-table li strong { font-weight: 700; color: #333; flex: 0 0 40%; text-align: left; margin-right: 10px; }

/* Separador y Galería */
.product-separator { background: url('images/noncopywrite/pexels-matt-arellano-1239978561-23022549.jpg') center/cover no-repeat; height: 450px; margin: 0; width: 100%; }
#galeria { min-height: auto; }
.gallery-container { position: relative; overflow: hidden; width: 100%; }
.gallery-grid { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; scroll-snap-type: x mandatory; }
.gallery-grid::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 calc((100% - 5 * 12px) / 6); scroll-snap-align: start; }
.gallery-item img{ width:100%; height:auto; border-radius:6px; cursor:pointer; transition:transform .2s; }
.gallery-item img:hover{ transform:scale(1.05); }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; font-size: 2em; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.gallery-arrow.prev { left: 8px; } .gallery-arrow.next { right: 8px; }

/* Lightbox */
.lightbox{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.8);display:flex;align-items:center;justify-content:center;z-index:1000;}
.lightbox.hidden{display:none;}
.lightbox-img{max-width:90%;max-height:80%;border-radius:6px;}
.lightbox-close,.lightbox-nav{position:absolute;background:none;border:none;color:#fff;font-size:2.5em;cursor:pointer;opacity:.8;transition:opacity .2s;}
.lightbox-close{top:20px;right:30px;}
.lightbox-nav:hover,.lightbox-close:hover{opacity:1;}
.lightbox-nav.prev{left:30px;} .lightbox-nav.next{right:30px;}

/* BENEFICIOS */
.ocean-foam { 
    background: url('images/noncopywrite/pexels-sean-terzi-281455229-13339991.jpg') center/cover no-repeat; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefits-card {
    background: #ffffff;
    color: var(--nav-bg);
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: left;
}
.benefits-card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2em;
    color: var(--nav-bg);
}
.ocean-foam .features { list-style: none; padding-left: 0; margin: 0; }
.ocean-foam .features li { margin: 15px 0; font-size: 1.1em; line-height: 1.5; display: flex; align-items: flex-start; }
.ocean-foam .features li::before { content: "✔"; color: var(--accent); font-weight: bold; margin-right: 12px; font-size: 1.2em; line-height: 1.2; }

/* FIX ESPACIADO TEXTO */
.ocean-foam .features li strong { 
    color: var(--nav-bg); 
    font-weight: 700; 
    margin-right: 6px; /* Espacio seguro para que no se pegue al texto */
}

/* SEPARADOR DE SECCIONES (NUEVO) */
.section-divider {
    height: 120px;
    background-color: white; /* Azul marino marca */
    position: relative;
    width: 100%;
}

/* ACERCA DE */
.coastal-rocks { 
    background:url('images/noncopywrite/pexels-neslihan-ercan-58134101-8120898.jpg') center/cover no-repeat; 
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-card {
    background: #ffffff;
    color: var(--nav-bg);
    padding: 50px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}
.about-card h2 { margin-top: 0; color: var(--nav-bg); }
.about-card p { font-size: 1.2em; line-height: 1.6; color: #555; }

/* OTROS */
.contact { background:#fff; width: 100%; } .contact p a { color: var(--nav-bg); font-weight:bold; }
footer { background:var(--nav-bg); color:white; padding:16px; font-size:0.9em; width: 100%; }

/* Unificar anchos */
.salt-fields .hero-content, .product-info, .coastal-rocks p { max-width: none; }