/* Robles Concept — Hoja de Estilos Principal (Rediseñada) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  /* Paleta de colores cálida y profesional */
  --bark: #2A2421;        /* Marrón corteza profundo */
  --leaf: #1E3A2F;        /* Verde bosque elegante */
  --leaf-light: #2D5646;  /* Verde intermedio */
  --leaf-soft: #EAEFEA;   /* Verde muy suave para fondos */
  --sand: #FAF8F5;        /* Fondo crema cálido */
  --sand-dark: #F0EDE6;   /* Fondo alternativo */
  --accent: #C87D55;      /* Terracota para acentos discretos */
  --ink: #1C1C1C;         /* Texto principal */
  --muted: #66605C;       /* Texto secundario */
  --border: #E2DDD5;      /* Bordes suaves */
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(42, 36, 33, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 36, 33, 0.08);
  --shadow-lg: 0 16px 32px rgba(42, 36, 33, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--sand);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--bark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.8em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1.2em;
  color: #383431;
}

p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 55ch;
}

a {
  color: var(--leaf);
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Layout & Wrap */
.wrap {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
}

section {
  padding: 4.5rem 0;
}

section.tight {
  padding: 1.5rem 0;
}

.section-alt {
  background-color: var(--sand-dark);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--leaf);
  margin-bottom: 0.8em;
  background-color: var(--leaf-soft);
  padding: 4px 12px;
  border-radius: 20px;
}

.eyebrow.soon {
  background-color: #EFE6DD;
  color: var(--accent);
}

/* Header & Nav */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  height: 80px;
}

.brand .mark {
  height: 48px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.brand .mark:hover {
  transform: scale(1.02);
}

.links {
  display: flex;
  gap: 2rem;
}

.links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bark);
  position: relative;
  padding: 4px 0;
}

.links a:hover, .links a.active {
  color: var(--leaf);
}

.links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--leaf);
  border-radius: 2px;
}

.nav-cta {
  background-color: var(--leaf);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background-color: var(--leaf-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
}

.btn-solid {
  background-color: var(--leaf);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-solid:hover {
  background-color: var(--leaf-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--leaf);
  color: var(--leaf);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--leaf-soft);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.hero-logo img {
  max-width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
}

/* Modalidades & Cards */
.modalidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.modalidad-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.modalidad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--leaf-light);
}

.status {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 12px;
  background-color: #D1E7DD;
  color: #0F5132;
  margin-bottom: 1.2rem;
}

.status.soon {
  background-color: #FFF3CD;
  color: #664D03;
}

.modalidad-card ul {
  list-style: none;
  margin: 1.5rem 0;
}

.modalidad-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.modalidad-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--leaf);
  font-weight: bold;
}

/* Quotes / Pull */
.pull {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  color: var(--leaf);
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.8rem 0;
  font-style: italic;
}

/* Pillars Grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pillar .num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* Cards genericas */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-card .avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--sand);
  margin: 0 auto 1.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--leaf-soft);
  box-shadow: var(--shadow-sm);
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card.placeholder {
  background-color: transparent;
  border: 2px dashed var(--border);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Blog Posts */
.post {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.post .meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Service Row */
.service-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-row .tag {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--leaf);
  background-color: var(--leaf-soft);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
}

/* Formulario */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: 0.4rem;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(30, 58, 47, 0.1);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* Separadores */
hr.rule {
  border: none;
  height: 1px;
  background-color: var(--border);
}

/* Footer */
footer.site {
  background-color: var(--bark);
  color: var(--sand);
  padding: 4rem 0 2rem 0;
  margin-top: 3rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.foot-logo {
  height: 42px;
  width: auto;
  margin-bottom: 1.2rem;
}

footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(250, 248, 245, 0.8);
}

footer a:hover {
  color: var(--white);
}

.fine {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.5);
}

/* Responsivo */
@media (max-width: 868px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .nav-row {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }
}
