/* ==============================================================
   GROUP LOBU · DESIGN SYSTEM v1.0
   Sistema unificado para todas las propiedades digitales del grupo:
   · lobu.es (corporativo)
   · residencia-marisol.com
   · centredediacalella.cat
   · canclement.es
   · grouplobu-ops.web.app (intranet)
   · lobu-empleo.web.app
   · solicitud-info-lobu.web.app
   --------------------------------------------------------------
   Uso: enlaza este archivo en el <head> de cualquier HTML:
   <link rel="stylesheet" href="lobu-design-system.css">
   Y la fuente de Google Fonts:
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
   ============================================================== */

/* === TOKENS / VARIABLES === */
:root {
  /* Colores corporativos */
  --gold: #C9A84C;
  --gold-dark: #a8863a;
  --gold-light: #e8cc85;
  --cream: #FAF8F2;
  --dark: #1e1a12;
  --dark-soft: #3a3428;
  --warm-gray: #8a8070;
  --light-border: #e8e2d6;
  --white: #ffffff;

  /* Acentos */
  --green-accent: #4a8c6f;
  --blue-accent: #4a7a9b;
  --red-soft: #c45c5c;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(30,26,18,0.06);
  --shadow-md: 0 4px 20px rgba(30,26,18,0.10);
  --shadow-lg: 0 8px 40px rgba(30,26,18,0.14);

  /* Radios */
  --radius: 12px;
  --radius-lg: 20px;

  /* Transiciones */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Tipografía */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }

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

/* === HEADER === */
header.lobu-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-border);
  transition: box-shadow var(--transition);
}
header.lobu-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-img { width: 52px; height: 52px; border-radius: 8px; object-fit: contain; background: var(--cream); }
.logo-text { display: flex; flex-direction: column; }
.logo-text .brand {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  color: var(--dark); line-height: 1.1;
}
.logo-text .sub {
  font-size: 11px; color: var(--gold-dark); font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
}
nav.lobu-nav { display: flex; align-items: center; gap: 6px; }
nav.lobu-nav a {
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--dark-soft);
  border-radius: 8px; transition: all var(--transition);
}
nav.lobu-nav a:hover, nav.lobu-nav a.active {
  background: rgba(201,168,76,0.10); color: var(--gold-dark);
}
.nav-cta {
  background: var(--gold) !important; color: var(--white) !important;
  font-weight: 600 !important; padding: 8px 18px !important;
  border-radius: 8px !important; margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-dark) !important; color: var(--white) !important; }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  position: absolute; left: 7px; transition: all var(--transition);
}
.menu-toggle span:nth-child(1) { top: 10px; }
.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 17px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 17px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav.lobu-nav {
    position: fixed; top: 76px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; padding: 20px 24px; gap: 4px;
    border-bottom: 1px solid var(--light-border); box-shadow: var(--shadow-md);
    transform: translateY(-120%); opacity: 0; transition: all var(--transition);
  }
  nav.lobu-nav.open { transform: translateY(0); opacity: 1; }
  nav.lobu-nav a { width: 100%; text-align: center; padding: 12px; font-size: 15px; }
}

/* === HERO === */
.hero {
  position: relative; margin-top: 76px; min-height: 85vh;
  display: flex; align-items: center; overflow: hidden; background: var(--dark);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,26,18,0.75) 0%, rgba(30,26,18,0.3) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 650px; padding: 60px 24px; margin: 0 auto 0 8%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3);
  padding: 6px 16px; border-radius: 50px; font-size: 12px; font-weight: 600;
  color: var(--gold-light); text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 24px; backdrop-filter: blur(8px);
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 20px; font-weight: 700; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* === BOTONES === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition); border: none; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover {
  background: var(--gold-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-soft); transform: translateY(-2px); }

/* === SECCIONES === */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); color: rgba(255,255,255,0.8); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-header .eyebrow {
  font-size: 12px; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--warm-gray); font-size: 1.05rem; }
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px; margin: 16px auto;
}

/* === CARDS SERVICIO === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1px solid var(--light-border);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--gold-dark); fill: none; stroke-width: 1.5; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--warm-gray); font-size: 14px; }

/* === CARDS CENTRO (para web paraguas lobu.es) === */
.centros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.centro-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--light-border); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.centro-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.centro-card .centro-img { aspect-ratio: 16/10; overflow: hidden; background: var(--light-border); }
.centro-card .centro-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.centro-card:hover .centro-img img { transform: scale(1.04); }
.centro-card .centro-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.centro-card .centro-location {
  font-size: 11px; color: var(--gold-dark); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.centro-card h3 { margin-bottom: 10px; }
.centro-card p { color: var(--warm-gray); font-size: 14px; margin-bottom: 20px; flex: 1; }
.centro-card .centro-link {
  font-size: 13px; font-weight: 600; color: var(--gold-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.centro-card .centro-link::after { content: '→'; transition: transform var(--transition); }
.centro-card:hover .centro-link::after { transform: translateX(4px); }

/* === GALERÍA === */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  position: relative; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px;
  background: linear-gradient(transparent, rgba(30,26,18,0.8));
  color: var(--white); font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }
}

/* === EQUIPO === */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.team-card {
  text-align: center; background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 20px; border: 1px solid var(--light-border);
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px; border: 3px solid var(--gold-light);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--gold-dark); font-weight: 500; }
.team-card .bio { font-size: 13px; color: var(--warm-gray); margin-top: 10px; line-height: 1.6; }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat-item {
  text-align: center; padding: 28px 16px;
  background: var(--cream); border-radius: var(--radius);
  border: 1px solid var(--light-border);
}
.stat-number { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--gold-dark); line-height: 1; }
.stat-label { font-size: 12px; color: var(--warm-gray); margin-top: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* === FORMULARIOS === */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; border: 1px solid var(--light-border); box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--light-border); border-radius: 8px;
  font-family: var(--font-body); font-size: 14px; color: var(--dark);
  background: var(--cream); transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }

/* === INFO CONTACTO === */
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-detail-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(201,168,76,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg { width: 20px; height: 20px; stroke: var(--gold-dark); fill: none; stroke-width: 1.5; }
.contact-detail-text .dt-label {
  font-size: 12px; color: var(--warm-gray); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600;
}
.contact-detail-text .dt-value { font-size: 15px; color: var(--dark); font-weight: 500; margin-top: 2px; }

/* === FOOTER === */
footer.lobu-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text .brand { color: var(--white); }
.footer-brand .logo-text .sub { color: var(--gold-light); }
.footer-brand p { font-size: 14px; margin-top: 12px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 {
  color: var(--white); font-size: 14px; font-family: var(--font-body);
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.6); font-size: 14px;
  padding: 4px 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 13px;
}
.footer-bottom .credits { color: rgba(255,255,255,0.4); }
.footer-bottom .credits a { color: var(--gold-light); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* === UTILIDADES === */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }
.text-gold { color: var(--gold-dark); }
.text-muted { color: var(--warm-gray); }
.bg-dark { background: var(--dark); color: var(--white); }

/* === ANIMACIÓN FADE-IN === */
.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
