/* ============================================================
   FODA K9 — PROPOSAL 3: BOLD DYNAMIC
   Colors: #111111, #0066ff, #ffffff, #222222
   Fonts: Bebas Neue (headings), Barlow (body)
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:    #111111;
  --black2:   #222222;
  --blue:     #0066ff;
  --blue2:    #3d8bff;
  --blue-dk:  #0044cc;
  --white:    #ffffff;
  --gray:     #1a1a1a;
  --gray2:    #2e2e2e;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  line-height: 0.95;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   RADAR DOG — Sitting German Shepherd (Hero, top-right)
   ============================================================ */

/* Entry: slides down from above + fades in */
@keyframes radarEntry {
  0% {
    transform: translateY(-60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* Ear twitches alert every 4s */
@keyframes earAlert {
  0%, 80%, 100% { transform: rotate(0deg); }
  84%           { transform: rotate(-18deg); }
  88%           { transform: rotate(6deg); }
  92%           { transform: rotate(-10deg); }
  96%           { transform: rotate(2deg); }
}

/* Tail sways gently while sitting */
@keyframes tailWagSit {
  0%, 100% { transform: rotate(-12deg); }
  50%      { transform: rotate(12deg); }
}

/* Chest breathes subtly */
@keyframes breatheSit {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

/* Eyes pulse with electric blue glow */
@keyframes eyeGlow {
  0%, 100% { filter: drop-shadow(0 0 2px #0066ff) drop-shadow(0 0 4px #3d8bff); }
  50%      { filter: drop-shadow(0 0 6px #0066ff) drop-shadow(0 0 12px #3d8bff) drop-shadow(0 0 20px rgba(0,102,255,0.6)); }
}

/* Whole dog soft outer glow pulses */
@keyframes dogGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(0,102,255,0.3)) drop-shadow(0 4px 12px rgba(0,68,204,0.2)); }
  50%      { filter: drop-shadow(0 0 18px rgba(0,102,255,0.7)) drop-shadow(0 4px 24px rgba(61,139,255,0.4)); }
}

/* ============================================================
   PATROL DOG — Walking German Shepherd (Footer strip)
   ============================================================ */

/* Dog traverses full footer width left to right */
@keyframes patrolWalk {
  0%   { transform: translateX(-120px); }
  100% { transform: translateX(calc(100vw + 120px)); }
}

/* Front-left leg swings forward */
@keyframes legCycleFL {
  0%, 100% { transform: rotate(-25deg); }
  50%      { transform: rotate(25deg); }
}

/* Front-right leg — opposite phase */
@keyframes legCycleFR {
  0%, 100% { transform: rotate(25deg); }
  50%      { transform: rotate(-25deg); }
}

/* Rear-left leg */
@keyframes legCycleRL {
  0%, 100% { transform: rotate(-20deg); }
  50%      { transform: rotate(22deg); }
}

/* Rear-right leg — opposite phase */
@keyframes legCycleRR {
  0%, 100% { transform: rotate(20deg); }
  50%      { transform: rotate(-22deg); }
}

/* Head nods with stride */
@keyframes headBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* Tail wags relaxed while walking */
@keyframes tailPatrol {
  0%, 100% { transform: rotate(-15deg); }
  50%      { transform: rotate(20deg); }
}

/* Paw prints fade in and out */
@keyframes pawFadeIn {
  0%   { opacity: 0; transform: scale(0.5); }
  20%  { opacity: 0.7; transform: scale(1); }
  70%  { opacity: 0.5; }
  100% { opacity: 0; }
}

/* Hero scan line */
@keyframes scanLine {
  0%   { top: -2px; opacity: 0.8; }
  80%  { top: 100%; opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================================
   RADAR DOG COMPONENT STYLES
   ============================================================ */
.radar-dog-container {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.radar-dog-svg {
  animation:
    radarEntry 1s var(--ease-out) 0.5s both,
    dogGlow 3s ease-in-out 1.5s infinite;
  overflow: visible;
}

.radar-dog-chest {
  animation: breatheSit 3s ease-in-out 1.5s infinite;
  transform-origin: center center;
}

.radar-dog-ear-right {
  animation: earAlert 4s ease-in-out 2s infinite;
  transform-origin: 104px 38px;
}

.radar-dog-tail {
  animation: tailWagSit 2s ease-in-out 1.5s infinite;
  transform-origin: 42px 90px;
}

.radar-dog-eyes {
  animation: eyeGlow 2s ease-in-out 1.5s infinite;
}

/* ============================================================
   PATROL DOG COMPONENT STYLES
   ============================================================ */
.patrol-dog-wrap {
  position: absolute;
  bottom: 8px;
  left: 0;
  pointer-events: none;
  /* patrolWalk moves the whole wrapper left→right */
  animation: patrolWalk 12s linear infinite;
}

.patrol-dog-svg {
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(0,102,255,0.4));
}

.patrol-leg-fl {
  animation: legCycleFL 0.4s linear infinite;
  transform-origin: 28px 42px;
}

.patrol-leg-fr {
  animation: legCycleFR 0.4s linear infinite;
  transform-origin: 36px 42px;
}

.patrol-leg-rl {
  animation: legCycleRL 0.4s linear infinite;
  transform-origin: 72px 42px;
}

.patrol-leg-rr {
  animation: legCycleRR 0.4s linear infinite;
  transform-origin: 80px 42px;
}

.patrol-head {
  animation: headBob 0.8s ease-in-out infinite;
  transform-origin: 14px 18px;
}

.patrol-tail {
  animation: tailPatrol 0.8s ease-in-out infinite;
  transform-origin: 88px 28px;
}

/* Paw print trail dots */
.patrol-paw-trail {
  position: absolute;
  bottom: 4px;
  left: 0;
  display: flex;
  gap: 18px;
  pointer-events: none;
}

.patrol-paw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  animation: pawFadeIn 2s ease-in-out infinite;
}

.patrol-paw-dot:nth-child(1) { animation-delay: 0s; }
.patrol-paw-dot:nth-child(2) { animation-delay: 0.2s; }
.patrol-paw-dot:nth-child(3) { animation-delay: 0.4s; }
.patrol-paw-dot:nth-child(4) { animation-delay: 0.6s; }
.patrol-paw-dot:nth-child(5) { animation-delay: 0.8s; }
.patrol-paw-dot:nth-child(6) { animation-delay: 1.0s; }

/* ============================================================
   HERO SCAN LINE
   ============================================================ */
.hero-scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 30%, rgba(255,255,255,0.8) 50%, var(--blue) 70%, transparent 100%);
  animation: scanLine 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 72px;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(4px);
  border-bottom: 3px solid var(--blue);
}
.nav-logo img { height: 44px; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 4px;
  background: var(--blue);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover { opacity: 1; color: var(--blue2); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger (animates to X) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 30px; height: 3px;
  background: var(--blue);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://static.wixstatic.com/media/0f6d0d_8c7cc3e88e2e4fcaaf11031c011547ce~mv2.jpg') center/cover no-repeat;
}
/* Aggressive diagonal overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(17,17,17,0.92) 0%,
    rgba(17,17,17,0.75) 45%,
    rgba(0,102,255,0.22) 65%,
    rgba(17,17,17,0.88) 100%);
}
/* Diagonal slash */
.hero-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(17,17,17,0.7) 0%,
    rgba(17,17,17,0.7) 55%,
    transparent 55.5%,
    transparent 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 4;
  padding: 0 48px;
  max-width: 800px;
}
.hero-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  color: var(--white);
  line-height: 0.92;
  -webkit-text-stroke: 2px var(--white);
}
.hero h1 .stroke-text {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
  text-shadow: none;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 16px 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  transform: skewX(-6deg);
  transition: background 0.2s, transform 0.2s;
}
.hero-cta span { display: inline-block; transform: skewX(6deg); }
.hero-cta:hover { background: var(--blue2); transform: skewX(-6deg) scale(1.03); }
.hero-stat-preview {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
.hero-stat-preview strong { color: var(--blue); font-size: 1.4rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--blue);
  margin-bottom: 4px;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--white);
  margin-bottom: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NOSOTROS
   ============================================================ */
#nosotros {
  padding: 100px 0;
  background: var(--gray);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.nosotros-img-wrap {
  position: relative;
  overflow: hidden;
}
.nosotros-img-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: var(--blue);
  z-index: 2;
}
.nosotros-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 60%; height: 6px;
  background: var(--blue);
  z-index: 2;
}
.nosotros-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: saturate(0.7);
  transition: transform 0.4s;
}
.nosotros-img-wrap:hover img { transform: scale(1.03); }
.nosotros-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}
.accent-line {
  width: 60px; height: 4px;
  background: var(--blue);
  margin: 24px 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--blue);
  padding: 60px 0;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 20px; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ============================================================
   SERVICES — Card Flip
   ============================================================ */
#servicios {
  padding: 100px 0;
  background: var(--black);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card-outer {
  perspective: 1000px;
  height: 420px;
}
.service-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  cursor: pointer;
}
.service-card-outer:hover .service-card { transform: rotateY(180deg); }
.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.service-card-front {
  background: var(--gray);
}
.service-card-front img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  display: block;
  filter: saturate(0.5) brightness(0.7);
}
.service-front-body {
  padding: 20px;
  border-top: 4px solid var(--blue);
}
.service-front-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--blue);
  line-height: 1;
  opacity: 0.3;
}
.service-front-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.service-card-back {
  transform: rotateY(180deg);
  background: var(--blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.service-back-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
}
.service-card-back h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.service-card-back p,
.service-card-back ul {
  font-family: 'Barlow', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}
.service-card-back ul { list-style: none; padding: 0; }
.service-card-back ul li::before {
  content: '→ ';
  font-weight: 700;
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto {
  padding: 100px 0 60px;
  background: var(--gray);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.contact-info p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.7;
}
.contact-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray2);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  min-width: 90px;
  margin-top: 2px;
}
.contact-item-val {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.form-group input,
.form-group textarea {
  background: var(--black2);
  border: 2px solid transparent;
  border-bottom-color: var(--gray2);
  color: var(--white);
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transform: skewX(-6deg);
  transition: background 0.2s, transform 0.2s;
}
.btn-submit span { display: inline-block; transform: skewX(6deg); }
.btn-submit:hover { background: var(--blue2); transform: skewX(-6deg) scale(1.05); }

.success-msg {
  background: rgba(0,102,255,0.1);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 24px;
  display: none;
}
.success-msg.show { display: block; }

/* ============================================================
   MAP
   ============================================================ */
#mapContainer {
  height: 500px;
  width: 100%;
  border-top: 4px solid var(--blue);
}
#mapContainer iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--black2);
  border-top: 4px solid var(--blue);
  padding: 48px 0 90px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-logo img { height: 48px; }
.footer-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.25em;
  color: var(--blue);
}
.footer-copy {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* Footer patrol strip */
.footer-patrol-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: var(--gray);
  border-top: 1px solid var(--gray2);
  overflow: hidden;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border-top: 4px solid var(--blue);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.1em;
  color: var(--white);
  opacity: 0.7;
  transition: color 0.2s, opacity 0.2s;
}
.mobile-menu a:hover { color: var(--blue); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nosotros-grid,
  .contacto-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-outer { height: 380px; }
  .stats-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 24px; }
  .container { padding: 0 24px; }
  .stats-inner { padding: 0 24px; }
  .radar-dog-container { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
