/* General page setup */
body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* Header */
header {
  text-align: center;
  padding: 50px 20px;
}
section {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* Responsive variables */
:root{
  --pad-x: 20px;
  --pad-y: clamp(10px, 2vw, 18px);
  --logo-h: clamp(28px, 6vw, 44px);
}

/* Sticky header that stays at top while scrolling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000; /* solid black */
  border-bottom: 1px solid rgba(255,255,255,);
   margin-bottom: 0;
}

/* Layout inside header */
.header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Tagline below logo */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-tagline {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(16px, 1.2vw, 12px);
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  line-height: 1.4;
  max-width: 360px;          /* controls wrapping — adjust as needed */
  word-break: keep-all;
}

/* Logo scales with screen */
.logo{
  height: var(--logo-h);
  width: auto;
}

/* Nav stays readable on any screen */
.main-nav a{
  font-size: clamp(12px, 1.6vw, 16px);
  padding: 8px 10px;
  text-decoration: none;
}

/* Mobile tweaks */
@media (max-width: 720px){
  .header-inner{ gap: 10px; }
  .main-nav{ display: flex; gap: 10px; flex-wrap: wrap; }
}


/* Logo styling */
.logo {
  width: 800px;          /* You can adjust this size */
  max-width: 90%;        /* Keeps it responsive on small screens */
  height: auto;          /* Keeps aspect ratio */
  display: block;
  margin: 0 auto 20px;   /* Centers the logo */
}

/* language switch */
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-switch a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}

.lang-switch a:hover {
  opacity: .85;
}

.lang-switch a.active {
  background: #fff;   /* invert to signal the current language */
  color: #000;
  border-color: #fff;
}

/* responsive header layout tweaks */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;  /* brand | nav | lang */
  gap: 16px;
}

@media (max-width: 720px){
  .header-inner {
    flex-wrap: wrap;
  }
  .main-nav {
    order: 3;              /* move nav below on small screens */
    width: 100%;
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap;
    justify-content: center;
  }
  .lang-switch {
    order: 2;              /* keep language switch visible near brand */
    margin-left: auto;     /* push to the right */
  }
}




/* Gallery styling */
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;          /* espacio vertical entre imágenes */
  padding: 20px;
}

/* --- QUÉ OFRECEMOS */
.offer-item {
  cursor: pointer;
  display: grid;
  grid-template-columns: 16px 30px 1fr;
  align-items: start;
  gap: 12px;
  padding: 6px 6px;
  border-radius: 10px;
  transition: background 0.25s ease;
  position: relative;
}

/* General section titles (used by 'Qué ofrecemos', 'Quiénes somos', etc.) */
.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #ff7f66; /* your brand orange */
  text-align: center;
  margin: 0 0 40px 0; /* same spacing as other sections */
  letter-spacing: 1px;
}


.offer-item:hover {
  background: rgba(255,127,102,0.06);
}

.offer-label {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.30rem;
  color: #fff;
  line-height: 1.4;
}

.offer-detail {
  grid-column: 2 / span 2;      /* keeps text aligned under the icon/label */
  margin-top: 4px;              /* ↓ reduce from ~10–12px to 4px */
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease, max-height 0.3s ease, margin-top 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.offer-item.active .offer-detail {
  display: block;
  opacity: 1;
  max-height: 300px;
  margin-top: 2px;              /* even tighter when expanded */
}

.offer-block {
  background: #000;
  color: #fff;
  padding: 20px 0.2px 0.5px;
}

.offer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 100px 1fr;
  column-gap: 40px;
  align-items: center;   /* ✅ aligns the vertical title with the middle of the list */
}

/* Vertical title perfectly centered next to text */
.offer-title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* ensures it fills full column height for vertical centering */
}

/* List aligned neatly beside title */
.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.offer-list li {
  display: grid;
  grid-template-columns: 16px 30px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.offer-list li:hover {
  background: rgba(255, 127, 102, 0.06);
}

.offer-detail h3:first-child {
  margin-top: 0;
}

/* Orange bullet */
.offer-list .bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff7f66;
  box-shadow: 0 0 0 3px rgba(255, 127, 102, 0.25);
  justify-self: center;
}

/* Icon */
.offer-list i {
  font-size: 22px;
  color: #111;
  background: #dcded4;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}

/* Text / Links */
.offer-list a {
  color: #fff;
  text-decoration: none;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.offer-list a:hover {
  color: #ff7f66;
}

/* --- Responsive layout --- */
@media (max-width: 900px) {
  .offer-inner {
    grid-template-columns: 1fr;
    text-align: left;
    column-gap: 0;
  }

  .offer-title {
    justify-content: center;
    height: auto;
  }

  .offer-title span {
    writing-mode: horizontal-tb;
    transform: none;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px 12px;
    margin-bottom: 12px;
  }
}
/* ---- END QUE OFRECEMOS ---- */

/* ---------- CRECIMIENTO PÁGINA ---------- */
:root{
  --accent: #ff7f66;
}

/* blocks compactos, coherentes con tu página */
.topic-block{
  background:#000;
  color:#fff;
  padding: 48px 20px 36px;
}

/* título con Montserrat + acento naranja */
.topic-title{
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
  margin: 0 auto 22px;
  max-width: 1100px;
  line-height: 1.15;
}
.topic-title .accent{ color: var(--accent); }

/* grid de 3 columnas -> 2 -> 1 (responsive) */
.services-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 28px;
}

@media (max-width: 1000px){
  .services-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 640px){
  .services-grid{ grid-template-columns: 1fr; }
}

/* tarjeta mínima (sin caja marcada) para seguir tu look */
.service-card h3{
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.service-card ul{
  margin: 0;
  padding-left: 1.2em;       /* sangría bullets */
}
.service-card li{
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 6px 0;
  list-style: disc;
}
.service-card li::marker{
  color: #fff;               /* bullets blancos como en tu imagen */
}

/* enlace de vuelta */
.topic-back{
  max-width:1100px;
  margin: 16px auto 0;
}
.topic-back a{
  color: var(--accent);
  text-decoration: none;
}
.topic-back a:hover{ text-decoration: underline; }



/* ---------- END CRECIMIENTO PÁGINA ---------- */


/* --- Acompañamiento Estratégico (two-column layout) --- */
/* --- Acompañamiento: título arriba izq, texto debajo a la derecha --- */
.intro-block{
  background:#000;
  color:#fff;
  padding: 80px 20px;
}

.intro-container{
  max-width: 1200px;
  margin: 0 auto;
}

/* Title: left */
.intro-title{
  margin: 0 0 32px 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 3.2vw + 1rem, 4rem);
  line-height: 1.15;
  text-align: left;
}
.intro-title .accent{ color:#ff7f66; }

/* Message: below, pushed to right and right-aligned */
.intro-message{
  font-family: "Open Sans", sans-serif;
  font-size: clamp(1.05rem, 1.1vw + 0.9rem, 1.8rem);
  line-height: 1.9;
  margin: 0;
  text-align: right;      /* right aligned lines */
  max-width: 720px;       /* comfortable line length */
  margin-left: auto;      /* pushes block to the right */
  color:#fff;
}

/* Mobile: stack and center for readability */
@media (max-width: 900px){
  .intro-title{ text-align:center; }
  .intro-message{
    text-align:center;
    margin-left: 0;
    margin-top: 12px;
  }
}
/* --- END Acompañamiento Estratégico --- */

/* Gallery styling */
.gallery img {
  width: 90%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}
/* --- END Gallery styling --- */

/* Team --- */
.team-section {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
}

.team-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #ff7f66;
  margin-bottom: 50px;
  letter-spacing: 1px;
}

.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 127, 102, 0.2);
}

.team-photo {
  width: 70%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.team-member h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  margin: 10px 0 5px;
  color: #fff;
}

.team-member .role {
  font-family: "Open Sans", sans-serif;
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.contact-links a {
  color: #ff7f66;
  margin: 0 8px;
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-links a:hover {
  color: #fff;
}

/* Footer / Contact */
footer {
  background-color: #111;
  padding: 1px 1px;
  text-align: center;
  border-top: 1px solid #333;
}

footer a {
  color: #ff7f66;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== Mobile-only tweaks (desktop unchanged) ===== */
@media (max-width: 900px){
  .intro-block{
    padding: 64px 16px 56px;         /* tighter side padding for small screens */
  }

  .intro-title{
    text-align: left;                 /* keep title left on mobile */
    margin-bottom: 20px;
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    line-height: 1.2;
  }

  .intro-message{
    /* paragraph sits below the title, spans full width,
       but lines are aligned to the right as you wanted */
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    text-align: right;
    font-size: clamp(1rem, 4.2vw, 1.35rem);
    line-height: 1.7;
    overflow-wrap: anywhere;          /* prevent overflow on long words */
    word-break: normal;
  }

  /* Remove manual <br> line breaks on mobile so text can reflow naturally */
  .intro-message br{ display: none; }
}

/* Extra-tight phones */
@media (max-width: 600px){
  .intro-block{ padding: 56px 14px 48px; }
  .intro-title{ font-size: clamp(1.5rem, 8vw, 2.1rem); }
  .intro-message{ font-size: clamp(0.98rem, 4.6vw, 1.25rem); }
}
@media (max-width: 420px){
  .intro-title{ font-size: clamp(1.4rem, 8.6vw, 1.9rem); }
  .intro-message{ line-height: 1.6; }
}
