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

body {
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #00518A;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-box img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #00518A;
}

/* Nav */

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.main-nav a:hover {
  background-color: #00518A;
  color: #ffffff;
  text-decoration: none;
}

/* Dropdown */

.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  border: none;
  font: inherit;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.dropbtn:hover {
  background-color: #00518A;
  color: #ffffff;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  overflow: hidden;
}

.dropdown-content a {
  display: block;
  padding: 0.6rem 0.8rem;
}

.dropdown-content a:hover {
  background-color: #f3f4f6;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile nav toggle */

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

/* Hero */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7,50,79,0.9), rgba(0,81,138,0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 640px;
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn-primary,
.btn-secondary,
.btn-outline {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  display: inline-block;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #F39C12;
  color: #ffffff;
  border-color: #F39C12;
}

.btn-primary:hover {
  background-color: #d88305;
  border-color: #d88305;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: #00518A;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: #00518A;
  border-color: #00518A;
}

.btn-outline:hover {
  background-color: #00518A;
  color: #ffffff;
  text-decoration: none;
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: #F4F6F8;
}

.section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #07324F;
}

.section-intro {
  margin-bottom: 2rem;
  max-width: 700px;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.service-card img {
  height: 180px;
  object-fit: cover;
}

.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  margin: 1rem 1rem 0.5rem;
  color: #07324F;
}

.service-card ul {
  list-style: disc;
  padding: 0 1.3rem 1.3rem 2rem;
  font-size: 0.95rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.4fr);
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.about-text h3 {
  margin-top: 1.2rem;
  font-family: 'Poppins', sans-serif;
  color: #00518A;
}

.about-text ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.gallery-grid figure {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.gallery-grid img {
  height: 180px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.95rem;
}

/* Store */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.store-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.store-card img {
  height: 180px;
  object-fit: cover;
}

.store-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin: 1rem 1rem 0.5rem;
  color: #07324F;
}

.store-card p {
  margin: 0 1rem 0.5rem;
  font-size: 0.95rem;
}

.store-tag {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
}

/* Otros rubros */

.other-grid {
  display: grid;
  grid-template-columns: minmax(0,1.7fr);
  gap: 1.5rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.5fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00518A;
  box-shadow: 0 0 0 2px rgba(0,81,138,0.15);
}

.contact-info h3 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Footer */

.main-footer {
  background-color: #07324F;
  color: #ffffff;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
}

/* WhatsApp floating button */

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 999;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* Responsive */

@media (max-width: 900px) {
  .header-inner {
    align-items: center;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-out;
  }

  .main-nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    margin-left: 0.5rem;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .main-nav {
    font-size: 0.9rem;
  }
}
