/* ===== VARIABLES & RESET ===== */
:root {
  --navy: #0d1f3c;
  --navy2: #162a4f;
  --orange: #f07020;
  --orange2: #e05c0a;
  --gray: #8b97a8;
  --light: #f4f6f9;
  --white: #ffffff;
  --dark-section: #0a1829;
  --text: #1e2d3d;
  --text-light: #5a6b7c;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(13,31,60,.12);
  --shadow-lg: 0 20px 60px rgba(13,31,60,.18);
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 24, 41, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--orange);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: 1px; }
.logo-asstec { color: var(--white); }
.logo-frio { color: var(--orange); }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.8);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all .2s;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--orange); background: rgba(240,112,32,.08); }
.nav-admin {
  background: var(--orange) !important;
  color: white !important;
  border-radius: 6px !important;
}
.nav-admin:hover { background: var(--orange2) !important; }
.hamburger {
  display: none; background: none; border: none;
  color: white; font-size: 24px; cursor: pointer;
}
.mobile-menu {
  display: none; flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,.8); padding: 10px 0;
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
  letter-spacing: .5px; text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 0 24px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(240,112,32,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(240,112,32,.08) 0%, transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,.03) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,.03) 60px);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding-top: 80px;
  animation: heroIn .8s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.hero-badge {
  display: inline-block;
  background: rgba(240,112,32,.15);
  border: 1px solid rgba(240,112,32,.4);
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 800;
  line-height: .95;
  color: white;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero-content h1 span { color: var(--orange); }
.hero-content p {
  font-size: 18px; color: rgba(255,255,255,.7);
  line-height: 1.6; max-width: 500px; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange);
  color: white;
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: all .25s;
  display: inline-flex; align-items: center;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,112,32,.4); }
.btn-whatsapp {
  background: #25D366;
  color: white;
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 14px 28px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s;
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.35); }
.hero-card {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 2;
  animation: heroIn .8s .3s ease both;
}
.hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px 28px;
  text-align: center;
  color: white;
}
.hero-stat span { font-family: var(--font-head); font-size: 42px; font-weight: 800; color: var(--orange); }
.hero-stat small { display: block; font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.3); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--dark-section); }
.section-accent { background: var(--navy); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; text-transform: uppercase; line-height: 1;
  color: var(--navy);
}
.section-dark .section-header h2,
.section-accent .section-header h2 { color: white; }
.section-header h2 span { color: var(--orange); }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(13,31,60,.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: all .3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  font-size: 40px; margin-bottom: 16px;
  display: block;
}
.service-card h3 {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  color: var(--navy); text-transform: uppercase; margin-bottom: 10px;
}
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.service-items {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px;
}
.service-item {
  font-size: 12px; font-weight: 600;
  background: var(--light); color: var(--navy2);
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: .3px;
}

/* ===== PORTFOLIO ===== */
.portfolio-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 40px;
}
.filter-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 20px; border-radius: 50px; cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange); border-color: var(--orange); color: white;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.portfolio-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  background: var(--navy2);
  aspect-ratio: 4/3;
  transition: transform .3s;
}
.portfolio-item:hover { transform: scale(1.03); }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .3s;
}
.portfolio-item-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: rgba(255,255,255,.3);
  font-size: 48px;
}
.portfolio-item-placeholder span { font-size: 14px; margin-top: 8px; color: rgba(255,255,255,.2); font-family: var(--font-head); letter-spacing: 1px; }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(13,31,60,.9) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 20px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-info h4 {
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  color: white; text-transform: uppercase;
}
.portfolio-info .tag {
  display: inline-block;
  background: var(--orange); color: white;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-top: 4px;
}
.portfolio-empty {
  grid-column: 1/-1; text-align: center;
  padding: 60px; color: rgba(255,255,255,.3);
  font-family: var(--font-head); font-size: 20px; text-transform: uppercase; letter-spacing: 2px;
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid rgba(13,31,60,.08);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: box-shadow .3s;
}
.review-card:hover { box-shadow: var(--shadow-lg); }
.review-stars { color: #f5a623; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text {
  font-size: 15px; color: var(--text-light);
  line-height: 1.7; margin-bottom: 16px;
  font-style: italic;
}
.review-text::before { content: '"'; font-size: 40px; color: var(--orange); line-height: 0; vertical-align: -14px; margin-right: 4px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--orange);
  flex-shrink: 0;
}
.review-author-info strong { display: block; font-weight: 600; font-size: 14px; }
.review-author-info small { font-size: 12px; color: var(--gray); }
.review-badge {
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--orange);
  background: rgba(240,112,32,.08); padding: 3px 8px; border-radius: 4px;
}

/* ===== FORM ===== */
.form-wrapper { max-width: 800px; margin: 0 auto; }
.quote-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label {
  font-family: var(--font-head); font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 14px 16px;
  color: white; font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color .2s;
  width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--orange);
}
.form-group select option { background: var(--navy); color: white; }
.form-group textarea { resize: vertical; }
.form-actions { text-align: center; }
.form-actions .btn-primary { padding: 16px 48px; font-size: 17px; }
.form-success {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 60px 40px;
  text-align: center; color: white;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--orange); color: white;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 { font-family: var(--font-head); font-size: 28px; text-transform: uppercase; margin-bottom: 8px; }
.form-success p { color: rgba(255,255,255,.6); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid rgba(13,31,60,.08);
  border-radius: var(--radius);
  padding: 32px 24px; text-align: center;
  transition: box-shadow .3s;
}
.contact-card:hover { box-shadow: var(--shadow-lg); }
.contact-card.highlight { background: var(--navy); }
.contact-icon { font-size: 36px; margin-bottom: 12px; }
.contact-card h4 {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy); margin-bottom: 8px;
}
.contact-card.highlight h4 { color: white; }
.contact-card a { color: var(--orange); font-weight: 600; }
.contact-card p { color: var(--text-light); font-size: 15px; }
.btn-whatsapp-full {
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: white;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 12px 24px; border-radius: 8px; width: 100%;
  transition: background .2s;
}
.btn-whatsapp-full:hover { background: #1ebe5d; }

/* ===== FOOTER ===== */
.footer {
  background: #060f1e;
  border-top: 2px solid var(--orange);
  padding: 40px 24px; text-align: center;
}
.footer p { color: rgba(255,255,255,.5); font-size: 14px; margin-top: 8px; }
.footer-copy { font-size: 12px; margin-top: 4px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.85); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 16px; overflow: hidden;
  max-width: 700px; width: 100%;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.5); border: none;
  color: white; font-size: 18px; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.modal-box img { width: 100%; max-height: 400px; object-fit: cover; }
.modal-info { padding: 24px; }
.modal-info h3 { font-family: var(--font-head); font-size: 24px; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.modal-info p { font-size: 15px; color: var(--text-light); margin: 8px 0; line-height: 1.6; }
.modal-tag {
  display: inline-block; background: var(--orange); color: white;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 4px; text-transform: uppercase;
  margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-card { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 24px 20px; }
}
