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

:root{
    --bg-color: #f7f7f7;
    --second-bg-color: #eaeaea;
    --text-color: #3f3844;
    --main-color: #000080;
    --hover-color: #0F52BA;
    --other-color: #9a4eae;
}

html{
    font-size: 62.5%; /*1 rem = 10px*/
    overflow-x: hidden;
}

body{
    font-size: 1.6rem;
    font-family: 'Roboto', Arial, sans-serif;
}

a{
    text-decoration: none;
}

 h1{
    margin: 4rem;
    text-align: center;
    font-weight: bold;
    font-size: 3.5rem;
    color: var(--text-color);
}

/*UTILIDADES
================================*/
.heading{
    font-size: 4.5rem;
    text-align: center;
}

.heading-description{
    font-size: 1.8rem;
    margin-bottom: 3rem;
    text-align: center;
}

span{
    color: var(--other-color);
}

strong{
  color: var;
}
/*
HEADER
====================*/
/*.header{
    position: fixed; //Siempre estara en la parte de arriba
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100; //Para que ningun elemento se apile encima del header

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%; //2 rem arriba y abajo y 10% hacia los costados
    background-color: var(--text-color);
    box-shadow: 0 1px .3rem var(--text-color);
}
.navbar{
    display: flex;
    gap: 1.5rem;
}

.navbar a{
    color: var(--second-bg-color);
    font-weight: 600;
    transition: .3s ease;
    margin: 0 2rem;
    border-bottom: .2rem solid transparent;
    text-transform: uppercase;
}
*/

.home-link{
    font-size: 1.5rem;
    color: var(--second-bg-color);
    font-weight: 700;
    transition-duration: 0.5s;
}

.home-link i{
  font-size: 2.5rem;
}

.home-link:hover{
  color: var(--hover-color);
}

/* Only needed if your original .navbar styles interfere */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 10%;
  background-color: var(--text-color);
}

.navbar-nav .nav-link {
  margin-right: 3rem;
  color: var(--second-bg-color);
  font: 'Roboto';
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--hover-color);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  font-size: 2rem;
}

/*HOME
============================*/

.home{
background-image: url("../img/bg-image-1.5601bd0767cf.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    size: 100vh;
    
}

.home img{
    display: block;
    padding-top: 10rem;
    margin: auto;
    width: 45%;
}

.home p{
    width: 55%;
    margin: auto;
    padding: 2.5rem 2rem;
    background-color: rgb(247, 247, 247, 0.8);
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 500;
}

.order-now-button{
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-button{
    margin: 3.5rem;
    padding: 1.5rem 4rem;
    
    /*margin: 1rem 3rem 1rem 0;*/
    background-color: #ff3030;
    border-radius: 1rem;
    font-size: 4rem;
    color: var(--bg-color);
    border-color: #ffffff;
    border-style: solid;
    font-weight: 400;
    transition: .3s ease;
}

.main-button:hover{
  background-color: #ff5d5d;
}

/* SERVICES
===================================*/

.services{
    scroll-margin-top: 100px;
    padding-bottom: 3rem;
}

.services-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Use center instead of space-between */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.service-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 0 1 calc(33.333% - 2rem);
  background-color: var(--second-bg-color);
  padding: 4rem 2rem;
  border-radius: 2rem;
  min-height: 26rem;
  box-shadow: 0 0 .5rem var(--main-color);
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1rem var(--main-color);
}

@media (max-width: 768px) {
  .service-item {
    flex: 1 1 90%; /* Una columna en pantallas pequeñas */
  }
}

.service-item-icon{
    width: 60px;
  height: auto;
  display: block;
  margin-left: 2rem;
}


.service-item i{
    font-size: 6rem;
    color: #ff3030;
      

}

.service-item h2{
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-color);
}

.service-item p{
    overflow:hidden;
    margin: 1rem 0;
    color: var(--text-color);
}

.btn-now{
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    font-size: 2.2rem;
    line-height: 1.2rem;
    font-weight: 700;
    padding: .7rem 0;
    color: var(--text-color);
    border-bottom: .2rem solid var(--other-color);
}

.btn-now i{
    font-size: 2.5rem;
    margin-left: .5rem;
    vertical-align: middle;
}

.btn-now:hover{
    border-bottom-color: var(--hover-color);
}

/* LOCATION
===================================*/
.location{
     scroll-margin-top: 50px;
    background-image: url("../img/bg-4.43ebfde0c8ae.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  color: white; /* Optional: make text readable */
    
}

.location-content{
    display: flex;
    flex-direction: row;
}

.location-content iframe{
    margin: 2rem 3rem;
    padding: 2rem 3rem;
}

.location h1{
    color: var(--second-bg-color);
}

.location-content p{
    padding: 8rem 5rem 2rem 2rem;
    width: 120vh;
    text-align: justify;
    color: var(--second-bg-color);
}


.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 40%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  border-radius: 8px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}


.btn-direction {
  display: inline-block;
  text-decoration: none;
  background: #2747fd;
  color: white;
  margin-left: 2rem;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-direction:hover {
  background: #3978ff;
}
/* About us
===================================*/

.about{
    scroll-margin-top: 100px;
    padding: 4rem 2rem;
  background-color: var(--second-bg-color);
  color: var(--text-color);
}

.about p{
     font-size: 1.8rem;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;

}


/* MODAL ORDER NOW
===================================*/
.order-now-modal{
    margin: auto;
    padding: 2rem;
    border-radius: 6px;
}

.order-now-modal::backdrop{
    background-color: rgba(0, 0, 0, 0.6);
}

dialog{
    
    width: 60%;
    min-width: 400px;
    height: 625px;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialog-animate {
  animation: slideFadeIn 0.5s ease-out;
}

.order-now-modal{
    background-color: var(--text-color);
    padding: 1rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.order-now-modal h1{
    margin: 3rem auto;
    color: var(--second-bg-color);
}

.order-now-modal p{
    padding: 0 0 0 2rem;
    margin: 0;
    color: var(--second-bg-color);
    background-color: var(--text-color);
    font-size: 1.6rem;
}


.form-control,
.form-select{
    margin: 1rem auto;
    margin-top: 2rem;
    font-size: 14px;
    border:2px solid rgb(143, 143, 143);
}

.form-control:focus,
.form-select:focus{
    border-color: var(--main-color);
}

.row{
    align-items: center;
}

.order-now-modal button{
    background-color: var(--text-color);
    color: var(--second-bg-color);
    padding: 1rem 1.5rem;
    margin: 1rem 2rem;
    font-size: 16px;
    font-weight: bold;
    transition: 0.5s;
    border: 2.5px solid var(--text-color);
}

.order-now-modal button:hover{
    border: 2.5px solid var(--hover-color);
    color: var(--hover-color);
}


/* LOADER
===================================*/
.loader {
    border: 10px solid #737373;
    border-radius: 50%;
    border-top: 10px solid #c8a64f;
    width: 120px;
    height: 120px;
    margin: 3.5rem auto;
    animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-processing{
    color: #3f3844;
}

/* Check
===================================*/
.bx bx-check{
    color: darkgreen;
    size: 100px;
    text-align: center;
}

#inputDO:disabled{
    background-color: #ccc !important;   /* Light gray but darker than default */
    color: #555 !important;              /* Darker text color */
    cursor: not-allowed;      /* Show "disabled" cursor */
    opacity: 1;               /* Override default opacity */
}

.btn-done {
  display: flex;
  justify-content: center;
}

/* FOOTER
===================================*/

.site-footer {
  background-color: var(--text-color);
  color: var(--second-bg-color);
  padding: 4rem 2rem;
  font-size: 1.5rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-container > div {
  flex: 1 1 250px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 1rem 0;
}

.footer-links ul li a {
  color: var(--second-bg-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--hover-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid var(--second-bg-color);
  padding-top: 1rem;
  font-size: 1.3rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 1.4rem;
  color: var(--second-bg-color);
}

.footer-bottom strong {
  color: var(--other-color);
}

.footer-about {
  padding-right: 2rem;
}

.footer-about p {
  max-width: 500px;
  line-height: 1.6;
  margin: 0; /* remove unnecessary margin */
}

.footer-container > div {
  flex: 1 1 300px;
  min-width: 250px;
}

.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: var(--second-bg-color);
}

.footer-contact p {
  margin: 0.5rem 0;
  color: var(--second-bg-color);
  font-size: 1.5rem;
}

/* ==================================
   RESPONSIVE STYLES
   ================================== */
@media (max-width: 1440px) {
  .home{
    height: 100vh;
  }

  .home img{
    margin: 4rem auto;
  }

  .location-content p{
    width: 80vh;
  }
}

@media (max-width: 1024px) {
  .header {
    padding: 2rem 5%;
  }

  .home img {
    width: 60%;
  }

  .home p {
    width: 80%;
    font-size: 1.6rem;
  }

  .main-button {
    font-size: 3rem;
    padding: 1.2rem 3rem;
  }

  .service-item {
    flex: 1 1 45%;
  }

  .location-content{
    text-align: center;
  }

  .map-container iframe{
    height: 500px;
    margin: 1rem auto;
  }

  .location-content p{
    padding: 0;
    margin-bottom: 4rem;
  }

  .btn-direction{
    display: inline-block;
    margin: auto;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-container > div {
    flex: none !important;
    width: 100%;
    height: auto !important;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /*.navbar {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }*/

  .home{
    height: 110vh;
  }

  .home img {
    width: 80%;
  }

  .home p {
    font-size: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .main-button {
    font-size: 2.5rem;
    padding: 1rem 2rem;
  }

  .services-content {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    flex: 1 1 100%;
    width: 90%;
  }

  .location-content {
    flex-direction: column;
    align-items: center;
  }

  .location-content p {
    width: 90%;
    text-align: center;
    padding: 2rem 1rem 0 5rem;
  }

  .map-container iframe{
    height: 100%;
  }

  .footer-container {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .footer-container > div {
    height: auto !important; /*override default 300px height*/
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    margin-bottom: 2rem;
  }
  .footer-links ul {
    padding-left: 0;
    list-style: none;
  }
  .footer-links ul li {
    margin-bottom: 0.5rem;
  }

  dialog {
    width: 90%;
    height: 650px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .heading {
    font-size: 3rem;
  }

  .home{
    height: 55vh;
  }
  /*nav.navbar {
    margin: 0 !important;
  }*/

  dialog {
    width: 90%;
    height: 600px;
    font-size: 2px;
  }

  .main-button {
    font-size: 2rem;
    padding: 1rem 2rem;
  }

  .service-item h2 {
    font-size: 2.2rem;
  }

  .service-item p,
  .about p {
    font-size: 1.5rem;
  }

  .map-container{
    min-height: 250px;
  }
}

@media (max-height: 600px) {
  .home{
    height: 150vh;
  }

  .home img{
    margin: 1rem auto;
  }

  .main-button{
    margin: 1.5rem;
  }
}
