@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    /* Blanco */
    --color30: #FFFFFF;
    /* Gris suave */
    --color34: #e5e6e7;
    /* Negro comun */
    --color36: #000000;
    --color60: #0d1b2a;
    --color62: #d4af37;
    --color64: #f3e5ab;
    --color66: #122037;
    --color68: #1d3456;
    --color70: #a6e3e9;
    --color72: #48cae4;
    --color74: #5f8a9b;
}

* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
  /* font-family: "Montserrat", Arial, Helvetica, sans-serif; */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* html {
    scroll-behavior: smooth;
} */

.navbar {
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px;
  width: 100%;
  height: 100px;
  background: var(--color60);
  transition: 0.5s;
  z-index: 100;
}

/* Muy importante para el efecto de animación */
nav a span { display: inline-block; }

nav.abajo {
  background-color: rgb(13, 27, 42, 0.9);
  box-shadow: 0 0 20px var(--color72);
  transition: 0.5s;
}

#check {
  display: none;
}

.checkbtn {
  font-size: 34px;
  color: var(--color62);
  /* esto hace que el icono quede a la derecha */
  float: right;
  
  cursor: pointer;
  display: none;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo a img {
  height: 50px;
  width: 50px;
  border-radius: 16%;
  animation: animation-logo 10s ease-in-out infinite;
}

@keyframes animation-logo {
  0% {
    transform: rotateY(0);
  }

  20% {
    transform: rotateY(180deg);
  }

  60%,
  100% {
    transform: rotateY(0);
  }
}

.logo {
  gap: 10px;
}

.logo a img {
  width: 50px;
  height: 50px;
}

.names {
  display: flex;
  flex-direction: column;
}

.main-name {
  color: var(--color62);
  font-weight: bold;
  font-size: 1.6rem;
  transition: 0.5s;
}

.main-name:hover {
  color: var(--color64);
  text-shadow: 1px 1px var(--color30);
  transition: 0.5s;
}

.main-namesito {
  margin-top: 4px;
  color: var(--color64);
  font-size: 0.88rem;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav ul li {
  padding: 6px;
}

nav ul li a {
  position: relative;
  display: inline-block;
  padding: 6px;
  color: var(--color30);
  font-weight: 600;
  font-size: 1rem;
}

nav.abajo ul li a {
  color: var(--color30);
}

nav.abajo ul li a:hover {
  color: var(--color30);
}

li a:after {
  content: "";
  position: absolute;
  background-color: var(--color62);
  height: 4px;
  width: 0;
  left: 0;
  bottom: -10px;
  transition: 0.5s;
}

li a:hover:after {
  width: 100%;
}

li a:focus {
  color: var(--color20);
}

.nav-redes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.nav-redes a {
  display: block;
  width: clamp(20px, 7vw, 30px);
  height: clamp(20px, 7vw, 30px);
  transition: transform 0.3s;
}

.nav-redes a:hover {
  transform: scale(0.9);
}

.nav-redes img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav.abajo .checkbtn {
  color: var(--color30);
}



/********************************************/
/* ****     Zona central: zona1        **** */
/* **************************************** */
.zona1 {
    /* Esto agregue por el tema imagen de fondo */
    background-image: url(../img/fondo-servicios.jpg);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;


    /* Esto es lo que estaba */
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
    margin-top: 86px;
    /* añade margen para compensar el navbar fijo */
    display: flex;
    z-index: 0;
}

.container-zona1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    max-width: 80%;
    min-height: 70%;
    margin: 0 auto;
}

.imagen-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: opacity 1s ease-in-out;
}

.contenido {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 480px;
}

.h1-zona1 h1 {
    font-size: clamp(2.5rem, 5vw, 6rem);
    text-align: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-style: normal;
    margin-bottom: 30px;
    color: var(--color62);
    
    text-shadow: 2px 2px 0px var(--color64);
}

.p-zona1 h2 {
    max-width: 90%;
    font-size: clamp(1.1rem, 2vw, 2rem);
    font-weight: 400;
    padding-bottom: 20px;
    margin: 0 auto;
    text-align: center;
    color: var(--color30);

    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), -1px -1px 8px rgba(0, 0, 0, 0.8), 0px 0px 15px rgba(0, 0, 0, 1);
}

.p-zona1 span {
    color: var(--color72);
    text-shadow: 1px 1px 0px var(--color36);
}

.zona1-btn {
    margin-top: 30px;
}

.zona1-btn .btn-zona1 {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: var(--color60);
    background: linear-gradient(90deg, var(--color62), var(--color64), var(--color62));
    border-color: var(--color20);
    transition: 0.5s;
}

.zona1-btn .btn-zona1:hover {
    background: linear-gradient(90deg, var(--color64), var(--color62), var(--color64));
}

.flecha-abajo {
    margin-top: 50px;
    font-size: clamp(1.875rem, 3vw + 1.25rem, 3.125rem);
    border-radius: 50px;

    transform: translateX(50%);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
    }
}

.flecha-abajo a {
    color: var(--color74);
}



/**********************************************/
/* *********** Card de los servicios ******** */
/**********************************************/
#container-servicios {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
    max-width: 100%;
    height: auto;
    /* background: linear-gradient(135deg, #1d3456 0%, #0d1b2a 100%); */
    /* background: linear-gradient(135deg, #48cae4 0%, #a6e3e9 100%); */
    background: linear-gradient(135deg, #1d3456 0%, #122037 100%);
    /* background: linear-gradient(135deg, #FFFFFF 0%, #e5e6e7 100%); */

    position: relative;
}

#container-servicios h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: clamp(2.4rem, 3vw, 3rem);
    color: var(--color62);
}

.card-servicios {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  align-items: stretch;
}

.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background-color: #f3f4f4;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7),
              0 0 18px rgba(255, 255, 255, 0.35),
              0 10px 24px rgba(250, 250, 250, 0.28);
  transform: translateY(-4px);
}

.card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-img img {
  display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-img img {
  transform: scale(1.04);
}

.card-title {
  padding: 14px 20px 6px;
}

.card-title h3 {
  font-size: 1.35rem;
    margin: 0;
  color: var(--color60);
}

.card-description {
  flex: 1;
  margin: 0;
  padding: 0 20px 12px;
}

.card-description p {
    color: var(--color36);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.card-btn {
    display: flex;
    align-items: center;
    padding: 0 20px 16px;
}

.card-btn a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    background-color: var(--color70);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color66);
    border-radius: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-btn a:hover {
  opacity: 0.8;
}

.card-btn a:focus-visible {
  outline: 3px solid var(--color72);
  outline-offset: 3px;
}


.btn-contactanos {
    margin: 30px auto 20px;
    padding: 10px 16px;
    border: 1px solid var(--color62);
    font-size: clamp(0.8rem, 2vw, 1rem);
    background-color: var(--color62);
    color: var(--color66);
    border-radius: 8px;
    transition: 0.5s;
}

.btn-contactanos:hover {
    background-color: var(--color64);
    border-color: var(--color64);
}


/*************************/
/* ******* Footer ****** */
/*************************/
.footer-container {
  width: 100%;
  height: auto;
  background-color: var(--color68);
}

.container-box {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.box-footer {
  min-width: 140px;
  margin-inline: 16px;
}

.title-box {
  padding: 20px 0px 10px;
  color: var(--color62);
  font-weight: 600;
  /* text-shadow: 1px 1px var(--color30); */
}

/* Horarios */
.dias {
  color: var(--color30);
}

.horas {
  color: var(--color64);
}

/* Otros datos */
.otros-datos a {
  color: var(--color64);
}

.otros-datos a:hover {
  color: var(--color30);
}

.telefono,
.direccion {
  margin: 8px 0px 8px;
  color: var(--color64);
}

.otros-datos .terminos,
.otros-datos .creditos {
  color: var(--color64);
}

.otros-datos .terminos:hover,
.otros-datos .creditos:hover {
  color: var(--color70);
}

/* Sociales */
.sociales {
  padding-bottom: 10px;
}

.sociales a {
  padding: 0 4px;
  /* display: inline-block; */
  display: flex;
  color: var(--color64);
  margin: 4px 0 4px;
}

.instagram,
.facebook,
.whatsapp {
  width: 22px;
  height: 22px;
  border-radius: 50px;
  margin-right: 6px;
  transition: 0.5s;
}

.sociales a:hover {
  color: var(--color30);
}

.legales {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.legales a {
  color: var(--color70);
  font-size: clamp(0.65rem, 2vw, 0.85rem);
}

.legales a:hover {
  color: var(--color30);
}

/* Linea */
footer hr {
  width: 60%;
  margin: 16px auto 0;
  border: 1px solid var(--color34);
}

/* Copyright */
.copy {
  text-align: center;
  padding: 16px 0;
  color: #9b9a9a;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
}

.copyright a {
  color: #9b9a9a;
}

/**************************************/
/* ***** Media Query con 1368px ***** */
/**************************************/
@media (max-width: 1368px) {
    .h1-zona1 h1 {
        font-size: 3.8rem;
    }
}


/*************************************/
/* ***** Media Query con 1090px ***** */
@media (max-width: 1090px) {
    nav {
        /* nuevo */
        justify-content: space-between;
    }

    .logo a img {
        height: 50px;
        width: 50px;
    }

    .main-name {
        font-size: 1.3rem;
    }

    .main-namesito {
        font-size: 0.74rem;
    }

    .checkbtn {
        display: block;
        /* nuevo */
        position: absolute;
        top: 32px;
        right: 20px;
        float: none;
        z-index: 110; 
    }

    nav ul {
        position: fixed;
        width: 100%;
        height: 80vh;
        background: rgb(29, 52, 86, 0.8);
        top: 96px;
        left: 0;
        margin: 0;
        text-align: center;
        
        /* nuevo efecto */
        transform: translateY(calc(-100% - 96px));
        transition: transform 0.5s ease;
        /* fin nuevo */

        overflow-y: auto;
        display: block;
    }

    nav ul li {
        display: block;
        margin: 30px 0;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
    }

    li a:hover,
    li a.active {
        background: none;
    }

    #check:checked ~ ul {
        /* nuevo efecto */
        transform: translateY(0);
    }

    nav .nav-redes {
        margin-right: 10px;
    }
}


/*************************************/
/* ***** Media Query con 952px ***** */
@media (max-width: 952px) {}



/*************************************/
/* ***** Media Query con 858px ***** */
/*************************************/
@media (max-width: 858px) {}



/*************************************/
/* ***** Media Query con 774px ***** */
/*************************************/
@media (max-width: 774px) {
    .h1-zona1 h1 {
        font-size: 3rem;
    }

    .presentacion {
        width: 80%;
    }

    .card-pres {
        width: 90%;
    }
}



/*************************************/
/* ***** Media Query con 542px ***** */
/*************************************/
@media (max-width: 542px) {}


/*************************************/
/* ***** Media Query con 516px ***** */
/*************************************/
@media (max-width: 516px) {
    .presentacion {
        width: 90%;
    }

    .card-pres {
        width: 100%;
    }

    .box-footer {
        min-width: 120px;
        margin-inline: 12px;
    }

    .title-box {
        font-size: 16px;
    }

    .box-footer p,
    .box-footer a {
        font-size: 14px;
    }
}



/*************************************/
/* ***** Media Query con 490px ***** */
/*************************************/
@media (max-width: 490px) {
    .fa-bars {
        scale: 0.9;
    }

    .main-name {
        font-size: 1.1rem;
    }

    .main-namesito {
        font-size: 0.62rem;
    }

    .h1-zona1 h1 {
        font-size: 2.5rem;
    }

    /* ************************** */
    footer {
        padding: 30px 0;
    }

    p.contac {
        font-size: 1.6rem;
    }

    p.mimail {
        font-size: 0.9rem;
    }

    footer .copyright {
        font-size: 0.74rem;
        font-stretch: normal;
    }
}


/*************************************/
/* ***** Media Query con 430px ***** */
/*************************************/
@media (max-width: 430px) {
    .logo a img{
        height: 40px;
        width: 40px;
    }
}