/* =============================
   VARIABLES & RESET
   ============================= */
:root {
  --orange: #e8632b;
  --orange-dark: #c94f1a;
  --orange-light: #f5a06a;
  --dark: #1a1a1a;
  --contact-bg: #2b1a0e;
  --gray: #555;
  --light-gray: #f7f5f2;
  --white: #ffffff;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: clip;
}

img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.mt-2 { margin-top: 1.5rem; }

/* =============================
   LOGO / BADGE
   ============================= */
.logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-circle--lg {
  width: 72px;
  height: 72px;
  border-width: 3px;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--orange);
  letter-spacing: 1px;
}
.logo-circle--lg .logo-text { font-size: 1.4rem; }
.logo-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  color: var(--white);
  text-transform: uppercase;
}
@media (max-width: 960px) {
  .logo-brand { display: none; }
}

/* =============================
   BUTTONS
   ============================= */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn--outline:hover {
  background: var(--white);
  color: var(--orange);
}

/* =============================
   SECTION TITLES
   ============================= */
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.section-title--white { color: var(--white); text-align: center; }
.section-title--italic {
  font-style: italic;
  color: var(--orange);
  text-align: center;
}

/* =============================
   NAVBAR
   ============================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(26,16,8,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232,99,43,0.2);
}
.navbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar__logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.badge-logo-img {
  width: 160px;
  height: auto;
  object-fit: contain;
}
.footer__logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar__links {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
}
.navbar__links a {
  font-family: var(--font-head);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color var(--transition);
  white-space: nowrap;
}
.navbar__links a:hover { color: var(--orange); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================
   HERO  — matches Canva: ~50vh banner, warm office image,
           text overlaid at bottom-left in orange italic
   ============================= */
.hero {
  position: relative;
  height: 60vh;
  min-height: 420px;
  max-height: 620px;
  margin-top: 68px;                   /* clear fixed navbar */
  background: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?w=1600&q=80')
    center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding-bottom: 56px;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(30,12,4,0.55) 70%,
    rgba(30,12,4,0.72) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 6vw;
}
.hero__tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--orange-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--orange);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* =============================
   CONÓCENOS
   ============================= */
.conocenos {
  padding: 88px 0 72px;
  background: var(--white);
}
.conocenos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.conocenos__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.conocenos__img { height: 100%; }
.conocenos__text p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.85;
}
.highlight {
  color: var(--orange);
  font-weight: 700;
}
.conocenos__badge {
  position: absolute;
  right: 0;
  bottom: -24px;
}

/* =============================
   SERVICIOS  — orange background like the Canva
   ============================= */
.servicios {
  background: var(--orange);
  padding: 80px 0 90px;
}
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,0.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.service-card__img-wrap {
  height: 180px;
  overflow: hidden;
}
.service-card__img-wrap img {
  height: 100%;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card__img-wrap img { transform: scale(1.05); }
.service-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--orange);
  text-align: center;
  padding: 18px 16px 8px;
}
.service-card__desc {
  font-size: 0.88rem;
  color: var(--gray);
  text-align: center;
  padding: 0 16px 12px;
  line-height: 1.6;
}
.service-card__toggle {
  display: block;
  margin: 0 auto 14px;
  background: none;
  border: none;
  color: var(--orange);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform var(--transition);
  line-height: 1;
}
.service-card__toggle[aria-expanded="true"] { transform: rotate(180deg); }
.service-card__details {
  display: none;
  padding: 14px 20px 20px;
  border-top: 1px solid #f0ece8;
}
.service-card__details ul li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 4px 0 4px 16px;
  position: relative;
}
.service-card__details ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* =============================
   COMPROMISOS
   ============================= */
.compromisos {
  padding: 88px 0 72px;
  background: var(--white);
  position: relative;
}
.compromisos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.compromiso-card {
  text-align: center;
}
.compromiso-card__img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 3px solid var(--orange-light);
  box-shadow: 0 4px 16px rgba(232,99,43,0.18);
}
.compromiso-card__img-wrap img { height: 100%; }
.compromiso-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.compromiso-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.7;
}
.compromisos__badge {
  text-align: right;
  margin-top: 48px;
}

/* =============================
   CONTACTO
   ============================= */
.contacto {
  background: var(--contact-bg);
  padding: 88px 0;
}
.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(232,99,43,0.15);
  border: 1px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item__label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--orange-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-item__value {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color var(--transition);
}
.contact-item__value:hover { color: var(--orange-light); }

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(232,99,43,0.35);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.38); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--orange); }

.contacto__img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.contacto__img-wrap img { height: 100%; }
.contacto__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,12,4,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}
.regulation-badge {
  border: 3px solid var(--white);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseBadge 3s ease-in-out infinite;
}
.regulation-badge span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--white);
  text-align: center;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

/* =============================
   FOOTER
   ============================= */
.footer {
  background: #110d09;
  padding: 28px 0;
  border-top: 1px solid rgba(232,99,43,0.2);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer__links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--orange-light); }

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
  .servicios__grid,
  .compromisos__grid { grid-template-columns: 1fr 1fr; }
  .conocenos__grid,
  .contacto__grid { grid-template-columns: 1fr; gap: 40px; }
  .conocenos__badge { position: static; text-align: right; }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(26,16,8,0.97);
    padding: 16px 0;
  }
  .navbar__links.open { display: flex; }
  .navbar__links a { padding: 14px 28px; display: block; }
  .navbar__toggle { display: flex; }
}

@media (max-width: 640px) {
  .servicios__grid,
  .compromisos__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 1.7rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
