/* ==========================================================================
   FONTS & BASE STYLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');

html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  background-color: #f9f6f1;
  color: #000000;
  font-weight: 400;
}

/* Headings: use Montserrat Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Media queries for responsive font sizes */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
}

/* Common buttons */
.btn {
  display: inline-block;
  background-color: #55c9cc;
  color: #ffffff;
  padding: 12px 24px;
  margin-top: 25px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #44b2b5;
  cursor: pointer;
}

/* Utility classes */
.ocultar {
  display: none;
}

@media screen and (min-width: 768px) {
  .ocultar {
    display: block;
  }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background-color: #444e56;
    position: relative;
    z-index: 1000;
}

/* Nav buttons and links */
.buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
}

/* All buttons in nav should have the same base styling */
.buttons a,
.buttons .btn-nav,
.dropdown > a {
  font-family: 'Inter', sans-serif;
  font-weight: 200; /* Extra light by default */
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  padding: 10px 16px;
  transition: font-weight 0.3s ease, opacity 0.3s ease, color 0.3s ease;
  color: rgba(255, 255, 255, 0.85); /* Slightly dimmed white */
}

/* Button hover effects */
.btn-nav:hover,
.dropdown > a:hover,
.btn-contacto:hover {
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  opacity: 1;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #444e56;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10; 
  border-radius: 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  background-color: #ffffff;
  color: #555555;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #444e56;
  color: #ffffff;
}

/* Logo */
.logo img {
  height: 50px; 
  width: auto;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  /* allow the hamburger to shift position when activated */
  transition: transform 0.22s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: 0.3s;
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-11px);
}

/* slide the whole hamburger a few pixels to the left when active */
.hamburger.active {
  transform: translateX(6px);
}

/* Mobile navigation styles */
@media screen and (max-width: 768px) {
  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  .buttons {
    display: none;
    flex-direction: column;
    background-color: #444e56;
    position: absolute;
    top: calc(100%);
    right: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    gap: 12px;
    z-index: 999;
    transform-origin: top right;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  /* make column children stretch full width on mobile */
  align-items: stretch;
  }

  .buttons.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: transparent;
    width: 100%;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown .dropdown-content {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .dropdown.active .dropdown-content {
    display: flex;
  }

  .dropdown-content a {
    background-color: transparent;
    color: #fff;
    display: block;
    width: 100%;
  }

  .buttons a,
  .buttons .btn-nav,
  .buttons .btn-contacto {
    display: block;
    width: 100%;
    padding: 8px 12px 10px 20px;
    text-align: left;
    letter-spacing: 0.9px;
  }

  /* ensure dropdown anchor fills the same space and aligns left (duplicate mobile block) */
  .dropdown > a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px 10px 20px;
  }

  /* ensure dropdown anchor fills the same space and aligns left */
  .dropdown > a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px 10px 20px;
  }

  /* Logo adjustment */
  .logo img {
    height: 40px;
    width: auto;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: #444e56;
  color: #ffffff;
  padding: 50px 0 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 60px; 
  margin-bottom: 40px;
}

.footer-column {
  min-width: 250px;
  margin-left: auto;
}

.footer-logo-container {
  flex-basis: 20%; 
  min-width: 320px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo-container img {
  height: 60px;
  width: 340px;
}

.footer-column h4 {
  text-align: start;
  font-size: 1em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
}

.footer-column a {
  text-align: start;
  display: block;
  background-color: transparent;
  color: #ffffff;        
}

.footer-column a:hover{
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  opacity: 0.7;
  font-size: 0.9em;
}

.footer-column ul {
  list-style-type: none;
  padding: 0;
  font-size: 0.9em;
}

.footer-column li {
  padding: 8px 0;
}

.logo-sociales {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 45px;
}

.logo-sociales img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.logo-sociales a:hover img {
  transform: scale(1.2);
}

/* ==========================================================================
   RESPONSIVE STYLES FOR BASE ELEMENTS
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  .buttons {
    display: none;
    flex-direction: column;
    background-color: #444e56;
    position: absolute;
    top: calc(100%);
    right: 0;
    left: 0;
    width: 100%;
    padding: 12px 16px;
    gap: 12px;
    z-index: 999;
    transform-origin: top right;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  }

  .buttons.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: transparent;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown .dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 40px;
  }

  .dropdown.active .dropdown-content {
    display: flex;
  }

  .dropdown-content a {
    background-color: transparent;
    color: #fff;
    display: block;
    width: 100%;
  }

  .buttons a,
  .buttons .btn-nav,
  .buttons .btn-contacto {
    display: block;
    width: 100%;
    padding: 8px 12px 10px 20px;
    text-align: left;
    letter-spacing: 0.9px;
  }

  /* Logo adjustment */
  .logo img {
    height: 40px;
    width: auto;
  }

  /* Mobile Footer */
  footer {
    padding: 40px 0 20px 0;
  }
  
  .footer-container {
    padding: 0 20px;
  }
  

  .footer-column a {
    text-align: center;
     
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-logo-container {
    min-width: auto;
    width: 100%;
    padding: 0;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .footer-logo-container img {
    height: auto;
    width: 80%;
    max-width: 280px;
  }
  
  .footer-column {
    min-width: auto;
    width: 100%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-column h4 {
    margin-bottom: 15px;
    font-size: 1.1em;
  }
  
  .footer-column ul {
    text-align: center;
    width: 100%;
  }
  
  .footer-column li {
    padding: 6px 0;
  }
  
  .logo-sociales {
    margin-left: 0;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-top: 10px;
  }
  
  .logo-sociales img {
    width: 36px;
    height: 36px;
  }
  
  .footer-bottom {
    font-size: 0.8em;
    margin-top: 20px;
    padding: 0 20px;
  }
}

/* ========================================================================== */
/* OPTIONAL COMPACT MODE (activated via .compact on <html>)                    */
/* -------------------------------------------------------------------------- */
/* Provides a mild reduction in overall sizing without forcing all users.     */
/* Toggle is handled in script.js and stored in localStorage.                 */
/* ========================================================================== */
html.compact { font-size: 92%; }
@media (min-width:768px){ html.compact { font-size:15px; } }
@media (min-width:1200px){ html.compact { font-size:17px; } }
/* ========================================================================== */
/* FIXED GLOBAL ZOOM 0.8 (Restored for consistent shrink on all mid/large screens) */
html { zoom:0.8; }
@supports not (zoom:1) {
  body { transform:scale(.8); transform-origin:top left; width:125%; }
}
/* ========================================================================== */