/* ===== Fondo global verde difuminado ===== */

/* Evitar scroll horizontal en toda la página */
html, body { width: 100%; overflow-x: hidden; }

:root{
  --verde-ribas: #097C3F;
  --hero-h1-color: var(--text-dark);
  --azul-h1: #002b5c;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: #0f172a;
  line-height: 1.5;
}

/* --- Navbar --- */

header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent; /* se ve el fondo verde del body */
}

header.is-stuck { box-shadow: 0 6px 18px rgba(15,23,42,.06); }

.navbar{
  /* centramos la barra dentro del ancho máximo de la página */
  width: 100%;
  margin: 44px 0 0;
  padding: 0 56px;  
  display: flex;
  align-items: center;       /* 🔹 centra verticalmente logo + menú */
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
}

/* Fuente de los títulos del navbar */
.nav-links a,
.contact-info a {
  font-family: "Nunito", "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;
  letter-spacing: 0.2px; /* un toque de aire para que respire */
}

/* Logo */
.logo{ display:flex; align-items:center; }
.logo img{
  height: 72px;
  width: auto;
}

/* Menú */
.nav-links{
  display: flex;
  align-items: center;
  justify-content: center;   /* 🔹 menú centrado respecto a la barra */
  gap: 12px;
  flex: 1;                   /* 🔹 ocupa el espacio entre logo y vacío */
  padding: 0;
  margin: 0;
}

.nav-links a{
  font-size: 1.25rem;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  transition: all .22s ease;
  background: transparent;
  border: none;
}

.nav-links a:hover,
.nav-links a.active{
  background: #097C3F;   /* verde corporativo */
  color: #ffffff;         /* texto blanco */
  border-color: transparent;
  transform: translateY(-1px);
}

.contact-info {
  display: flex;
  flex-direction: column;     /* una línea encima de otra */
  align-items: flex-end;
  gap: 4px;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
  font-size: 1rem;
}

.contact-info a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Hover en verde corporativo */
.contact-info a:hover {
  color: #097C3F;
}

/* Teléfono con icono */
.contact-info .phone::before {
  content: "📞 ";
  font-size: 1rem;
}

/* WhatsApp con icono */
.contact-info .whatsapp::before {
  content: "💬 ";
  font-size: 1rem;
}

/* Ocultar el botón hamburguesa (esa rayita bajo el logo) */
.menu-toggle{ display: none; }



/* -------HERO------- */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  min-height: 70vh;
  background-color: #ffffff;
}


.hero-container{
  width: 72%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;          /* centra verticalmente el texto */
  padding: 2rem 4rem 0.5rem; /* menos alto; poco padding inferior */
  border-radius: 3rem;
  position: relative;
  overflow: hidden;             /* la imagen se recorta con el borde redondeado */
  min-height: 410px;            /* en vez de alturas grandes */
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Difuminado verde eléctrico en esquinas */
.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(111, 255, 176, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(111, 255, 176, 0.25), transparent 60%);
  border-radius: inherit;
  z-index: 0;
}

/* ------Texto del Hero------ */
.hero-text{
  flex: 0 1 60%;
  max-width: 60%;
  margin-left: 40px;
  margin-top: -6px;             /* pequeño empuje hacia arriba */
}

.hero-text h1 {
  font-family: "Nunito", "Arial Rounded MT Bold", sans-serif;
  font-size: 3rem;
  color: var(--hero-h1-color);
  margin-bottom: 1rem;
}

.hero-text h2 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  max-width: 600px; /* 🔹 ancho controlado */
  line-height: 1.5;
}

/* ---------- Botones del Hero ---------- */

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn-primary,
.btn-secondary {
  color: #097C3F;                        /* texto del color del navbar */
  border: 2px solid #097C3F;             /* mismo color en el borde */
  background-color: transparent;         /* sin relleno por defecto */
  padding: 0.9rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Hover: fondo sólido y texto blanco */
.btn-primary:hover {
  background-color: #097C3F;
  color: #fff;
  box-shadow: 0 4px 10px rgba(9, 124, 63, 0.25); /* sombra sutil al pasar el ratón */
}
.btn-secondary:hover {
  background-color: #097C3F;
  color: #fff;
  box-shadow: 0 4px 10px rgba(9, 124, 63, 0.25); /* sombra sutil al pasar el ratón */
}

/* Diferencia opcional entre ambos (si quieres conservar contraste leve) */
.btn-primary:hover, .btn-secondary:hover {
  opacity: 1; /* vuelve al tono completo en hover */
}
.btn-primary, .btn-secondary {
  border-width: 2px;
  opacity: 0.85; /* un poco más tenue visualmente */
}


/* -------Imagen del hero---------- */

.hero-image{
  z-index:1;
  flex: 0 1 35%;
  display:flex;
  justify-content: flex-end;   /* empuja la imagen hacia el borde derecho */
  align-items:center;
  margin-right: 80px;
}

.hero-image img{
  width:100%;
  max-width: 260px;            
  height:auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

.hero-image-2{
  flex: 0 1 40%;
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;         /* clave: baja SOLO la columna de la imagen */
  margin-right: 4rem;           /* distancia al borde derecho */
}

.hero-image-2 img {
  display: block;
  width: auto;
  height: 440px; /* antes 360px */
  object-fit: contain;
  transform: translateY(6px);
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.12));
}

/* Botón “Veure tots” debajo de las fichas */
.exp-footer {
  display: flex;
  justify-content: flex-end; /* alinea a la derecha */
  width: min(1100px, 92%);
  margin: 2rem auto 0;       /* separa del grid */
}

.exp-footer .btn-primary {
  padding: 0.9rem 1.8rem;
  font-weight: 600;
  border: 2px solid #097C3F;
  color: #097C3F;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.exp-footer .btn-primary:hover {
  background-color: #097C3F;
  color: #fff;
  box-shadow: 0 4px 10px rgba(9, 124, 63, 0.25);
}


/* ====== Experiència amb degradat translúcid ====== */
:root{
  --mint-light: rgba(111, 255, 176, 0.25);
  --mint-solid: #6fffB0;
  --text-dark: #0c2440;
  --radius-2xl: 24px;
}

.section{
  padding: 6rem 0;
}

.container{
  width:min(1100px, 92%);
  margin-inline:auto;
}

.font-rounded{
  font-family: "Arial Rounded MT Bold","Arial Rounded MT","Nunito",system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing:.2px;
}

/* Encabezado */
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.exp-header__titles {
  display: flex;
  flex-direction: column; /* 🔹 coloca h2 y h3 en columna */
  gap: 0.4rem;
}

.exp-header h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--text-dark);
}

.exp-header h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  max-width: 600px; /* 🔹 ancho controlado */
  line-height: 1.5;
}

/* Botón “veure més” */
.btn-outline{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.75rem 1.1rem;
  border:2px solid var(--text-dark);
  border-radius:999px;
  font-weight:700;
  text-transform:lowercase;
  color:var(--text-dark);
  transition:transform .2s ease, background .2s ease, color .2s ease;
}

.btn-outline:hover{
  background: var(--text-dark);
  color:#fff;
  transform:translateY(-1px);
}

/* Grid */
.exp-grid{
  display:grid;
  gap:1.5rem;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 1rem;
}

/* Tarjetas */
.exp-card {
  position: relative;
  display: block;           /* permite que el enlace ocupe toda la tarjeta */
  text-decoration: none;    /* sin subrayado */
  color: var(--text-dark);  /* mantiene el color del texto */
  background:
    radial-gradient(circle at top left, rgba(111, 255, 176, 0.25), transparent 70%),
    radial-gradient(circle at bottom right, rgba(111, 255, 176, 0.25), transparent 70%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-2xl);
  padding: 1.6rem 1.6rem 4.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  min-height: 170px;
  transition: transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.5);
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

/* Título dentro de la tarjeta */
.exp-card h3{
  margin:0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dark);
  z-index: 1;
  position: relative;
}

/* Icono “apoyado” en esquina inferior izquierda */
.exp-card__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.25;
  z-index: 0;
}

.exp-card__icon img {
  width: 90px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(1800%) hue-rotate(95deg) brightness(80%) contrast(110%);
  opacity: 2;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.exp-card:hover .exp-card__icon img {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(2000%) hue-rotate(95deg) brightness(95%) contrast(110%);
  opacity: 4;
}


/* ===== HERO ESTILO “EQUIP” (tipo hero general) ===== */
.hero--equip {
  background-color: #fff;
  padding: 4rem 0;
}

.hero--equip .hero-container {
  width: 72%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-radius: 3rem;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.12),
    0 20px 60px rgba(9, 124, 63, 0.15);
  overflow: hidden;
  background: linear-gradient(180deg, #f9fffc 0%, #ebfff5 100%);
  padding: 3rem 4rem;
}

/* Texto a la izquierda */
.hero--equip .hero-text {
  flex: 0 1 55%;
  text-align: left;
}

.hero--equip .hero-text h1 {
  font-family: "Nunito", "Arial Rounded MT Bold", sans-serif;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero--equip .hero-text h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero--equip .hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Imagen a la derecha */
.hero--equip .hero-image-2 {
  flex: 0 1 40%;
  display: flex;
  justify-content: flex-end;
  align-self: center !important;  /* anula el flex-end global */
  margin-top: 0 !important;
}

.hero--equip .hero-image-2 img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  filter: brightness(1.05);
  transform: translateY(-20px); /* sube ligeramente la imagen */
}


/* ------- INVEST SECTION ------- */


.invest {
  padding: 6rem 2rem;
  text-align: center;
}

.invest-content {
  max-width: 1200px;
  margin: 0 auto;
}

.invest-text {
  max-width: 650px;
  margin: 0 auto 4rem;
}

.invest-text h2 {
  font-size: 2.4rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.invest-text h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Fichas */
.invest-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Reutilizamos el fondo y color de las exp-card existentes */
.invest-card {
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(111, 255, 176, 0.25), transparent 70%),
    radial-gradient(circle at bottom right, rgba(111, 255, 176, 0.25), transparent 70%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  min-height: 250px;
  transition: transform .2s ease, box-shadow .2s ease;
  isolation: isolate;
}

.invest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

/* Texto */
.invest-card h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dark);
  margin: 0 0 1rem 0;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.invest-card__icon {
  position: absolute;
  bottom: 3rem;          /* icono al final de la tarjeta */
  left: 50%;
  transform: translateX(-50%); /* centrado horizontalmente */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.25;
  z-index: 0;
}

.invest-card__icon img {
  width: 90px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(1800%) hue-rotate(95deg) brightness(80%) contrast(110%);
  opacity: 2;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.invest-card:hover .invest-card__icon img {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(20%) sepia(90%) saturate(2000%) hue-rotate(95deg) brightness(95%) contrast(110%);
  opacity: 4;
}

.invest-card h4 {
  color: var(--text-dark);
  opacity: 0.85;
  line-height: 1.6;
  margin-top: 0.5rem;
  z-index: 1;
  position: relative;
  font-size: 1.1rem;
  font-weight: 500;
}

.invest-btn {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.invest-btn .btn-primary {
  padding: 1rem 2.2rem;
  font-weight: 600;
  border: 2px solid #097C3F;
  color: #097C3F;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.invest-btn .btn-primary:hover {
  background-color: #097C3F;
  color: white;
  box-shadow: 0 4px 10px rgba(9,124,63,0.25);
}


/* ------- FOOTER ------- */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 4rem;
  background-color: #fff;
}

/* Caja central del footer con el mismo estilo que el hero y clínica */
.footer-container {
  width: 90%;
  max-width: 1400px;
  border-radius: 3rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  background: #ffffff;
}

/* Fondo difuminado verde igual al hero */
.footer-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(111, 255, 176, 0.25), transparent 60%),
    radial-gradient(circle at bottom right, rgba(111, 255, 176, 0.25), transparent 60%);
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
}

.footer-text h2 {
  font-family: "Nunito", "Arial Rounded MT Bold", sans-serif;
  font-size: 2rem;
  color: var(--azul-h1);
  margin-bottom: 0.5rem;
}

.footer-text p {
  font-size: 1.1rem;
  color: var(--text-dark);
  opacity: 0.8;
  margin-bottom: 2rem;
}

/* Enlaces centrados */
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: #097C3F;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #05582d;
}

/* Texto final */
.footer-copy {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--text-dark);
}

/* ------- Enlaces legales en el footer ------- */
.footer-legal {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-legal a {
  color: #097C3F;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #05582d;
}

.footer-legal span {
  margin: 0 0.5rem;
  color: rgba(0,0,0,0.4);
}

/* ===== Ocultar logo visualmente en el footer ===== */
.footer-container img {
  display: none !important;
}


/* ===== Botones flotantes teléfono/WhatsApp ===== */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: #097C3F;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transition: transform .15s ease;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-wa { background: #0B8E53; }
