@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    background-image: url('Tratfondo.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

html, body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #13797c;
    padding: 15px 20px;
    color: white;
}

header, nav {
    overflow: visible;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 50px;
}

.header-text h1 {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.header-text p {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.2s ease-in-out;
}

nav ul li a:hover {
    transform: translateY(-5px);
}

.nav-social-icons {
    display: flex;
    gap: 10px;
}

.nav-social-icons a img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.nav-social-icons a img:hover {
    transform: scale(1.1);
}


#whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #12d459;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 14px;
    z-index: 1000;
}

#whatsapp-btn img {
    width: 30px;
    height: 30px;
}

#whatsapp-number {
    display: none;
    transition: opacity 0.3s ease-in-out;
}

#whatsapp-btn:hover #whatsapp-number {
    display: inline;
    opacity: 1;
}

footer {
    margin-top: 80px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: left;
    padding: 10px;
    font-weight: bold;
    background-color: #13797c;
    color: white;
    position: relative;
}

.footer-left {
    display: flex;
    gap: 40px;
    text-align: left;
}

.footer-left div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo {
    flex-grow: 1;
    text-align: center;
}

.footer-logo img {
    height: 60px;
}

.footer-logo p {
    font-size: 14px;
    font-weight: bold;
}

.footer-logo h1 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.about-us a {
    display: block;
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin-top: 5px;
}

.about-us a:hover {
    text-decoration: underline;
}

.footer-copyright {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 14px;
    opacity: 0.8;
}

#contacto {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    max-width: 90%;
    margin: 40px auto;
}
.contacto-wrapper {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.contacto-container {
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    justify-content: space-between;
    color: #ffffff;
    padding: 20px;
    border-radius: 20px;
    max-width: 500px;
    width: 120%;
    text-align: center;
    gap: 20px;
    background: rgb(255, 255, 255);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.contacto-container h2 {
    font-size: 32px;
    margin-bottom: 20px;
    background: #13797c;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 10px;
}

.contacto-botones {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.contacto-imagen {
    width: 51%; 
    object-fit: cover;
    border-radius: 15px;
}


.btn-tratamientos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #13797c;
    color: rgb(0, 0, 0);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 10px;
    transform: scale(1.1);
    width: 300px;
    height: 100px;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    
.btn-tratamientos img {
    max-width: 100%; 
    max-height: 100%; 
    width: auto; 
    height: auto; 
    object-fit: contain; 
}

.btn-tratamientos:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    background-color: #0f5f5c;
}

.btn-whatsapp, .btn-instagram {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-instagram {
    background-color: #E1306C;
    color: white;
}

.btn-whatsapp img {
    width: 35px;
    height: 40px;
}

.btn-instagram img {
    width: 40px;
    height: 40px;
}

.btn-whatsapp:hover,
.btn-instagram:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.contacto-container p {
    color: rgb(19, 48, 39);
}

#ubicacion {
    margin-bottom: 50px;
}
.ubicacion-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;  
    max-width: 90%;
    margin: auto;
    position: relative;
    padding: 20px;
    background: rgb(255, 255, 255); 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.info {
    max-width: 50%;
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    padding: 20px;
}

.info h2 {
    font-size: 28px; 
    color: rgb(19, 48, 39);
    margin-bottom: 10px;
}

.info p {
    font-size: 20px;
    font-weight: bold;
    color: rgb(19, 48, 39);
    margin-bottom: 10px;
}

.mapa {
    border: 5px solid #13797c;
    border-radius: 15px;
    padding: 5px;
}

.mapa iframe {
    width: 600px;
    height: 400px;
    border-radius: 15px;
    border: none;
    display: block;
    margin: auto;
}

.nav-links a {
    margin: 10px 0;
    text-decoration: none;  
    color: white;              
    font-family: 'Poppins', sans-serif; 
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: #43E0DC;
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s ease;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #13797c;
    position: absolute;
    top: 70px;
    right: 20px;
    border-radius: 10px;
    padding: 10px;
}

.nav-links.active {
    display: flex;
}

.hamburger {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media screen and (max-width: 768px) {

    .nav-desktop {
        display: none !important;
      }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: #008b8b;
        padding: 10px;
        border-radius: 10px;
        z-index: 1000;
      }
    
      .nav-links a {
        margin: 10px 0;
      }
    
      .hamburger {
        display: block;
      }
    
      .nav-links.active {
        display: flex;
      }

      .hamburger {
        display: flex;
      }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-container {
        flex-direction: column;
        align-items: center;
    }

    .header-text h1 {
        font-size: 1.6rem;
    }

    .header-text p {
        font-size: 1rem;
    }

    nav {
        width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 8px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        max-height: 700px;
        object-fit: cover;
    }

    .carousel-container {
        max-width: 1200px;
        margin: auto;
    }

    #ubicacion {
        margin: 80px 20px;
    }
    
    .ubicacion-container {
        flex-wrap: wrap;
        padding: 40px 20px;
    }
    
    .info {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .mapa iframe {
        width: 100%;
        max-width: 600px;
        height: 400px;
    }

    nav {
        flex: 1;
    }
    
    .header-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 20px;
    }

    .seccion-tratamientos,
    .reseñas,
    .mapa,
    footer {
        padding: 15px;
    }

    .seccion-tratamientos img,
    .reseñas img {
        max-width: 100%;
        height: auto;
    }

    .nav-social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .boton-wsp {
        font-size: 14px;
        padding: 10px 20px;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }

    iframe {
        width: 100%;
        height: 250px;
    }

    .ubicacion-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }

    .mapa {
        display: flex;
        flex-direction: column;
    }

    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background-color: #006d6d;
        padding: 20px;
        border-radius: 10px;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      }
    
      .nav-links.active {
        display: flex;
      }
    
      .logo-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
      header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        text-align: left;
    }
    
      .footer-logo p {
        font-size: 14px;
        font-weight: bold;
        margin-top: 5px;
        color: white;
    }
    
    footer p.footer-copyright {
        text-align: center;
        margin-top: 20px;
        font-size: 12px;
        color: white;
    }
    
    .hamburger {
        display: none;
        font-size: 30px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #13797c;
        position: absolute;
        top: 70px;
        right: 20px;
        border-radius: 10px;
        padding: 10px;
        z-index: 999;
    }
    
    .nav-links a {
        color: white;
        text-decoration: none;
        padding: 10px 15px;
        font-weight: bold;
    }
    
    .nav-links a:hover {
        background-color: white;
        color: #13797c;
        border-radius: 5px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    @media (max-width: 768px) {
        nav ul {
            display: none;
        }
    
        .hamburger {
            display: block;
        }
    
        .logo-container {
            flex-direction: column;
            align-items: flex-start;
        }
    
        .header-text h1 {
            font-size: 20px;
        }
    
        .header-text p {
            font-size: 12px;
        }
    
        .ubicacion-container {
            flex-direction: column;
        }
    
        .info, .mapa iframe {
            max-width: 100%;
        }
    
        .whatsapp-container {
            flex-direction: column;
            text-align: center;
        }

        .logo-container {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 10px;
        }
        
        .logo-container img {
            height: 50px; 
            object-fit: contain;
        }

        
    }
    .nav-links {
        top: 70px; 
        right: 10px;
    }
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
    }
    .contacto-imagen {
        display: none;
    } 
          footer {
    padding: 10px 0; 
    margin: 0; 
    width: 100vw; 
    box-sizing: border-box;
  }   
}   
