/* ========================================
   HORNET PEST CONTROL - Styles
   Landing Page Optimizada SEO Local
======================================== */

:root {
  --primary: #c41e3a;          /* Rojo del logo */
  --primary-dark: #9b182e;
  --secondary: #1a1a1a;        /* Negro del logo */
  --accent: #f59e0b;
  --bg-light: #f8fafc;
  --bg-section: #fff5f5;
  --text: #1a1a1a;
  --text-muted: #555;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}

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

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

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

/* ========== HEADER ========== */
header {
  background: var(--white);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: var(--transition);
}

header.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}

header.scrolled .logo-img {
  height: 42px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--secondary);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary);
  background: rgba(196, 30, 58, 0.06);
}

.nav .btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  margin-left: 8px;
}

.nav .btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== HERO / INTRO CON VIDEO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0.50) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-logo {
  width: 160px;
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  animation: logoEntrance 1s ease-out forwards;
  background: rgba(255,255,255,0.92);
  padding: 12px 18px;
  border-radius: 12px;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s ease-out 0.5s both;
  background: rgba(0,0,0,0.25);
  padding: 14px 20px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.7s both;
}

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 30, 58, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
  box-shadow: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--secondary);
}

.btn-accent:hover {
  background: #d97706;
}

/* ========== SECTIONS ========== */
section {
  padding: 85px 0;
}

.section-title {
  text-align: center;
  font-size: 2.15rem;
  margin-bottom: 12px;
  color: var(--secondary);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid #e5e7eb;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card ul {
  padding-left: 18px;
  color: #444;
}

.service-card li {
  margin-bottom: 7px;
}

/* ========== WHY US ========== */
.why-section {
  background: var(--bg-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.why-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(196, 30, 58, 0.15);
}

.why-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: var(--transition);
}

.why-item:hover .why-icon {
  transform: scale(1.15);
}

.why-item h3 {
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 1.15rem;
}

/* ========== PROCESS ========== */
.process {
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--white);
  padding: 32px 24px 28px;
  border-radius: var(--radius);
  position: relative;
  border-top: 4px solid var(--primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  background: var(--primary);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(196, 30, 58, 0.3);
}

.step h3 {
  margin-bottom: 10px;
  color: var(--secondary);
  font-size: 1.15rem;
}

/* ========== COVERAGE ========== */
.coverage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.coverage-list span {
  background: var(--white);
  color: var(--primary);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(196, 30, 58, 0.2);
  transition: var(--transition);
  cursor: default;
}

.coverage-list span:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(196, 30, 58, 0.25);
}

/* ========== PESTS ========== */
.pests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  text-align: center;
}

.pest-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 22px 12px;
  transition: var(--transition);
  cursor: default;
}

.pest-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(196, 30, 58, 0.12);
}

.pest-item span {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  transition: var(--transition);
}

.pest-item:hover span {
  transform: scale(1.2);
}

/* ========== FAQ ========== */
.faq-section {
  background: var(--bg-light);
}

.faq-item {
  background: var(--white);
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(196, 30, 58, 0.3);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  user-select: none;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .icon {
  font-size: 1.4rem;
  font-weight: 400;
  transition: var(--transition);
  color: var(--primary);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  color: #444;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 22px 18px;
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--secondary) 0%, #2d2d2d 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  position: relative;
}

.cta p {
  margin-bottom: 28px;
  opacity: 0.92;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info p {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-info a {
  color: var(--primary);
  font-weight: 500;
  transition: var(--transition);
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-info .btn {
  margin-top: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

input,
textarea,
select {
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========== FOOTER ========== */
footer {
  background: var(--secondary);
  color: #a0a0a0;
  padding: 45px 0 25px;
  text-align: center;
}

footer strong {
  color: var(--white);
}

footer a {
  color: #ccc;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
}

.footer-logo {
  height: 45px;
  margin: 0 auto 18px;
  opacity: 0.9;
}

/* ========== FLOATING WHATSAPP ========== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulseWhatsapp 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

@keyframes pulseWhatsapp {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7); }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    align-items: flex-start;
    gap: 4px;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  .nav .btn-nav {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    text-align: center;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

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

  .hero-logo {
    width: 140px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

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

  .hero-logo {
    width: 130px;
    padding: 10px 14px;
  }

  .hero p {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  section {
    padding: 60px 0;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
    font-size: 1.7rem;
  }
}
