:root {
    --primary-color: #98EDD0;
    --text-color: #333;
    --mint-green: #C8F7E4;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

body.no-scroll {
    overflow: hidden;
}

header {
    background-color: white;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.social-links a {
    color: #3b5998;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a.instagram {
    color: #e1306c;
}

.social-links a:hover {
    color: #2d4373;
}

.social-links a[href*="instagram"] {
    color: #e1306c;
}

.social-links a[href*="instagram"]:hover {
    color: #c13584;
}

.social-links a[href*="whatsapp"] {
    color: #25d366;
}

.social-links a[href*="whatsapp"]:hover {
    color: #128c7e;
}

/* Logo */
.logo-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo-container img {
    width: 150px;
    height: auto;
    padding: 8px;
    background-color: #000;
}

/* Contact Info */
.contact-info {
    color: #4CAF50;
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.phone {
  color: #4CAF50;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.phone:hover {
  color: #6BC9AF;
}

.nav-container {
    width: 100%;
    background: white;
    padding: 0.5rem 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.nav-menu a {
    position: relative;
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
    padding-bottom: 4px; /* espacio para la línea */
}

/* Línea debajo de los enlaces */
.nav-menu a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3e8771; /* Color verde de la línea */
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease-in-out;
}

.nav-menu a:hover {
    color: #4CAF50;
}

/* Al pasar el mouse */
.nav-menu a:hover::after,
.nav-menu a.activo::after {
    transform: scaleX(1);
}


.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0.5rem 0;
    max-width: 1200px;   /* o el ancho que prefieras */
    margin: 0 auto;       /* centra el contenedor */
    width: 100%; 
}

.content-image img {
    width: 100%;
    height: auto;
}

.content-text {
    background: var(--mint-green);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.welcome-section {
    text-align: center;
    padding: 0rem 2rem;
}

.welcome-section h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.welcome-section p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    text-transform: uppercase;
    font-weight: 500;
}

footer {
    background: var(--primary-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-social {
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.9rem;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('../images/bg_amarme.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.contact {
    font-size: 1.5em;
}

.iframe-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    height: 60vh;
    margin: 0 auto;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.ads-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.ad-space {
    background: #f5f5f5;
    padding: 20px;
    margin: 10px 0;
    border-radius: 5px;
}

.gallery-container {
    /*display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding: 0 1rem;*/
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /*gap: 1rem; */
    margin: 0 auto;
    padding: 0;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

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

/* Modal para vista a pantalla completa */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    cursor: pointer;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.cta-section {
    text-align: center;
    padding: 2rem 0;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 3rem;
}

/* Estilos para la página Nosotros */
.hero-about {
    position: relative;
    height: 300px;
    background-image: url('../images/bg_seccion.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}

.hero-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-about h1 {
    position: relative;
    font-size: 2.5rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: 'Playfair Display', serif;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    background-color: var(--mint-green);
    padding: 3rem;
    border-radius: 8px;
}

.about-text h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.mission-section,
.vision-section,
.values-section {
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.values-section ul {
    list-style: none;
    padding: 0;
}

.values-section li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-color);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-about {
        height: 200px;
    }

    .hero-about h1 {
        font-size: 2rem;
    }

    .about-text {
        padding: 2rem;
    }
}

.hero-services {
    position: relative;
    height: 300px;
    background-image: url('../images/bg_seccion.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 4rem;
}

.hero-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-services h1 {
    position: relative;
    font-size: 2.5rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.services-list {
    background-color: var(--mint-green);
    padding: 3rem;
    border-radius: 8px;
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.services-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-color);
}

.services-list li:last-child {
    margin-top: 2rem;
    font-style: italic;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-services {
        height: 250px;
    }

    .hero-services h1 {
        font-size: 2rem;
    }

    .services-list {
        padding: 2rem;
    }

    .services-list li {
        font-size: 0.9rem;
    }
}

.contacto {
    padding: 3rem 1rem;
  }
  
  .contenedor {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  
  .columna {
    flex: 1 1 45%;
  }
  
  h2 {
    color: #3e8771;
    font-weight: 400;
    font-size: 1.8rem;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  input,
  textarea {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
    font-size: 1rem;
    width: 100%;
    outline: none;
  }
  
  .adjunto {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #3e8771;
  }
  
  button[type="submit"] {
    background: #6be1c2;
    border: none;
    color: #000;
    padding: 0.75rem;
    font-weight: bold;
    letter-spacing: 3px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
  }
  
  button:hover {
    background: #5cd0b1;
  }

  .nota-legal {
    font-size: 0.75rem;
    color: #666;
    margin-top: 1rem;
  }
  
  .nota-legal a {
    color: #3e8771;
    text-decoration: none;
  }
  
  .datos h3 {
    color: #3e8771;
    font-weight: 400;
  }
  
  .datos p a {
    color: #3e8771;
    text-decoration: none;
  }
  
  .whatsapp {
    display: inline-block;
    background: #2f3e47;
    color: #fff;
    padding: 1rem 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  @media (max-width: 768px) {
    .contenedor {
      flex-direction: column;
    }
  }

  .mapa {
    width: 100%;
    height: 400px;
    margin-top: 2rem;
  }
  
  .mapa iframe {
    border: none;
    width: 100%;
    height: 100%;
  }

  .privacy-section {
    background: #fff;
    padding: 3rem 1.5rem;
}

.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

.privacy-container h2 {
    text-align: center;
    font-size: 2rem;
    color: #356e55;
    margin-bottom: 2rem;
}

.privacy-container p {
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: 0.95rem;
}

.hero-privacy {
    position: relative;
    height: 300px;
    background-image: url('../images/bg_seccion.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
  }
  
  .hero-privacy-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  
  .hero-privacy-content {
    position: relative;
    z-index: 2;
  }
  
  .animate-title {
    font-size: 2.5rem;
    font-weight: 600;
    animation: fadeInUp 1.2s ease-out;
    font-family: 'Playfair Display', serif;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .download-pdf {
    text-align: center;
    margin-top: 2rem;
  }
  
  .download-pdf a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
  }
  
  .download-pdf a:hover {
    background-color: #7ed8be;
  }

/* Menú hamburguesa (oculto por defecto) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Animación del menú hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


  /* Responsive para contenido principal */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .content-text {
        padding: 2rem;
    }

    .content-text h1 {
        font-size: 1.5rem;
    }

    .welcome-section {
        padding: 1rem;
    }

    .welcome-section h2 {
        font-size: 1.5rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
  
/* Carousel container */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

/* Hide the images by default */
.carousel-slide img {
    display: none;
    width: 100%;
    height: 600px; /* Fixed height for all slides */
    object-fit: cover; /* Crop images to fit */
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Dots for mobile */
.dot-container {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

/* Thumbnails for desktop */
.thumbnail-container {
    display: none; /* Hidden by default */
    justify-content: center;
    padding: 10px 0;
}

.thumbnail-img {
    cursor: pointer;
    height: 80px;
    width: auto;
    margin: 0 5px;
    opacity: 0.6;
    transition: opacity .2s ease-in-out;
}

.thumbnail-img.active, .thumbnail-img:hover {
    opacity: 1;
}

/* Responsive styles */
@media (min-width: 769px) {
    .dot-container { display: none; } /* Hide dots on desktop */
    .thumbnail-container { display: flex; } /* Show thumbnails on desktop */
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    .logo-container {
        order: -1;
        flex-basis: 100%;
        margin-bottom: 1rem;
    }
    .social-links {
        order: 0;
        flex-basis: 50%;
        justify-content: flex-start;
    }
    .contact-info {
        order: 1;
        flex-basis: 50%;
        justify-content: flex-end;
    }
    .menu-toggle { 
        display: flex; 
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    .nav-container { 
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        transition: left 0.3s ease-in-out;
        z-index: 1000;
    }
    .nav-container.active {
        left: 0;
    }
    .nav-menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}