
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --green: #243418;
  --green-soft: #43563A;
  --ivory: #FFFBF4;
  --cream: #F1F0E7;
  --sage: #DCE4D5;
  --text-muted: #71806B;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #E3E8DD;
  color: var(--green);
  font-family: 'DM Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* FONDO AMBIENTAL */

.ambient-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background: linear-gradient(135deg, #DFE5D8, #F7F5EC 55%, #CCD7C4);
}

.ambient-shape {
  position: absolute;
  border-radius: 40%;
  filter: blur(65px);
  opacity: .6;
  animation: float 14s ease-in-out infinite alternate;
}

.shape-one {
  width: 550px;
  height: 550px;
  background: #A6B99C;
  top: -180px;
  left: -160px;
}

.shape-two {
  width: 650px;
  height: 650px;
  background: #F8F4E8;
  right: -200px;
  top: 15%;
  animation-delay: -5s;
}

.shape-three {
  width: 480px;
  height: 480px;
  background: #AABDA1;
  bottom: -180px;
  left: 30%;
  animation-delay: -9s;
}

/* CONTENEDOR GENERAL */

.workspace {
  max-width: 1450px;
  margin: 0 auto;
  padding: 35px 45px 65px;
}

/* BARRA SUPERIOR */

.browser-bar {
  width: min(600px, 100%);
  height: 48px;
  margin: 0 auto 28px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(36,52,24,.06);
}

.browser-controls {
  display: flex;
  gap: 6px;
}

.browser-controls span {
  width: 8px;
  height: 8px;
  background: #A5B3A0;
  border-radius: 50%;
}

.browser-address {
  background: rgba(255,255,255,.35);
  border-radius: 30px;
  padding: 7px 35px;
  font-size: 11px;
  color: var(--green-soft);
}

.address-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #5F8A50;
  border-radius: 50%;
  margin-right: 7px;
}

.browser-symbol {
  font-size: 19px;
}

/* ESTRUCTURA FLOTANTE */

.workspace-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.sidebar {
  width: 62px;
  flex-shrink: 0;
  padding: 16px 9px;
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(36,52,24,.06);
  position: sticky;
  top: 25px;
}

.side-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 24px;
  transition: .3s;
}

.side-link:hover,
.side-link.active {
  background: var(--green);
  color: var(--ivory);
}

.dashboard {
  flex: 1;
  min-width: 0;
  padding: 25px;
  background: rgba(255,251,244,.65);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 32px;
  box-shadow:
    0 35px 100px rgba(36,52,24,.12),
    inset 0 1px rgba(255,255,255,.7);
}

/* NAVEGACIÓN */

.topbar {
  min-height: 65px;
  padding: 0 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.brand-main {
  font-family: 'Manrope', sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2px;
  font-style: italic;
}

.brand-sub {
  font-size: 8px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  transition: opacity .3s;
}

.nav-links a:hover {
  opacity: .5;
}

.language-btn {
  background: rgba(36,52,24,.08);
  color: var(--green);
  border: 0;
  border-radius: 30px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

/* INTRODUCCIÓN */

.intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px 26px;
}

.overline {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--text-muted);
}

.intro-row h1 {
  max-width: 580px;
  margin-top: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(24px, 3vw, 39px);
  line-height: 1.2;
  letter-spacing: -1.8px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--green-soft);
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6C9960;
}

/* HERO Y TARJETAS */

.feature-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
}

.hero-card {
  position: relative;
  min-height: 420px;
  padding: 28px;
  border-radius: 25px;
  background: linear-gradient(130deg, #243418, #40563A);
  color: var(--ivory);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #D3DFCD;
  position: relative;
  z-index: 2;
}

.hero-art {
  position: absolute;
  width: 370px;
  height: 370px;
  right: -70px;
  top: -40px;
  opacity: .22;
  animation: artFloat 9s ease-in-out infinite alternate;
}

.art-ring {
  position: absolute;
  border: 1px solid #E8F2E0;
  border-radius: 50%;
}

.ring-one {
  inset: 0;
}

.ring-two {
  inset: 55px;
}

.art-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 260px;
}

.hero-card-content {
  position: relative;
  z-index: 2;
  margin-top: 95px;
}

.card-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #C5D4BB;
}

.hero-card h2 {
  max-width: 470px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(37px, 4.5vw, 65px);
  line-height: 1.06;
  letter-spacing: -3px;
  margin: 15px 0;
}

.hero-card h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-card p {
  max-width: 330px;
  font-size: 12px;
  line-height: 1.7;
  color: #DBE4D6;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  background: var(--ivory);
  color: var(--green);
  padding: 12px 17px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  transition: transform .3s;
}

.hero-button:hover {
  transform: translateY(-4px);
}

.feature-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.small-card {
  min-height: 200px;
  border-radius: 25px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s;
}

.small-card:hover,
.service-card:hover {
  transform: translateY(-4px);
}

.identity-card {
  background: #DCE4D5;
}

.philosophy-card {
  background: #EDE6D9;
}

.mini-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  opacity: .65;
}

.identity-symbol {
  position: absolute;
  font-size: 155px;
  line-height: 1;
  right: 10px;
  top: 0;
  opacity: .14;
}

.small-card h3 {
  max-width: 210px;
  font-size: clamp(19px, 2.2vw, 29px);
  line-height: 1.15;
  letter-spacing: -1px;
}

.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 23px;
}

.philosophy-art {
  position: absolute;
  right: 20px;
  top: 20px;
  font-family: Georgia, serif;
  font-size: 100px;
  font-style: italic;
  opacity: .12;
}

/* SERVICIOS */

.services-section {
  padding-top: 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 8px 20px;
}

.section-heading h2 {
  margin-top: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  letter-spacing: -1.3px;
}

.section-index {
  font-size: 11px;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.service-card {
  min-height: 225px;
  padding: 20px;
  border: 1px solid rgba(36,52,24,.05);
  background: rgba(255,255,255,.62);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, background .3s;
}

.service-card:hover {
  background: #E4EBDC;
}

.service-number {
  font-size: 10px;
  color: var(--text-muted);
}

.service-icon {
  font-size: 36px;
  margin: 20px 0 auto;
}

.service-card h3 {
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* SECCIONES INFERIORES */

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 28px;
}

.bottom-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 23px;
}

.about-card {
  background: #E4E9DD;
}

.contact-card {
  background: #243418;
  color: var(--ivory);
}

.contact-card .overline {
  color: #BACCB1;
}

.bottom-card h2 {
  margin: 22px 0 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.bottom-card p {
  max-width: 350px;
  font-size: 12px;
  line-height: 1.7;
}

.contact-note {
  display: inline-block;
  margin-top: 22px;
  font-size: 11px;
  color: #CAD9C2;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 35px 8px 8px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ANIMACIONES */

@keyframes float {
  from { transform: translate(0, 0); }
  to { transform: translate(60px, -45px); }
}

@keyframes artFloat {
  from { transform: translateY(0) rotate(-8deg); }
  to { transform: translateY(20px) rotate(8deg); }
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .workspace {
    padding: 20px;
  }

  .feature-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .workspace {
    padding: 15px 10px 35px;
  }

  .browser-bar {
    margin-bottom: 15px;
  }

  .workspace-body {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .dashboard {
    padding: 15px;
    border-radius: 25px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .intro-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 410px;
  }

  .feature-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .small-card {
    min-height: 180px;
    padding: 16px;
  }

  .small-card h3 {
    font-size: 18px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 215px;
    padding: 15px;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .feature-side,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h2 {
    font-size: 39px;
  }

  .browser-address {
    padding: 7px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* LOGO OVELIN - TAMAÑO EQUILIBRADO */

.brand {
  width: 155px;
  height: 55px;
  display: flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  width: 150px;
  height: 150px;
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  transform: translateX(-10px);
}

@media (max-width: 700px) {
  .brand {
    width: 125px;
    height: 48px;
  }

  .brand-logo {
    width: 145px;
    height: 145px;
    transform: translateX(-10px);
  }
}


/* ==================================
   OVELIN - OPTIMIZACIÓN DE RENDIMIENTO
================================== */

/* Desenfoque más ligero del fondo */
.ambient-shape {
  filter: blur(35px);
  animation: none;
}

/* Panel principal más eficiente */
.dashboard {
  background: rgba(255, 251, 244, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Barra superior */
.browser-bar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Menú lateral */
.sidebar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Reducir animaciones decorativas */
.hero-art {
  animation: none;
}

/* Sombras más ligeras */
.dashboard {
  box-shadow: 0 15px 45px rgba(36, 52, 24, 0.10);
}


/* ICONOS OVELIN STUDIO */

.side-link svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.service-icon svg {
  width: 35px;
  height: 35px;
  stroke-width: 1.4;
  color: var(--green);
}

.side-link,
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon {
  justify-content: flex-start;
}


/* =====================================
   OVELIN - CLIENTES Y ÚLTIMO PROYECTO
===================================== */

/* TARJETA DE CLIENTES */

.clients-card {
  background: #DCE4D5;
  gap: 10px;
}

.clients-header,
.latest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.clients-header svg,
.latest-header svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.clients-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.clients-count {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
}

.clients-text {
  font-size: 12px;
  color: #526249;
}

.clients-chart {
  width: 100%;
  height: 65px;
  overflow: visible;
}

.chart-area {
  fill: rgba(36, 52, 24, 0.08);
}

.chart-line {
  fill: none;
  stroke: #243418;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TARJETA ÚLTIMO PROYECTO */

.latest-card {
  background: #EDE6D9;
  gap: 12px;
}

.latest-project-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.latest-preview {
  background: linear-gradient(135deg, #243418, #43563A);
  border-radius: 15px;
  min-height: 85px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #FFFBF4;
  text-align: center;
}

.latest-preview span {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.latest-preview small {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #DCE4D5;
}

.latest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.latest-footer h3 {
  font-size: 17px;
  letter-spacing: -0.5px;
}

.latest-footer p {
  font-size: 10px;
  color: #71806B;
  margin-top: 4px;
}

.latest-footer svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.latest-project-link:hover .latest-preview {
  background: #43563A;
}

/* AJUSTES PARA CELULARES */

@media (max-width: 700px) {
  .clients-count {
    font-size: 36px;
  }

  .clients-chart {
    height: 45px;
  }

  .latest-preview {
    min-height: 75px;
  }

  .latest-preview span {
    font-size: 17px;
  }

  .latest-footer h3 {
    font-size: 14px;
  }
}


/* PANELES INTERACTIVOS DE SERVICIOS */
.service-card[role="button"] { cursor:pointer; }
.service-card[role="button"]:focus-visible { outline:3px solid #6C9960; outline-offset:3px; }
.service-overlay[hidden] { display:none !important; }
.service-overlay { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(20,32,16,.64); animation:overlayIn .18s ease-out; }
.service-dialog { width:min(700px,100%); max-height:min(88vh,900px); overflow-y:auto; background:#FFFBF4; color:#243418; border-radius:28px; padding:clamp(22px,4vw,38px); box-shadow:0 30px 90px rgba(0,0,0,.22); animation:dialogIn .22s ease-out; }
.service-dialog-head { display:flex; justify-content:space-between; align-items:center; }
.service-close { width:40px; height:40px; display:grid; place-items:center; border:0; border-radius:50%; background:#E4EBDC; color:#243418; cursor:pointer; }
.service-close:hover { background:#D0DDC7; }
.service-dialog-icon { width:56px; height:56px; display:grid; place-items:center; background:#DCE4D5; border-radius:17px; margin:22px 0 14px; }
.service-dialog-icon svg { width:29px; height:29px; stroke-width:1.5; }
.service-dialog h2 { font-family:'Manrope',sans-serif; font-size:clamp(25px,4vw,37px); letter-spacing:-1.3px; line-height:1.2; }
.service-dialog-description { font-size:14px; line-height:1.8; max-width:580px; margin-top:15px; color:#53644A; }
.service-dialog-divider { height:1px; background:#DCE4D5; margin:27px 0 20px; }
.service-dialog h3 { font-size:18px; margin-bottom:15px; }
.service-projects { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:15px; }
.service-project { display:block; background:#F1F0E7; border-radius:19px; padding:12px; transition:transform .2s; }
a.service-project:hover { transform:translateY(-3px); }
.service-project-preview { min-height:145px; border-radius:13px; background:linear-gradient(135deg,#243418,#43563A); color:#FFFBF4; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:7px; text-align:center; }
.service-project-preview strong { font-family:'Manrope',sans-serif; font-size:27px; }
.service-project-preview small { font-size:10px; letter-spacing:1px; color:#DCE4D5; }
.service-project-meta { display:flex; justify-content:space-between; align-items:center; padding:13px 4px 3px; gap:10px; }
.service-project-meta strong { font-size:14px; }
.service-project-meta small { display:block; font-size:11px; margin-top:3px; color:#71806B; }
.service-project-empty { border:1px dashed #BBCAB1; background:#F1F0E7; border-radius:17px; padding:28px 20px; color:#53644A; font-size:13px; line-height:1.6; }
body.service-modal-open { overflow:hidden; }
@keyframes overlayIn { from {opacity:0} to {opacity:1} }
@keyframes dialogIn { from {opacity:0;transform:translateY(12px) scale(.985)} to {opacity:1;transform:none} }
@media(max-width:700px) { .service-overlay {padding:10px;align-items:flex-end} .service-dialog {max-height:92dvh;border-radius:24px 24px 14px 14px;padding:23px} }
@media(prefers-reduced-motion:reduce) { .service-overlay,.service-dialog {animation:none} }


/* ==================================
   OVELIN - DISEÑO SIN MENÚ LATERAL
================================== */

/* Ocultar menú lateral */
.sidebar {
  display: none;
}

/* Panel principal ocupa todo el ancho */
.workspace-body {
  display: block;
}

.dashboard {
  width: 100%;
}

/* Una sola tarjeta de contacto */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.contact-card {
  width: 100%;
  min-height: 230px;
  padding: 32px;
  border-radius: 25px;
}

/* Ajustes para celulares */
@media (max-width: 700px) {
  .contact-card {
    padding: 24px;
    min-height: 210px;
  }
}


/* =====================================
   OVELIN - CONTACTO PROFESIONAL
===================================== */

.contact-card {
  min-height: 250px;
  display: flex;
  align-items: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.contact-info h2 {
  margin-top: 20px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border-radius: 15px;
  background: #FFFBF4;
  color: #243418;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.contact-action:hover {
  background: #DCE4D5;
  transform: translateX(4px);
}

.contact-action svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.contact-action svg:last-child {
  margin-left: auto;
}

@media (max-width: 700px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-card {
    padding: 25px;
  }
}


/* WHATSAPP TEMPORALMENTE INACTIVO */

.contact-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-disabled:hover {
  background: #FFFBF4;
  transform: none;
}

.contact-disabled small {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  color: #71806B;
}


/* =====================================
   OVELIN - NAVEGACIÓN DINÁMICA
===================================== */

.topbar {
  position: sticky;
  top: 10px;
  z-index: 1000;

  background: #FFFBF4;
  border-radius: 24px;
  padding: 12px 22px;
  min-height: 76px;

  box-shadow: 0 5px 20px rgba(36, 52, 24, 0.04);

  transition:
    padding 0.3s ease,
    min-height 0.3s ease,
    box-shadow 0.3s ease,
    border-radius 0.3s ease;
}

/* Cuando el visitante baja */
.topbar.nav-compact {
  padding: 5px 18px;
  min-height: 58px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(36, 52, 24, 0.12);
}

/* Reducir ligeramente el logo */
.topbar.nav-compact .brand {
  transform: scale(0.82);
  transform-origin: left center;
}

.topbar .brand {
  transition: transform 0.3s ease;
}

/* Ajustes móviles */
@media (max-width: 700px) {
  .topbar {
    top: 6px;
    padding: 10px 12px;
  }

  .topbar.nav-compact {
    padding: 6px 12px;
  }
}


/* =====================================
   OVELIN - ANIMACIONES DE SERVICIOS
===================================== */

.service-card[data-service] {
  position: relative;
  cursor: pointer;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Elevación suave */
.service-card[data-service]:hover {
  transform: translateY(-6px);
  background: #E4EBDC;
  box-shadow: 0 12px 28px rgba(36, 52, 24, 0.09);
}

/* Animación del icono */
.service-card[data-service] .service-icon svg {
  transition: transform 0.25s ease;
}

.service-card[data-service]:hover .service-icon svg {
  transform: rotate(-7deg) scale(1.08);
}

/* Flecha que aparece al pasar el cursor */
.service-card[data-service]::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 23px;
  color: #243418;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-card[data-service]:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Accesibilidad con teclado */
.service-card[data-service]:focus-visible {
  outline: 3px solid #6C9960;
  outline-offset: 3px;
}

/* Evitar movimiento innecesario */
@media (prefers-reduced-motion: reduce) {
  .service-card[data-service],
  .service-card[data-service] .service-icon svg,
  .service-card[data-service]::after {
    transition: none;
  }
}


/* =====================================
   OVELIN - ANIMACIONES AL DESPLAZARSE
===================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respetar preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =====================================
   OVELIN - PANELES PREMIUM
===================================== */

/* Animación de cierre */
.service-overlay.is-closing {
  animation: ovelinOverlayOut 0.22s ease forwards;
}

.service-overlay.is-closing .service-dialog {
  animation: ovelinDialogOut 0.22s ease forwards;
}

@keyframes ovelinOverlayOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes ovelinDialogOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

/* Efecto al pasar el cursor sobre la X */
.service-close {
  transition: background 0.2s ease, transform 0.2s ease;
}

.service-close:hover {
  transform: rotate(90deg);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .service-overlay.is-closing,
  .service-overlay.is-closing .service-dialog {
    animation: none;
  }

  .service-close {
    transition: none;
  }
}


.footer .acceso-privado {
  display: inline;
  width: auto;
  margin: 0;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  opacity: 1;
  transition: color .2s;
}
.footer .acceso-privado:hover {color:#243418;text-decoration:underline;}

/* OVELIN | FICHA DE PROYECTO */
.proyecto-overlay[hidden], .proyecto-visitar[hidden] {display:none !important;}
.proyecto-overlay {position:fixed;inset:0;z-index:99999;background:rgba(20,32,17,.76);display:flex;justify-content:center;align-items:center;padding:20px;overflow-y:auto;}
.proyecto-dialog {position:relative;width:min(650px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;background:#FFFBF4;color:#243418;border-radius:25px;padding:35px;box-shadow:0 30px 80px rgba(0,0,0,.2);animation:proyectoEntrada .25s ease-out;}
@keyframes proyectoEntrada {from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.proyecto-cerrar {position:absolute;top:20px;right:20px;width:40px;height:40px;border:0;border-radius:50%;background:#DCE4D5;color:#243418;font-size:27px;cursor:pointer;z-index:2;}
.proyecto-etiqueta {display:block;margin:6px 50px 25px 0;color:#71806B;font-size:10px;font-weight:700;letter-spacing:2px;}
.proyecto-imagen {min-height:235px;border-radius:18px;background:linear-gradient(135deg,#243418,#43563A);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.proyecto-imagen img {display:block;width:100%;max-height:400px;object-fit:contain;}
.proyecto-imagen strong {color:#FFFBF4;font-size:clamp(25px,5vw,42px);text-align:center;padding:20px;}
.proyecto-contenido {padding-top:25px;}
.proyecto-categoria {color:#71806B;font-size:11px;font-weight:700;}
.proyecto-contenido h2 {margin:12px 0;font-size:clamp(26px,5vw,36px);}
.proyecto-contenido p {color:#71806B;line-height:1.8;font-size:14px;white-space:pre-wrap;}
.proyecto-visitar {display:inline-block;margin-top:18px;padding:14px 22px;background:#243418;color:#FFFBF4;border-radius:12px;font-size:13px;font-weight:700;text-decoration:none;}
body.proyecto-abierto {overflow:hidden;}
.service-project:is(button) {font:inherit;color:inherit;cursor:pointer;}
.service-project:is(button):focus-visible,.proyecto-cerrar:focus-visible,.proyecto-visitar:focus-visible {outline:3px solid #7c9b6c;outline-offset:3px;}
@media(max-width:600px){.proyecto-dialog{padding:23px}.proyecto-imagen{min-height:180px}}
@media(prefers-reduced-motion:reduce){.proyecto-dialog{animation:none}}

/* Solo una ventana visible por vez: ficha del proyecto encima del servicio oculto */
body.proyecto-abierto .service-dialog { visibility: hidden; }
body.proyecto-abierto .service-overlay { background: transparent; }

/* OVELIN | Tarjetas uniformes y enlaces independientes */
.service-project { min-width:0; }
.service-project-preview { min-height:145px; padding:20px; }
.service-project-preview strong {overflow-wrap:anywhere;}
.service-project-preview small {max-width:100%;overflow-wrap:anywhere;}
.service-project-meta {flex-wrap:wrap;}
.service-project-meta > div:first-child {min-width:0;flex:1 1 155px;}
.service-project-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;align-items:center;}
.proyecto-ver-imagen,.proyecto-visitar-link {display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 13px;border-radius:11px;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap;}
.proyecto-ver-imagen {background:#DCE4D5;color:#243418;}
.proyecto-visitar-link {background:#243418;color:#FFFBF4;}
.proyecto-ver-imagen:hover {background:#C5D3BB;}
.proyecto-visitar-link:hover {background:#405237;}
.proyecto-ver-imagen:focus-visible,.proyecto-visitar-link:focus-visible {outline:3px solid #7c9b6c;outline-offset:3px;}
@media(max-width:600px) {
 .service-projects {grid-template-columns:minmax(0,1fr);}
 .service-project-meta {align-items:flex-start;}
 .service-project-actions {justify-content:flex-start;width:100%;}
 .proyecto-ver-imagen,.proyecto-visitar-link {white-space:normal;}
}

/* OVELIN · Motion ligero 2026: solo transform y opacity */
@media (prefers-reduced-motion: no-preference) {
  .topbar { animation: ovelinNavEnter .65s cubic-bezier(.2,.75,.2,1) both; }
  .intro-row h1 { animation: ovelinTitleEnter .85s .08s cubic-bezier(.2,.75,.2,1) both; }
  .hero-card-content { animation: ovelinTitleEnter .85s .2s cubic-bezier(.2,.75,.2,1) both; }
  .art-letter { animation: ovelinLetterBreathe 8s ease-in-out infinite; transform-origin: center; }
  .hero-art::before, .hero-art::after { animation: ovelinOrbitBreathe 12s ease-in-out infinite alternate; }
  .clients-chart .chart-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: ovelinDrawLine 1.9s .45s ease-out forwards; }
  .clients-chart .chart-area { opacity: 0; animation: ovelinFadeArea 1.1s 1.1s ease-out forwards; }
  .clients-chart circle { transform-box: fill-box; transform-origin: center; animation: ovelinPointIn .55s 1.9s both, ovelinPointPulse 4s 2.5s ease-in-out infinite; }
  .hero-button, .contact-card a { transition: transform .25s ease, box-shadow .25s ease; }
  .hero-button:hover, .contact-card a:hover { transform: translateY(-3px); }
  @keyframes ovelinNavEnter { from { opacity:0; transform:translateY(-12px); } to {opacity:1;transform:translateY(0)} }
  @keyframes ovelinTitleEnter { from { opacity:0;transform:translateY(22px); } to {opacity:1;transform:translateY(0)} }
  @keyframes ovelinLetterBreathe { 0%,100% {transform:translateY(0) rotate(-2deg) scale(1)} 50% {transform:translateY(-9px) rotate(2deg) scale(1.035)} }
  @keyframes ovelinOrbitBreathe { from {opacity:.5;transform:scale(1)} to {opacity:.85;transform:scale(1.035)} }
  @keyframes ovelinDrawLine { to {stroke-dashoffset:0} }
  @keyframes ovelinFadeArea { to {opacity:1} }
  @keyframes ovelinPointIn { from {opacity:0;transform:scale(.2)} to {opacity:1;transform:scale(1)} }
  @keyframes ovelinPointPulse { 0%,100% {transform:scale(1)} 50% {transform:scale(1.3)} }
}
@media (prefers-reduced-motion: reduce) {
  .clients-chart .chart-line { stroke-dasharray:none; stroke-dashoffset:0; }
  .clients-chart .chart-area, .clients-chart circle {opacity:1;}
}
