/* ==========================================================================
   Variables & Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #424242; /* Tertiary from Palette */
  --gray-800: #212121; /* Secondary from Palette */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px; /* Evita que el navbar fijo tape el título al hacer clic en los enlaces */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex-grow: 1;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

header.scrolled {
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
}

.logo-wrap svg,
.logo-wrap img {
  width: auto;
  height: 96px; /* 100% larger than previous (48px) */
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-text p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  #desktop-nav { display: flex; }
}

#desktop-nav a {
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

#desktop-nav a:hover:not(.btn-outline) {
  color: var(--black);
}

.btn-outline {
  border: 2px solid var(--black);
  padding: 8px 20px;
  border-radius: 8px;
  color: var(--black) !important;
}

.btn-outline:hover {
  background-color: var(--black);
  color: var(--white) !important;
}

#mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black);
}

@media (min-width: 768px) {
  #mobile-menu-btn { display: none; }
}

#mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 16px 24px;
}

#mobile-nav.active {
  display: flex;
}

#mobile-nav a {
  padding: 12px 0;
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  width: 100%;
  margin-top: 80px; /* offset header */
  min-height: calc(100vh - 80px); /* Keeps the feeling of a full hero screen */
  display: flex;
  align-items: center;
  padding: 60px 0;
  background-color: var(--white);
}

.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 40px;
}

@media (min-width: 992px) {
  .hero-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.hero-content {
  width: 100%;
  flex: 1;
}

.hero-text-box {
  max-width: 600px;
}

.hero-text-box h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--black);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--black);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px; /* Slightly squarer */
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--gray-800);
}

.hero-image-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 520px; /* Increased 15% from 450px */
  height: auto;
  object-fit: contain;
  animation: floatDelicate 6s ease-in-out infinite; /* Añadida animación sutil */
}

@keyframes floatDelicate {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  padding: 60px 0; /* Reduced from 100px */
  background-color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px; /* Reduced from 80px */
}

.section-header h3 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}

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

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-img-wrap {
  width: 100%;
  height: 140px; /* Reduced from 200px */
  margin-bottom: 20px; /* Reduced from 32px */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  transition: var(--transition);
}

.service-card:hover .service-img-wrap {
  transform: scale(1.05);
}

.service-img-wrap img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h4 {
  font-size: 1.35rem; /* Slightly smaller to fit compact layout */
  font-weight: 800;
  margin-bottom: 8px; /* Reduced from 16px */
  color: var(--black);
}

.service-card p {
  color: var(--gray-600); /* Tertiary color #424242 */
  font-size: 1rem;
  line-height: 1.6;
  max-width: 320px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy p {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  text-decoration: none;
}

.footer-socials a:hover {
  background-color: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

/* ==========================================================================
   Feature Sections (Asesoría & Cámaras) - Compact One-Screen Layout
   ========================================================================== */
.feature-section {
  padding: 60px 0;
  background-color: var(--white);
}

.feature-section.alt {
  background-color: #fafafa;
}

.section-subtitle {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.6;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .compact-grid { grid-template-columns: repeat(4, 1fr); }
}

.compact-card {
  text-align: center;
  padding: 20px 16px;
  transition: var(--transition);
}

.compact-card:hover {
  transform: translateY(-6px);
}

.compact-card img {
  height: 90px;
  width: auto;
  margin: 0 auto 16px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.compact-card:hover img {
  transform: scale(1.12) translateY(-4px);
}

.compact-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}

.compact-card p {
  color: var(--gray-600);
  font-size: 0.88rem;
  line-height: 1.55;
}

.fade-delay-3 { transition-delay: 0.6s; }

/* ==========================================================================
   Mobile Responsive - Full overrides
   ========================================================================== */
@media (max-width: 767px) {

  /* Header */
  .header-inner { padding: 12px 16px; }
  .logo-wrap img { height: 64px; }

  /* Hero */
  .hero { margin-top: 90px; padding: 40px 0 32px; min-height: unset; }
  .hero-inner { gap: 28px; }
  .hero-text-box h2 { font-size: 2.2rem; }
  .hero-image-wrap img { max-width: 90vw; }

  /* Services */
  .services { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-img-wrap { height: 120px; }

  /* Feature sections */
  .feature-section { padding: 48px 0; }
  .compact-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .compact-card img { height: 72px; }
  .compact-card h4 { font-size: 0.9rem; }
  .compact-card p { font-size: 0.8rem; }

  /* Wireless note */
  .wireless-note { padding: 16px; }

  /* Contact */
  .contact-section { padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
  .contact-card { padding: 20px 20px; }
  .contact-value { font-size: 0.95rem; }

  /* Section titles */
  .section-header h3 { font-size: 1.8rem; }
  .section-subtitle { font-size: 0.95rem; }

  /* Footer */
  .footer-inner { text-align: center; }
}

/* ==========================================================================
   Contact Section — Minimal Strip
   ========================================================================== */
.contact-section {
  background-color: var(--gray-800);
  margin-top: 80px; /* Espacio extra sugerido */
  padding: 32px 0 24px;
  text-align: center;
}

.contact-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.contact-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75); /* Corregido: texto gris claro */
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.08); /* Hover tenue */
  color: var(--white); /* Pasa a blanco al hacer hover */
}

.contact-item i {
  font-size: 1.15rem;
}

.ci-wa  { color: #25D366; animation: waPulse 2.5s ease-in-out infinite; }
.ci-mail { color: rgba(255, 255, 255, 0.75); } /* Corregido ícono email */
.ci-ig  {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

@media (max-width: 600px) {
  .contact-sep { display: none; }
  .contact-row { flex-direction: column; gap: 4px; }
  .contact-item { width: 100%; justify-content: center; }
}

/* Footer Bar */
footer {
  background-color: var(--gray-800);
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Separador muy suave */
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-copy-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}



/* Wireless Note */
.wireless-note {
  margin-top: 48px;
  padding: 20px 28px;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--black);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--white);
}

@media (min-width: 768px) {
  .wireless-note {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
}

.wireless-note i {
  font-size: 1.5rem;
  color: var(--black);
  flex-shrink: 0;
  margin-top: 2px;
}

.wireless-note p {
  color: var(--gray-800);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.wireless-note p strong {
  color: var(--black);
}

.wireless-disclaimer {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--gray-400);
  font-style: italic;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-delay-1 { transition-delay: 0.2s; }
.fade-delay-2 { transition-delay: 0.4s; }
