/* =======================================================
     RESET
========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}
html, body {
  width: 100%;
  max-width: 100%;
/*  overflow-x: hidden;*/

  overflow-x: hidden !important;

}


body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #222;
}

/* =======================================================
     VARIABLES
========================================================== */
:root {
  --base-hue: 210;
  --base-sat: 100%;
  --color-primary: hsl(var(--base-hue), var(--base-sat), 40%);
  --color-secondary: hsl(var(--base-hue), var(--base-sat), 55%);
  --color-accent: hsl(var(--base-hue), var(--base-sat), 60%);
}

/* =======================================================
     TOP NAV
========================================================== */

.topbar {
  height: 80px;
  position: fixed;
  top: 0;
  width: 100%;
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.4rem);
  background: rgba(22, 83, 127, 1);
  border: 3px solid #002060;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.logo img {
  width: clamp(50px, 6vw, 65px);
  height: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  color: white;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

/* HAMBURGER BUTTON */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

/* Hamburger menu active state */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* NAVBAR HIDE ANIMATION */
.topbar {
  transition: transform 0.35s ease;
}

/* Hidden state */
.topbar.is-hidden {
  transform: translateY(-100%);
}

/* Hide button style */

.nav-hide-btn {
  width: 40px; 
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #0b3c66; /* o transparente si prefieres */
  border: 2px solid #ffffff;
  border-radius: 6px;

  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;

  cursor: pointer;
}

/*.nav-hide-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Responsive topbar */
@media (max-width: 768px) {
  .topbar {
    height: 70px;
    padding: 0.5rem 1rem;
    border-width: 2px;
  }

  .logo img {
    width: clamp(40px, 5vw, 60px);
  }

  .main-nav a {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
  }

  .nav-toggle span {
    width: 22px;
    height: 2.5px;
  }
}

/* mobile rules removed (handled separately) */




/* Botones flotantes abajo a la derecha */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.floating-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
 /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
  transition: transform 0.3s;
}

.floating-buttons a:hover {
  transform: translateY(-3px);
}

/*
.whatsapp-btn {
  background-color: #25D366;
}

.call-btn-floating {
  background-color: #0073e6;
  color: #fff;
}
*/
.call-btn-floating img,
.whatsapp-btn img {
  width: 50px;
  height: 50px;
}

.title-section-5 {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}





/* ============================================================
   FOOTER
============================================================ */

footer {
  overflow: hidden;

  background: transparent;
  /*padding: 40px 0;*/
  padding: 0px 0;
  color: #fff;
  font-family: 'Arial', sans-serif;
}



footer > * {
  position: relative;
  z-index: 1;
}

.footer-content {
  width: 100%;
  padding: 
    clamp(2rem, 5vh, 4rem)
    clamp(1rem, 8vw, 4rem);
  
  gap: clamp(1rem, 5vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: auto;
  align-items: flex-start;
  background-color: #809db1;
  /*background-color: rgba(21, 96, 130, 0.5);*/
}



.footer-section img {
  width: 15vw;
  /*max-width: 220px;
  min-width: 120px;*/
  height: auto;
}


/*
.footer-section img {
  width: 180.325px;
  
}*/


.footer-section h3 {
  margin-bottom: 15px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-bottom: 1px solid #fff3;
  padding-bottom: 5px;
}

.footer-list {
  list-style: disc;
  padding-left: 20px;
}

.footer-list li {
  margin-bottom: 6px;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 15px;
}

.social-icons img {
  /*width: 50px;*/
  width: clamp(28px, 5vw, 50px);
  height: auto;
  transition: 0.2s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.social-icons img:active {
  transform: scale(0.95);
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    width: 100%;
  }

  .logo-section {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  .footer-list {
    padding-left: 0;
    list-style: none;
  }

  .footer-list li {
    margin-bottom: 8px;
  }
}

/* mobile rules removed (handled separately) */




/* =======================================================
     MOBILE STYLES nav toggle
========================================================== */


/* Laptop pequeña 1024px */
@media (max-width: 1024px) {
/*
  .block-1 {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
*/
  .block-1-image-1 {
    width: 100%;
    max-height: 40vh;
  }

  .block-1-image-1 img {
    width: 100%;
  }

  .block-1-right {
    padding: 0;
    margin-right: 0;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav.active {
    display: flex;
    flex-direction: column;
    background: #1a2636;
    position: fixed;
    top: 80px; 
    right: 0;
    width: 70vw;
    height: calc(100vh - 80px);
    padding: 1rem;
    z-index: 2000;
    gap: 1rem;
  }

  .main-nav.active ul {
    flex-direction: column;
    gap: 1rem;
  }

  .block-3-cell {
    width: 90%;
  }

  .block-3 {
    min-height: auto;
    padding: 2rem 1rem;
  }
}
