/* Tipografía */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

/* Global Styles */
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Poppins", serif;
    background-color: #fff;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 130px;
    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links li {
    margin-left: 24px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 300;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ce5b0c;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 1100;
}

.menu-icon .line {
    width: 28px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s ease;
}

#menu-toggle {
    display: none;
}

@media(max-width: 768px) {

    .logo {
        height: 59px;
    }

    .navbar {
        padding: 16px 24px;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #FFFFFF;
        text-align: center;
        transition: height 0.5s ease;
        padding: 0;
    }

    .nav-links li {
        margin: 10px 0;
        padding: 0;
        width: auto;
    }

    .nav-links a {
        display: inline-block;
        padding: 12px 0;
        text-align: center;
        color: black;
        font-size: 18px;
    }

    #menu-toggle:checked+.menu-icon+.nav-links {
        height: auto;
        padding: 20px 0;
    }

    #menu-toggle:checked+.menu-icon .line:nth-child(1) {
        transform: rotate(45deg) translate(15px, 3px);
    }

    #menu-toggle:checked+.menu-icon .line:nth-child(2) {
        transform: scale(0);
    }

    #menu-toggle:checked+.menu-icon .line:nth-child(3) {
        transform: rotate(-45deg) translate(15px, -4px);
    }
}

/***************************************************************************************/

/* Contenedor principal */

.contact-section {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  color: #0d1b2a;
  background-color: #ffffff;
}

.contact-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 600px;
  margin-top: 100px;
}

#contact-form {
  margin-top: 35px; 
}

.contact-form {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
  border-radius: 10px 0 0 10px;
}

.contact-form h2 {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 15px;
}

.contact-form p {
  margin: 3px 0;
  font-weight: 300;
  color: #333;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.input-group input {
  flex: 1;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-bottom: 2px solid #ccc;
  font-weight: 300;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

textarea {
  resize: none;
  min-height: 30px;
  margin-bottom: 0px;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: #0d1b2a;
}

button {
  background-color: #0d1b2a;
  color: #fff;
  border: none;
  padding: 12px;
  width: 200px;
  font-weight: 100;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 6px;
  margin-top: 15px;
}

button:hover {
  background-color: #133b5c;
}

.contact-image {
  flex: 1;
  overflow: hidden;
  height: auto;
  display: flex;
}

.contact-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1440px) {
  .contact-container {
    height: auto;
  }

  .contact-form {
    padding: 50px 40px;
  }

  .contact-form h2 {
    font-size: 1.6rem;
  }

  button {
    width: 160px;
    margin-left: 100px;
    border-radius: 6px;
  }
}

@media (max-width: 1366px) {
  .contact-container {
    flex-direction: column;
    height: auto;
  }

  .contact-image {
    order: -1;
    width: 100%;
    height: 300px;
  }

  .contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .contact-form {
    border-radius: 0 0 10px 10px;
    padding: 40px 30px;
  }

  .contact-form h2 {
    text-align: center;
  }

  button {
    margin-left: 555px;
    align-self: center;
    margin-top: 20px;
    border-radius: 6px;
  }
}

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    height: auto;
  }

  .contact-image {
    order: -1;
    width: 100%;
    height: 320px;
  }

  .contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .contact-form {
    padding: 40px 35px;
    border-radius: 0 0 10px 10px;
  }

  .contact-form h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .contact-form p {
    text-align: center;
    font-size: 0.9rem;
  }

  .input-group {
    flex-direction: column;
  }

  input,
  textarea {
    font-size: 0.9rem;
  }

  button {
    width: 160px;
    align-self: center;
    margin-top: 20px;
    margin-left: 335px;
    border-radius: 6px;
  }
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    margin-top: 60px;
  }

  .contact-image {
    height: 280px;
  }

  .contact-form {
    padding: 35px 25px;
  }

  .contact-form h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .contact-form p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  input,
  textarea {
    font-size: 0.85rem;
    padding: 8px;
  }

  button {
    width: 150px;
    font-size: 0.9rem;
    padding: 10px;
    margin-left: 285px;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .contact-container {
    flex-direction: column;
    margin-top: 40px;
  }

  .contact-image {
    height: 220px;
  }

  .contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .contact-form h2 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 10px;
  }

  .contact-form p {
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .input-group {
    flex-direction: column;
    gap: 0;
  }

  input,
  textarea {
    font-size: 0.85rem;
    padding: 8px;
    margin-bottom: 12px;
  }

  textarea {
    min-height: 70px;
  }

  button {
    width: 100%;
    max-width: 100px;
    font-size: 0.9rem;
    padding: 10px;
    align-self: center;
    border-radius: 6px;
    margin-top: 15px;
    margin-left: 170px;
  }
}

@media (max-width: 430px) {
  .contact-container {
    flex-direction: column;
    margin-top: 40px;
  }

  .contact-image {
    height: 200px;
  }

  .contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .contact-form {
    padding: 25px 18px;
  }

  .contact-form h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 8px;
  }

  .contact-form p {
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .input-group {
    flex-direction: column;
    gap: 0;
  }

  input,
  textarea {
    font-size: 0.85rem;
    padding: 8px;
    margin-bottom: 12px;
    border-bottom: 1.8px solid #ccc;
  }

  textarea {
    min-height: 70px;
  }

  button {
    width: 100%;
    max-width: 100px;
    font-size: 0.9rem;
    padding: 10px;
    align-self: center;
    margin-top: 12px;
    border-radius: 6px;
    margin-left: 150px;
  }
}

@media (max-width: 375px) {
  .contact-image {
    height: 180px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .contact-form h2 {
    font-size: 1.15rem;
  }

  .contact-form p {
    font-size: 0.75rem;
  }

  input,
  textarea {
    font-size: 0.8rem;
  }

  button {
    max-width: 100px;
    font-size: 0.85rem;
    padding: 9px;
    border-radius: 6px;
    margin-left: 120px;
  }
}

@media (max-width: 360px) {
  .contact-image {
    height: 180px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .contact-form h2 {
    font-size: 1.1rem;
  }

  .contact-form p {
    font-size: 0.75rem;
  }

  input,
  textarea {
    font-size: 0.8rem;
  }

  button {
    max-width: 100px;
    padding: 8px;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-left: 115px;
  }
}

@media (max-width: 340px) {
  .contact-container {
    margin-top: 30px;
  }

  .contact-image {
    height: 160px;
  }

  .contact-form {
    padding: 18px 12px;
    border-radius: 0 0 10px 10px;
  }

  .contact-form h2 {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 6px;
  }

  .contact-form p {
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  input,
  textarea {
    font-size: 0.75rem;
    padding: 6px;
    margin-bottom: 10px;
  }

  textarea {
    min-height: 60px;
  }

  button {
    width: 90%;
    max-width: 120px;
    padding: 8px;
    font-size: 0.8rem;
    align-self: center;
    margin: 10px auto 0 auto;
    display: block;
  }
}

@media (max-width: 320px) {
  .contact-section {
    overflow-x: hidden;
  }

  .contact-form {
    padding: 15px 10px;
  }

  .contact-form h2 {
    font-size: 0.95rem;
  }

  .contact-form p {
    font-size: 0.68rem;
  }

  input,
  textarea {
    font-size: 0.75rem;
    padding: 5px;
  }

  button {
    width: 100%;
    max-width: 110px;
    padding: 7px;
    font-size: 0.75rem;
    margin: 10px auto 0 auto;
    display: block;
    margin-left: 95px;
  }
}


/***************************************************************************************/

/* Mapa debajo */
.map-container {
  width: 100%;
  margin-top: -5px;
  margin-bottom: -10px;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Responsivo */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-content button {
    padding: 12px 25px;
    font-size: 0.95rem;
  }
}

/***************************************************************************************/

/* Footer */
.footer {
  background-color: #e2e2e2;
  color: #000;
  padding: 5px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  gap: 80px;
  margin-bottom: 10px;
}

.footer-section {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 220px;
  padding: 10px;
  text-align: center;
}

.footer-section img.footer-imagen {
  margin-top: 15px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-weight: 500;
  text-align: center;
}

.footer-section p {
  margin-bottom: 0;
  text-align: center;
  line-height: 1.4;
  font-weight: 300;
}

.redes a {
  display: inline-block;
}

.footer-section .fa-brands {
  font-size: 28px;
  margin: 0 10px;
  transition: transform 0.3s ease;
  color: black;
}

.footer-section .fa-brands:hover {
  transform: scale(1.2);
  color: #ce5b0c;
}

.footer-link {
  display: block;
  color: black;
  text-decoration: none;
  margin: 6px 0;
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer-link:hover {
  color: #ce5b0c;
}

/* Responsivo */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
  }

  .footer-section {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0;
    padding: 5px 0;
  }

  .footer-section h3 {
    margin-top: -75px;
    margin-bottom: 6px;
  }

  .footer-section p {
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .footer-section img.footer-imagen {
    width: 50%;
    max-width: 170px;
    margin: 0 auto 8px auto;
    display: block;
    margin-top: 15px;
  }

  .footer-section .fa-brands {
    margin: 0 8px;
    font-size: 26px;
  }
}
