:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  --primary: #556270;
  --primary-dark: #3f4b56;
  --text: #1c252e;
  --muted: #5c6770;
  --surface: #ffffff;
  --surface-alt: #f3f6fb;
  --border: #e1e6ef;
}

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

body {
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.iframe-outer-container {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  padding-left: 10;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.iframe-outer-container .iframe-wrapper {
  min-width: 1280px;
  max-width: none;
  width: 1280px;
  margin: 0;
}

.iframe-wrapper iframe {
  width: 1280px;
  height: 780px;
  border: 0;
}

.hero {
  background: linear-gradient(135deg, #2e3740 0%, #475260 55%, #556270 100%);
  color: #ffffff;
  padding-bottom: 5rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo {
  width: clamp(140px, 18vw, 190px);
  height: auto;
  display: block;
}

.hero-content {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
  padding: 3rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(6px);
}

.hero-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: var(--surface-alt);
}

#problema {
  background-image: url('bkproblema.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  max-width: 860px;
  color: var(--muted);
}

.highlight {
  margin-top: 1.5rem;
  font-weight: 600;
}

.list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  padding-left: 0;
}

.list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.cta {
  background: linear-gradient(120deg, #556270 0%, #748392 100%);
  color: #ffffff;
  text-align: center;
  padding: 4rem 0 5rem;
}

.cta p {
  margin: 1rem auto 2rem;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
}

.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-domain {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(8, 30, 74, 0.2);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-card {
    padding: 1.5rem;
  }
}

/* Carousel Styles */
.casos-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.caso-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.caso-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--surface-alt);
}

.caso-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.caso-content p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Contact Page Styles */
.contact-hero {
  padding: 3rem 0 4rem;
}

.contact-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-section {
  padding: 4.5rem 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 2rem;
}

.contact-channels {
  display: grid;
  gap: 1.5rem;
}

.channel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.channel:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 12px 30px rgba(85, 98, 112, 0.12);
}

.channel h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.channel a,
.channel p {
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.channel a:hover {
  color: var(--primary);
}

.channel-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.channel-link-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.whatsapp-icon-link:hover {
  transform: scale(1.15);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  display: block;
}

.channel-link-group a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
}

.channel-link-group a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.contact-form h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(85, 98, 112, 0.1);
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* FAQ Styles */
#faq {
  background: var(--surface-alt);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(85, 98, 112, 0.12);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.6;
}

@media (max-width: 968px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-hero {
    padding: 2rem 0 3rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}
