@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --orange: #F5821F;
  --orange-dark: #D0620A;
  --orange-glow: rgba(245, 130, 31, 0.25);
  --blue: #47B4E8;
  --blue-dark: #1A7BB5;
  --blue-glow: rgba(71, 180, 232, 0.25);
  --yellow: #FFCC00;
  --bg: #0E1117;
  --bg-card: #161C27;
  --bg-card-hover: #1E2535;
  --border: rgba(255,255,255,0.08);
  --text: #F0F4F8;
  --text-muted: #8B97A8;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 4rem);
  height: 70px;
  background: rgba(14, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav-logo span.hot { color: var(--orange); }
.nav-logo span.cold { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--orange); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--orange-glow);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vw, 7rem) clamp(1rem, 5vw, 4rem);
  overflow: hidden;
  min-height: 90vh;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,130,31,0.12) 0%, rgba(71,180,232,0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(71,180,232,0.1);
  border: 1px solid rgba(71,180,232,0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 0.3em;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-title .line-orange { color: var(--orange); display: block; }
.hero-title .line-white { color: var(--text); display: block; }
.hero-title .line-blue { color: var(--blue); display: block; }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 1.2rem auto 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

.phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}

.phone-card.papa {
  border-color: rgba(245,130,31,0.3);
  background: rgba(245,130,31,0.05);
}

.phone-card.socio {
  border-color: rgba(71,180,232,0.3);
  background: rgba(71,180,232,0.05);
}

.phone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--orange-glow);
}

.phone-card.socio:hover {
  box-shadow: 0 8px 30px var(--blue-glow);
}

.phone-icon { font-size: 1.4rem; }

.phone-info { text-align: left; }
.phone-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.phone-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.phone-card.papa .phone-number { color: var(--orange); }
.phone-card.socio .phone-number { color: var(--blue); }

.phone-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ─── SECTION LAYOUT ─── */
.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
}

/* ─── FILTER TABS ─── */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.filter-tab:hover,
.filter-tab.active[data-cat="all"] { 
  background: var(--orange); 
  border-color: var(--orange); 
  color: #fff; 
}

.filter-tab.active[data-cat="aire"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.filter-tab.active[data-cat="electrico"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card[data-cat="aire"]::before { background: var(--blue); }
.service-card[data-cat="electrico"]::before { background: var(--yellow); }

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245,130,31,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 0 transparent;
}

.service-card[data-cat="aire"]:hover {
  border-color: rgba(71,180,232,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px var(--blue-glow);
}

.service-card[data-cat="electrico"]:hover {
  border-color: rgba(255,204,0,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,204,0,0.15);
}

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

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.card-cat-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
}

.service-card[data-cat="aire"] .card-cat-badge {
  background: rgba(71,180,232,0.15);
  color: var(--blue);
  border: 1px solid rgba(71,180,232,0.3);
}

.service-card[data-cat="electrico"] .card-cat-badge {
  background: rgba(255,204,0,0.1);
  color: var(--yellow);
  border: 1px solid rgba(255,204,0,0.3);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: gap 0.2s ease;
}

.service-card[data-cat="aire"] .card-arrow { color: var(--blue); }
.service-card[data-cat="electrico"] .card-arrow { color: var(--yellow); }

.service-card:hover .card-arrow { gap: 10px; }

/* ─── WHY US / STATS ─── */
.why-section {
  background: linear-gradient(135deg, rgba(245,130,31,0.05) 0%, rgba(71,180,232,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-content .section-label { margin-bottom: 0.4rem; }
.why-content .section-title { margin-bottom: 1rem; }
.why-content p { color: var(--text-muted); max-width: 480px; line-height: 1.8; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card:nth-child(1) .stat-number { color: var(--orange); }
.stat-card:nth-child(2) .stat-number { color: var(--blue); }
.stat-card:nth-child(3) .stat-number { color: var(--yellow); }
.stat-card:nth-child(4) .stat-number { color: var(--orange); }

.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ─── CONTACT FOOTER ─── */
.contact-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
}

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-title span { color: var(--orange); }

.contact-sub { color: var(--text-muted); font-size: 0.95rem; }

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-phone-row .who {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 80px;
  text-align: right;
}

.contact-phone-row a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.contact-phone-row.papa a {
  background: rgba(245,130,31,0.1);
  border: 1px solid rgba(245,130,31,0.3);
  color: var(--orange);
}

.contact-phone-row.papa a:hover {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 20px var(--orange-glow);
}

.contact-phone-row.socio a {
  background: rgba(71,180,232,0.1);
  border: 1px solid rgba(71,180,232,0.3);
  color: var(--blue);
}

.contact-phone-row.socio a:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px var(--blue-glow);
}

/* ─── SITE FOOTER ─── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1rem, 5vw, 4rem);
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--orange); font-weight: 600; }

/* ─── SERVICE DETAIL PAGE ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--orange); }
.breadcrumb span { opacity: 0.4; }

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.detail-icon { font-size: 4rem; margin-bottom: 1rem; }

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

.detail-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.detail-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(245,130,31,0.15);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.detail-cta-box {
  background: linear-gradient(135deg, rgba(245,130,31,0.1), rgba(71,180,232,0.08));
  border: 1px solid rgba(245,130,31,0.25);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.detail-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.detail-cta-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  transition: var(--transition);
  margin: 4px;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* ─── GALLERY ─── */
.gallery-section { margin-top: 2rem; }

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.gallery-pair {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-pair-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.gallery-pair-images img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-pair-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
  white-space: nowrap;
}

.gallery-pair-label {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-pair-label .antes { color: #ff6b6b; }
.gallery-pair-label .despues { color: #51cf66; }

.empty-gallery {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.empty-gallery h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.empty-gallery p { font-size: 0.85rem; color: var(--text-muted); opacity: 0.6; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── HIDDEN for filtering ─── */
.service-card.hidden {
  display: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  
  .why-inner { grid-template-columns: 1fr; gap: 2rem; }
  
  .contact-inner { grid-template-columns: 1fr; }
  .contact-phones { flex-direction: row; flex-wrap: wrap; }
  .contact-phone-row .who { display: none; }
  
  .detail-hero { grid-template-columns: 1fr; gap: 2rem; }
  
  .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-phones { flex-direction: column; align-items: stretch; }
  .phone-card { justify-content: center; }
}
