:root {
  --primary: #c1121f;
  --secondary: #003049;
  --accent: #f77f00;
  --dark: #111111;
  --gray: #666666;
  --light: #f7f8fa;
  --white: #ffffff;
  --border: #e7e7e7;
  --shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}
.section {
  padding: 85px 0;
}

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px;
}
.section-title h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 15px;
  color: var(--secondary);
}
.section-title p {
  color: var(--gray);
  font-size: 17px;
}

.btn {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover,
.btn-secondary:hover,
.product-card:hover,
.service-card:hover,
.gallery-card:hover,
.testimonial-card:hover,
.contact-card:hover,
.why-card:hover {
  transform: translateY(-4px);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow);
}

.topbar {
  background: var(--secondary);
  color: var(--white);
  font-size: 14px;
  padding: 10px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* LOGO (SVG) - FIX */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-weight: 700;
  color: var(--secondary);
  font-size: 15px;
}

.hero {
  background: linear-gradient(135deg, rgba(193, 18, 31, 0.08), rgba(0, 48, 73, 0.05));
  padding: 90px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(193, 18, 31, 0.12);
  color: var(--primary);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--secondary);
}
.hero p {
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 28px;
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--gray);
  font-weight: 700;
  font-size: 15px;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card h3 {
  color: var(--secondary);
  margin-bottom: 18px;
  font-size: 25px;
}
.hero-card ul {
  display: grid;
  gap: 12px;
  color: var(--gray);
  font-weight: 700;
}

.services-grid,
.products-grid,
.why-grid,
.gallery-grid,
.testimonial-grid,
.contact-grid,
.seo-grid,
.footer-grid {
  display: grid;
  gap: 24px;
}

.services-grid,
.products-grid,
.why-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.product-card,
.why-card,
.testimonial-card,
.contact-card,
.seo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.service-card h3,
.product-card h3,
.why-card h3,
.testimonial-card h3,
.contact-card h3,
.seo-card h3 {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 22px;
}

.service-card p,
.product-card p,
.why-card p,
.testimonial-card p,
.contact-card p,
.seo-card p,
.seo-card li,
.about-content p,
.cta-box p,
.faq-answer,
footer p,
footer li {
  color: var(--gray);
}

.about {
  background: var(--light);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-image {
  min-height: 430px;
  background:
    linear-gradient(rgba(0, 48, 73, 0.14), rgba(193, 18, 31, 0.12)),
    url('../images/nosotros.jpg') center/cover no-repeat;
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.about-image::after,
.gallery-image::after,
.product-image::after {
  content: 'AQUI VA TU IMAGEN';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  font-size: 20px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.18);
}

.about-content h2 {
  color: var(--secondary);
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 18px;
}
.about-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  font-weight: 700;
  color: var(--secondary);
}

.products-grid .product-card {
  padding: 0;
  overflow: hidden;
}
.product-image,
.gallery-image {
  height: 240px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.product-info {
  padding: 24px;
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}
.gallery-card {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  border: 1px solid var(--border);
  background: var(--white);
}
.gallery-caption {
  padding: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.cta-box {
  background: linear-gradient(135deg, var(--secondary), #00263a);
  color: var(--white);
  border-radius: 28px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.cta-box h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 14px;
}

.faq {
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--secondary);
  font-size: 18px;
}
.faq-answer {
  margin-top: 12px;
}

.seo-section {
  background: var(--light);
}
.seo-grid {
  grid-template-columns: repeat(2, 1fr);
}
.seo-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  list-style: disc;
}

.contact-grid {
  grid-template-columns: repeat(3, 1fr);
}
.contact-card a {
  color: var(--primary);
  font-weight: 700;
}

footer {
  background: var(--secondary);
  color: var(--white);
  padding: 55px 0 25px;
}
.footer-grid {
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
}
footer h3,
footer h4 {
  margin-bottom: 14px;
}
footer ul {
  display: grid;
  gap: 8px;
}

.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid,
  .products-grid,
  .why-grid,
  .testimonial-grid,
  .contact-grid,
  .seo-grid,
  .footer-grid,
  .cta-box,
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar {
    flex-direction: column;
    padding: 14px 0;
  }
  nav ul {
    justify-content: center;
    gap: 14px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 70px 0;
  }
  .cta-box {
    padding: 30px;
  }
  .hero {
    padding: 70px 0 55px;
  }
  .topbar .container {
    justify-content: center;
    text-align: center;
  }
  .logo img {
    height: 52px;
  }
}
