.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
nav ul {
    display: flex;
    justify-content: space-evenly; /* reparte por todo el menú */
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

nav ul li {
    text-align: center;
}

nav ul li a {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px 15px;
}

.menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: #21A39B;
  font-weight: 600;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.logo img{
  height: 90px;
  width: auto;
  display: block;
}

html{
  scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 70px;
      right: 0;
      background: white;
      width: 200px;
      padding: 15px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .menu.active {
      display: flex;
    }

    .hamburger {
      display: block;
    }
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: linear-gradient(135deg, #feffff, #d7f1ee);

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  
}

body {
  background: #FFFFFF;
  color: #1F1F1F;
  line-height: 2.0;
}

/* HERO */
.hero{
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

#slides{
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
}

#slides a{
    min-width: 100%;
    height: 100%;
    display: block;
}

#slides img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 768px){
    .hero{
        height: 260px;
    }
}

@media (max-width: 480px){
    .hero{
        height: 220px;
    }
}

/*NOSOTROS*/
.nosotros{
    text-align: center;
    padding: 70px 20px;
    background: url("Img/Fondo.jpeg") center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

/* overlay del fondo */
.nosotros::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: 1;
}

/* todo el contenido arriba del overlay */
.nosotros > *{
    position: relative;
    z-index: 2;
}

/* TITULO */
.nosotros-titulo{
    color: #2D6EA3;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;

    animation: aparecer 1s ease forwards;
}

/* CARD PRINCIPAL */
.nosotros-card{
    max-width: 850px;
    margin: auto;

    background: rgba(33, 163, 155, 0.12);
    border: 1px solid rgba(33, 163, 155, 0.25);
    backdrop-filter: blur(10px);

    border-radius: 20px;
    padding: 30px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.1);

    animation: aparecer 1s ease forwards;
    animation-delay: 0.3s;
}

/* TEXTO */
.nosotros-card p{
    font-size: 22px;
    line-height: 1.8;
    color: #2c3e50;
}

/* LOGO FLOTANTE (AFUERA) */
.nosotros-logo{
    width: 180px;
    margin-top: 30px;

    animation: flotar 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.nosotros-logo:hover{
    transform: scale(1.1);
}

/* ANIMACIONES*/
@keyframes aparecer{
    from{
        opacity: 0;
        transform: translateY(25px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flotar{
    0%, 100%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-12px);
    }
}

/* RESPONSIVE */
@media (max-width: 768px){

    .nosotros{
        padding: 40px 15px;
    }

    .nosotros-titulo{
        font-size: 24px;
    }

    .nosotros-card{
        padding: 20px;
    }

    .nosotros-card p{
        font-size: 18px;
    }

    .nosotros-logo{
        width: 130px;
        margin-top: 20px;
    }
}
/* SECCIONES */
.section{
    position: relative;
    background-image: url("Img/Linktree\ \(1920\ x\ 750\ px\)\ \(1\).png");
    background-size: cover;
    background-position: center;
    padding: 40px;
    text-align: center;
    padding: 40px;
    text-align: center;
    font-size: 20px;
}

.section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
}

.section > * {
    position: relative;
    z-index: 1;
}
.section {
  padding: 70px 20px;
  font-size: 20px;
  text-align: center;
}

.section h2 {
  color: #2D6EA3;
  font-size: 30px;
  margin-bottom: 15px;
  text-align: center;
}

/* SERVICIOS */
.servicios {
    position: relative;
    background-image: url("Img/Fondo.jpeg");
    background-size: cover;
    background-position: center;
    padding: 40px;
    text-align: center;
}

.servicios > * {
    position: relative;
    z-index: 1;
}
.card-front img {
    width: 100%;
    height: 160px;
    object-fit: cover; 
    display: block;
}

.servicios-titulo {
    color: #2D6EA3;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.card {
    width: 250px;
    height: 320px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* FRONT Y BACK */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

/* FRONT */
.card-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.card-front h3 {
    margin: 10px 0;
}

/* BACK */
.card-back {
    background: #21A39B;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
}

.card-back a {
    margin-top: 10px;
    background: white;
    color: #21A39B;
    padding: 8px;
    text-decoration: none;
    border-radius: 10px;
}
@media (max-width: 900px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .card {
        width: 90%;
    }
}

/* BENEFICIOS */
.beneficios {
    position: relative;
    background-image: url("Img/Fondo.jpeg");
    background-size: cover;
    background-position: center;
    padding: 40px;
    text-align: center;
}

.beneficios > * {
    position: relative;
    z-index: 1;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    justify-items: center;
}

.benefit-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.benefit-card {
    width: 100%;
    max-width: 250px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid #2D6EA3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.beneficios-titulo {
    color: #2D6EA3;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .benefits-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .benefits-container {
        grid-template-columns: 1fr;
    }
}
/* UBICACION */
* {
    box-sizing: border-box;
}

.ubicaciones-titulo {
    color: #2D6EA3;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.ubicaciones-titulos {
    color: #21A39B;
    text-align: center;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.ubicacion-hora {
    color: #142f44;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ubicaciones-dire {
    color: rgb(7, 97, 91);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
}

.ubicacion-card {
    margin-bottom: 60px;
    padding: 10px;
}

/* CONTENEDOR FOTOS + MAPA */
.ubicacion-contenido {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
    justify-content: center;
    margin: 25px 0;
}

/* FOTOS */
.carrusel {
    flex: 3;
    min-width: 0;
}

.slides {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.slides img {
    width: 48%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

/* MAPA */
.mapa {
    flex: 1;
    min-width: 0;
}

.mapa iframe {
    width: 100%;
    height: 100px;
    min-height: 300px;
    border: none;
    border-radius: 15px;
}

/* TARJETAS */
.horario-card,
.nombre-card {
    margin: 10px 0;
    padding: 12px 16px;
    background: rgba(33, 163, 154, 0.08);
    border: 1px solid rgba(33, 163, 154, 0.25);
    border-radius: 15px;
    color: #21A39B;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

/* BOTÓN */
.btn-llegar {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #21A39B;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s ease;
}

.btn-llegar:hover {
    background: #178f84;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .ubicacion-contenido {
        flex-direction: column;
    }

    .carrusel,
    .mapa {
        width: 100%;
    }

    .slides {
        flex-direction: column;
        align-items: center;
    }

    .slides img {
        width: 100%;
        height: 220px;
    }

    .mapa iframe {
        height: 250px;
    }

    .btn-llegar {
        width: 100%;
        text-align: center;
    }
}

/* FOOTER */
.contacto {
    position: relative;
    background-image: url("Img/Fondo.jpeg");
    background-size: cover;
    background-position: center;
    padding: 40px;
    text-align: center;
}

.contacto > * {
    position: relative;
    z-index: 1;
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a img {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.2);
}
.contacto-titulo {
    color: #2D6EA3;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
}
footer {
  background: #21A39B;
  color: white;
  text-align: center;
  justify-content: center;
  padding: 30px;
  font-size: 14px;
  display: grid;
  gap: 15px;
}
.footer-bootom{
  text-align: center;
  padding-top: 15px;
  font-size: 14px;
}

@media (max-width: 768px) {

    body {
        padding: 0;
        margin: 0;
    }

    .section {
        padding: 15px;
    }

    h1, h2, h3 {
        text-align: center;
    }

}

@media (max-width: 768px) {

    .slides img {
        width: 280px;   /* antes 380-420 */
        height: 170px;
    }

    .carousel {
        overflow-x: auto;
    }

}
