/* Reset básico para evitar márgenes blancos */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* Tipografías */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
    color: #222;
}

h2 {
    color: #00164a !important;
}

p, li, a, button, input, textarea {
    font-family: 'Poppins', sans-serif;
}

ul {
  margin-left: 0;
  padding-left: 0;
  list-style-position: inside; /* Opcional: hace que la viñeta quede dentro del bloque */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #00164a;
    color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    box-sizing: border-box;
    min-height: 80px;
}

#logo img {
    height: 100px;
    width: auto;
}

nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

#menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 400px; /* Ajusta la altura según tu diseño */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    max-width: 90%;
}

.slider-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-buttons button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slider-buttons button.active {
    background: white;
}

.slider-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.slider-link .slider {
    cursor: pointer;
}
/* Secciones */
.section {
    padding: 65px 45px;
}

.section-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.section-content .text {
    flex: 1;
    text-align: justify;
    font-family: 'Montserrat', sans-serif;
}

.section-content .image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.section-content .image img {
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Secciones con parallax */
.parallax {
  position: relative;
  background: url('img/par2.jpg') no-repeat center / cover;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.parallax::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,25,25,0.6);
}

.parallax-content {
  position: relative;
  z-index: 2;
  padding: 70px;
}

.parallax h2 {
  color: #fff !important;
}

/* iOS fix: en iOS no hay background-attachment:fixed */
@supports (-webkit-touch-callout: none) {
  .parallax {
    background-attachment: scroll;
  }
}


/* Cruzar columnas solo en escritorio */
@media (min-width: 769px) {
    .section.alt .section-content {
        flex-direction: row-reverse;
    }
}

/* Formulario */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
}

form button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

/* ---- SECCIONES ---- */
.seccion {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

.seccion h2 {
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #00164a;
}

/* ---- GRID ---- */
.galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* por defecto 2 columnas */
  gap: 10px;
}

.galeria img {
  width: 100%;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.galeria img:hover {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox .lb-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: 0;
  font-size: 28px; color: #fff;
  cursor: pointer;
}
.lightbox .lb-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.lightbox .lb-nav button {
  pointer-events: auto;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  margin: 0 20px;
}
.galeria img { cursor: zoom-in; }


@media (min-width: 768px) {
  .galeria {
    grid-template-columns: repeat(4, 1fr); /* en PC 4 columnas */
  }
}

/* ---- CARRUSEL ---- */
/* --- Carrusel A&S (aislado) --- */
.as-carousel {
  position: relative;
  max-width: 960px;       /* ajusta a gusto */
  margin: 0 auto;
  user-select: none;
}

.as-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

.as-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 10px; /* espacio entre imágenes */
}

.as-slide {
  flex: 0 0 100%; /* móvil: 1 por vista */
}

@media (min-width: 768px) {
  .as-slide {
    flex: 0 0 calc(50% - 5px); /* compensar el gap (10px/2) */
  }
}

.as-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.as-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.as-btn:hover { background: rgba(0,0,0,0.75); transform: translateY(-50%) scale(1.05); }
.as-left  { left: 10px; }
.as-right { right: 10px; }

@media (max-width: 640px) {
  .as-btn { width: 36px; height: 36px; line-height: 36px; font-size: 16px; }
  .as-carousel { max-width: 100%; }
}
    
/* WhatsApp */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
}

.whatsapp-btn img {
    width: 28px;
    height: 28px;
}

.whatsapp-btn span {
    white-space: nowrap;
}

/* Footer */
footer {
    background: #00164a;
    color: white;
    padding-top: 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 50px;
}

.footer-info {
    flex: 1;
}

.footer-info p {
    margin: 5px 0;
}

.socials img {
    width: 30px;
    margin-right: 10px;
}

.footer-map {
    flex: 1;
}

.footer-bottom {
    background: #000e2a;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.footer-bottom a {
    color: #ffcc00;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #00164a;
        flex-direction: column;
        width: 220px;
        display: none;
        padding: 15px;
    }
    nav.show {
        display: flex;
    }
    #menu-toggle {
        display: block;
    }
    .slider {
        height: 40vh;
    }
    .slide-text {
        font-size: 1.1rem;
        padding: 15px;
    }
    #logo img {
        height: 80px;
    }
    .section-content {
        flex-direction: column;
        text-align: justify;
    }
    .footer-top {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .whatsapp-fixed {
        bottom: 70px; /* lo sube para no tapar el footer */
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .whatsapp-fixed img {
        width: 24px;
        height: 24px;
    }
}


