/* ---------- RESET & VARIABLES ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #0a4b7a;
  --primary-light: #2c7cb0;
  --accent: #dc2626;
  --light-bg: #f4f8fc;
  --gray-light: #eef2f6;
  --text-dark: #1e2a3a;
  --text-soft: #4a5a6e;
  --white: #ffffff;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ---------- TOP BAR (responsive) ---------- */
.top-bar {
  background-color: var(--primary);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
}
.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.top-bar i {
  margin-right: 6px;
  color: white;
}
.top-bar .container > div:last-child i {
  color: white;
}
.top-bar span {
  margin-right: 16px;
}
@media (max-width: 550px) {
  .top-bar .container {
    flex-direction: column;
    text-align: center;
  }
  .top-bar span {
    margin-right: 8px;
  }
}

/* ---------- HEADER (responsive) ---------- */
.main-header {
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}
.logo {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--accent);
  font-weight: 300;
  font-size: 1.4rem;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: var(--white);
  transition: 0.2s;
  font-size: 1.05rem;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  transition: 0.2s;
  font-size: 1.05rem;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active,
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.btn-outline {
  border: 2px solid var(--accent);
  background: transparent;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.95rem;
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
}
.btn-primary {
  background: var(--accent);
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 8px 16px -6px rgba(220,38,38,0.25);
}
@media (max-width: 700px) {
  .main-header .container {
    justify-content: center;
  }
  .nav-links {
    justify-content: center;
    gap: 1rem;
  }
}
@media (max-width: 450px) {
  .nav-links a {
    font-size: 0.9rem;
  }
  .btn-outline {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
}

/* ---------- PARALLAX EFFECT ---------- */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ---------- HERO responsive ---------- */
.hero {
  background: linear-gradient(100deg, #ffffff 50%, var(--light-bg) 50%);
  padding: 50px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 300px;
}
.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-badge {
  background: var(--accent);
  color: white;
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-image {
  flex: 1 1 250px;
  border-radius: 30px;
  height: 340px;
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 600px) {
  .hero .container {
    flex-direction: column-reverse;
  }
  .hero-image {
    width: 100%;
    height: 240px;
  }
}

/* ---------- SECTIONS responsive ---------- */
.section {
  padding: 60px 0;
}
@media (max-width: 700px) {
  .section {
    padding: 40px 0;
  }
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 15px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary);
  margin-bottom: 15px;
}

/* grids automáticas responsive */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}
.service-card, .reason-card, .team-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px 20px;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-light);
  transition: 0.2s;
}
.service-card {
  text-align: center;
}
.service-card-img {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
}
.icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* about block responsive */
.about-block {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--light-bg);
  border-radius: 50px;
  padding: 35px;
}
.about-text {
  flex: 2;
  min-width: 260px;
}
.founder {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.founder-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.stats {
  display: flex;
  gap: 30px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.stats div h4 {
  font-size: 1.8rem;
  color: var(--primary);
}

/* about right image */
.about-image {
  flex: 1;
  min-width: 200px;
  height: 280px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
}

/* testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.testimonial-card {
  background: var(--light-bg);
  border-radius: 24px;
  padding: 25px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

/* ---------- INNER PAGES responsive ---------- */
.page-header {
  background: linear-gradient(145deg, var(--primary) 0%, #0c3860 100%);
  color: white;
  padding: 50px 20px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 10px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-feature {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.service-feature i {
  font-size: 2rem;
  color: white;
  background: var(--accent);
  padding: 16px;
  border-radius: 50%;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-size: cover;
  background-position: center;
}

/* contact page */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}
.contact-item {
  background: var(--light-bg);
  padding: 25px 20px;
  border-radius: 24px;
  text-align: center;
}
.contact-item i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.emergency-badge {
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 40px;
  display: inline-block;
}

/* brands */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}
.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* footer responsive */
.footer {
  background: var(--primary);
  color: white;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  cursor: pointer;
}

/* forms responsive */
input, textarea {
  max-width: 100%;
}
