/* style.css for FA Fumigaciones Alvarado exact redesign */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
  --green-dark: #132a06;
  --green-primary: #5DB410;
  --green-light: #82cc3d;
  --blue-dark: #0a1403;
  --bg-light: #f9fbf7;
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --white: #ffffff;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  color: var(--green-dark);
}

.fw-light {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.text-highlight {
  color: var(--green-primary);
  font-weight: 700;
}

/* Header */
.mobile-menu-btn {
  display: none;
  font-size: 28px;
  color: #5DB410;
  cursor: pointer;
  z-index: 101;
}

/* Hide mobile menu extra blocks globally */
.menu-overlay,
.mobile-menu-header,
.mobile-menu-footer {
  display: none;
}

/* For desktop, unwrap the inner container */
.nav-links-inner {
  display: contents;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 998;
  padding: 3px 0;
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  header {
    position: fixed;
    background-color: var(--white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  }
}


.header-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 10px;
}

nav a {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  text-shadow: none;
}

nav a:hover {
  color: var(--white);
  background-color: var(--green-primary);
}

.header-contact {
  display: flex;
  align-items: center;
  background-color: rgba(19, 42, 6, 0.85);
  backdrop-filter: blur(4px);
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--white);
  gap: 12px;
}

.header-contact .phones {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-green {
  background-color: var(--green-primary);
  color: var(--white);
}

.btn-green:hover {
  background-color: var(--green-light);
}

.btn-dark {
  background-color: var(--blue-dark);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #000;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 42, 6, 0.95) 0%, rgba(19, 42, 6, 0.6) 40%, rgba(0, 0, 0, 0) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 50px;
}

.hero-text {
  max-width: 600px;
  color: var(--white);
  padding-top: 80px;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.hero-experience {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeIn 1s ease-out 0.5s both;
}

.hero-experience i {
  color: var(--green-primary);
  font-size: 1.1rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 30px;
  border-radius: 50px;
  color: var(--text-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.hero-badge .badge-content {
  display: flex;
  flex-direction: column;
}

.hero-badge small {
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 600;
}

.hero-badge strong {
  font-size: 1.5rem;
  color: var(--green-dark);
}

.hero-badge i {
  color: var(--green-primary);
}

/* Quienes Somos */
.about {
  background-color: var(--bg-light);
  padding: 60px 0;
}

.about-card {
  display: flex;
  background-color: #ededed;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.about-info {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: justify;
}

.about-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.about-info p {
  color: var(--text-gray);
  margin-bottom: 25px;
  font-weight: 400;
}

.about-info h3 {
  font-size: 1.2rem;
  color: var(--green-primary);
  margin-bottom: 15px;
}

.about-icons {
  display: flex;
  gap: 20px;
  font-size: 2rem;
  color: var(--green-primary);
}

.about-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

/* Servicios */
.services {
  background-color: var(--green-dark);
  background-image: url('../img/FONDOS/Fondo1.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  text-align: center;
}

.services h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.service-img-top {
  background-color: rgba(45, 107, 65, 0.2);
  background-image: url('../img/FONDOS/Fondo1.png');
  background-size: cover;
  background-position: center;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}

.service-img-top img {
  height: 90px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}

.service-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-body h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  min-height: 44px;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 25px;
  flex: 1;
}

.btn-outline {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 600;
  align-self: flex-start;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

/* Sectores */
.sectors {
  background-color: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.sectors h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: var(--blue-dark);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sector-card {
  height: 200px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sector-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(19, 42, 6, 0.85);
  color: var(--white);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.sector-label i {
  color: var(--green-light);
  font-size: 24px;
}

.sector-label strong {
  font-size: 0.95rem;
}

.sector-label small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Banner 365 */
.banner-365 {
  background-color: var(--green-dark);
  /* Textured pattern illusion */
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 25px 0;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.banner-365 h2 {
  font-size: 1.6rem;
  color: var(--white);
  font-weight: 700;
}

/* Footer */
footer {
  background-color: #101c23;
  /* Very dark */
  color: var(--white);
  padding: 50px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  height: 45px;
}

.footer-legal {
  font-size: 0.8rem;
  color: #888;
}

.footer-center {
  text-align: center;
}

.trato-directo {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 5px;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-light);
  gap: 12px;
  align-items: center;
}

.btn-whatsapp-footer {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-footer:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer-phones i {
  color: var(--white);
  margin-right: 8px;
  font-size: 1rem;
}

.footer-right {
  text-align: center;
}

.btn-outline-white {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--white);
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 8px;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.placer-atenderte {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
}

.whatsapp-float i {
  font-size: 28px;
  margin-bottom: 2px;
}

.wa-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
}

/* Page Header (Internal Pages) */
.page-header {
  position: relative;
  min-height: 40vh;
  background-image: url('assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19, 42, 6, 0.85);
}

.page-header h1 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 3rem;
  margin: 0;
}

.page-header p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-top: 10px;
}

/* Works Gallery Grid */
.gallery-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--green-dark);
}

.gallery-section .intro-text {
  text-align: center;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 50px auto;
}

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

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--green-dark);
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item.video-item {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .gallery-item.video-item {
    grid-column: span 2;
  }
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive basics */
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: block;
  }

  nav.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  nav.nav-links.active {
    right: 0;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eaeaea;
  }

  .mobile-menu-header img {
    height: 40px;
  }

  .close-menu-btn {
    font-size: 26px;
    color: var(--text-dark);
    cursor: pointer;
  }

  .nav-links-inner {
    display: flex;
    flex-direction: column;
    padding: 25px;
    gap: 8px;
  }

  nav a {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s;
  }

  nav a:hover {
    background-color: rgba(45, 107, 65, 0.08);
    color: var(--green-primary);
  }

  .mobile-menu-footer {
    display: block;
    padding: 25px;
    margin-top: auto;
  }

  .mobile-menu-footer .btn {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
  }

  .header-contact {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .about-card {
    flex-direction: column;
  }

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


  .hero {
    min-height: 50vh;
  }

  /* Grids: 3 columnas en tablet */
  .services-grid,
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {

  .services-grid,
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {

  .services-grid,
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  opacity: 0.9;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.social-facebook {
  background-color: #1877F2;
}

.social-tiktok {
  background: linear-gradient(135deg, #010101 0%, #ff0050 50%, #00f2ea 100%);
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-linkedin {
  background-color: #0A66C2;
}