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

:root {
  --red: #CC0000;
  --red-dark: #AA0000;
  --anthracite: #333333;
  --anthracite-light: #555555;
  --white: #FFFFFF;
  --off-white: #F8F7F5;
  --light-gray: #EEEEEE;
  --border: #E0E0E0;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 36px rgba(204,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--anthracite-light); }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-tag { display: inline-block; background: rgba(204,0,0,0.1); color: var(--red); font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 12px; }
.section-title { margin-bottom: 12px; color: var(--anthracite); }
.section-subtitle { color: var(--anthracite-light); font-size: 1.05rem; margin-bottom: 48px; max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(204,0,0,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); }
.btn-outline-red { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1200px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 54px; width: auto; }
.logo-text { font-weight: 800; font-size: 1.3rem; color: var(--red); letter-spacing: -0.5px; }

nav { display: flex; align-items: center; gap: 8px; }
nav a {
  font-weight: 600; font-size: 0.9rem; color: var(--anthracite);
  padding: 8px 14px; border-radius: 8px; transition: var(--transition);
}
nav a:hover, nav a.active { color: var(--red); background: rgba(204,0,0,0.07); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.burger span { display: block; width: 24px; height: 2px; background: var(--anthracite); border-radius: 2px; transition: var(--transition); }

/* Mobile nav */
.mobile-nav {
  display: none; flex-direction: column; padding: 16px 20px 20px;
  border-top: 1px solid var(--border); background: var(--white);
}
.mobile-nav a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--light-gray); }
.mobile-nav .btn { margin-top: 16px; justify-content: center; }
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(30,30,30,0.88) 0%, rgba(204,0,0,0.75) 100%),
              url('assets/hero-bg.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  padding: 120px 20px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 780px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: #fff; font-size: 0.82rem; font-weight: 600; padding: 8px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.25); margin-bottom: 24px; }
.hero-badge span { width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero h1 em { color: #FFAAAA; font-style: normal; }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 36px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 48px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; }
.stat { color: var(--white); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: #FFAAAA; }
.stat span { font-size: 0.85rem; opacity: 0.8; }

/* ===== SECTION GENERIC ===== */
section { padding: 80px 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--anthracite); color: var(--white); }
.section-dark p, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-tag { background: rgba(255,255,255,0.15); color: #FFAAAA; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card:hover::before { transform: scaleX(1); }
.service-img {
  margin: -32px -24px 16px;
  height: 190px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }

.service-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(204,0,0,0.12), rgba(204,0,0,0.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.service-card h3 { color: var(--anthracite); margin-bottom: 4px; }
.service-card p { font-size: 0.9rem; flex: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red); font-weight: 700; font-size: 0.85rem;
  transition: var(--transition);
}
.service-link:hover { gap: 10px; }

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why-image { border-radius: var(--radius); overflow: hidden; position: relative; }
.why-image img { width: 100%; height: 450px; object-fit: cover; }
.why-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--red); color: var(--white);
  border-radius: var(--radius); padding: 20px 24px; text-align: center;
  box-shadow: var(--shadow);
}
.why-badge strong { display: block; font-size: 2.5rem; font-weight: 800; }
.why-badge span { font-size: 0.82rem; opacity: 0.9; }
.why-points { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.why-point {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--off-white); border-radius: var(--radius);
  transition: var(--transition);
}
.why-point:hover { background: var(--white); box-shadow: var(--shadow); }
.why-point-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.why-point h4 { color: var(--anthracite); margin-bottom: 4px; }
.why-point p { font-size: 0.88rem; }

/* ===== BLOG PREVIEW ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card-img { height: 200px; overflow: hidden; background: linear-gradient(135deg, var(--anthracite), var(--red)); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; display: block; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 24px; }
.blog-tag { display: inline-block; background: rgba(204,0,0,0.1); color: var(--red); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.blog-card h3 { font-size: 1.05rem; color: var(--anthracite); margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.88rem; }
.blog-card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 0.85rem; margin-top: 16px; transition: var(--transition); }
.blog-card-link:hover { gap: 10px; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, #990000 100%);
  padding: 60px 20px; text-align: center; color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.88); margin-bottom: 32px; font-size: 1.05rem; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); }

/* ===== FOOTER ===== */
footer {
  background: #1A1A1A; color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { color: var(--white); font-size: 1.5rem; }
.footer-brand p { margin: 16px 0; font-size: 0.9rem; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 0.95rem; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 6px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.88rem; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
}
.footer-keywords { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  animation: float 3s ease-in-out infinite;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,0.7); }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-tooltip {
  position: absolute; right: 70px; background: var(--anthracite);
  color: var(--white); padding: 8px 14px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%); border: 6px solid transparent;
  border-right: none; border-left-color: var(--anthracite);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ===== BLOG PAGE ===== */
.page-hero {
  background: linear-gradient(135deg, var(--anthracite) 0%, #1a1a1a 100%);
  padding: 140px 20px 60px; color: var(--white); text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

.blog-article { max-width: 860px; margin: 0 auto; padding: 60px 20px; }
.blog-article-img {
  width: 100%; height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 20px 0 28px;
  display: block;
}
.blog-article h2 { color: var(--anthracite); margin: 40px 0 16px; padding-top: 8px; border-top: 2px solid var(--light-gray); }
.blog-article h3 { color: var(--red); margin: 28px 0 12px; }
.blog-article p { margin-bottom: 18px; line-height: 1.8; }
.blog-article ul { margin: 16px 0 24px 0; }
.blog-article ul li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--light-gray);
  font-size: 0.95rem; color: var(--anthracite-light);
}
.blog-article ul li::before { content: '✓'; color: var(--red); font-weight: 800; flex-shrink: 0; }
.blog-cta-box {
  background: linear-gradient(135deg, var(--red), #990000);
  color: var(--white); border-radius: var(--radius);
  padding: 36px; text-align: center; margin: 48px 0;
}
.blog-cta-box h3 { color: var(--white); margin-bottom: 12px; }
.blog-cta-box p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

/* ===== FAQ PAGE ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-question {
  width: 100%; text-align: left; padding: 22px 24px;
  background: var(--white); border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--anthracite); transition: var(--transition);
}
.faq-question:hover { background: var(--off-white); }
.faq-item.open .faq-question { background: var(--red); color: var(--white); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(204,0,0,0.1); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem; font-weight: 300;
  transition: var(--transition);
}
.faq-item.open .faq-icon { background: rgba(255,255,255,0.2); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer-inner { padding: 0 24px 24px; color: var(--anthracite-light); line-height: 1.8; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 600px; }

/* ===== ANIMATIONS ===== */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  nav, .header-cta .btn { display: none; }
  .burger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 20px; }
  .stat strong { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}
