:root {
  --primary: #0b3c5d;
  --bg: #f6f8fb;
  --text: #2c2c2c;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.2rem;
}

/* HEADER */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
}

.header-content {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav a {
  margin-left: 1.2rem;
}

/* INTRO */
.contact-intro {
  padding: 4rem 0 3rem;
}

.contact-intro h1 {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
}

.contact-intro p {
  max-width: 620px;
  color: var(--muted);
}

/* MAIN */
.contact-main {
  padding: 3rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

/* INFO */
.contact-info h2 {
  margin-bottom: 1.5rem;
}

.info-item {
  margin-bottom: 1.2rem;
}

.info-item .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.info-item .value {
  font-size: 1rem;
}

.info-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* FORM */
.contact-form {
  background: white;
  padding: 2.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.contact-form h2 {
  margin-bottom: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.field label {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.field input,
.field textarea {
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

button {
  margin-top: 0.5rem;
  padding: 0.7rem 1.6rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: #111;
  color: #ddd;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CAROUSEL ===== */

.contact-carousel {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 420px; /* 🔴 CLAVE: limita el ancho visible */
  margin: 0 auto;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  width: 100%;
}

.slide {
  flex: 0 0 100%; /* 🔴 CLAVE: cada slide ocupa 100% */
  max-width: 100%;
}

.slide img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* BOTONES */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background: #2c5aa0;
}

.carousel-note {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #555;
}
