html { font-size: 110%; }

@font-face {
  font-family: 'Gacial Indiference Negrita';
  src: url('./font/Glacial-Indiference-Negrita.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Inter Leve';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

:root {
  --green: #2C9843;
  --blue: #5FBAE7;
  --blue-soft: #d6eef9;
  --blue-mid: #a8d8f0;
  --silver: #C6C6C6;
  --white: #FFFFFF;
  --dark: #1a2332;
  --dark2: #243044;
  --text: #3a4a5c;
  --text-light: #6b7a8d;
  --green-light: #e8f5ec;
  --blue-light: #eaf6fd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Leve';
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Glacial Indiference Negrita';
}

/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(196,196,196,0.4);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.lang-btn {
  background: none;
  border: none;
  padding: 0.33rem 0.99rem; /* aumentado ~10% */
  font-family: 'Inter Leve';
  font-size: 0.86rem; /* aumentado ~10% desde 0.78rem */
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.lang-btn.active {
  background: var(--green);
  color: white;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,196,196,0.25);
  padding: 0 2rem;
  height: 80px; /* aumentado ~10% desde 72px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-left img {
  height: 66px; /* aumentado ~10% desde 60px */
  width: auto;
  mix-blend-mode: multiply;
  margin-left: 50px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: 50px;
}

.btn-acceder {
  background: var(--green);
  color: white;
  border: none;
  padding: 0.61rem 1.54rem; /* aumentado ~10% */
  border-radius: 50px;
  font-family: 'Inter Leve';
  font-size: 0.97rem; /* aumentado ~10% */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn-acceder:hover {
  background: #237a36;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(44,152,67,0.35);
}

.btn-menu {
  background: none;
  border: 1.5px solid rgba(196,196,196,0.5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 11px; /* aumentado ~10% */
  border-radius: 10px;
  transition: all 0.2s;
}

.btn-menu:hover { border-color: var(--blue); background: var(--blue-light); }

.btn-menu span {
  display: block;
  width: 24px; /* aumentado ~10% */
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.btn-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.btn-menu.open span:nth-child(2) { opacity: 0; }
.btn-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── SIDE MENU ─── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,0.35);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
}

.overlay.active { opacity: 1; pointer-events: all; }

.side-menu {
  position: fixed;
  top: 0; right: 0;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  border-left: 3px solid var(--blue);
}

.side-menu.open { transform: translateX(0); }

.side-menu-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(196,196,196,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--blue-light);
}

.side-menu-header img {
  height: 110px; /* aumentado ~10% desde 100px */
  mix-blend-mode: multiply;
}

.btn-close-menu {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  opacity: 0.6;
  transition: all 0.2s;
  line-height: 1;
}

.btn-close-menu:hover { opacity: 1; background: rgba(95,186,231,0.15); }

.side-menu nav { padding: 1rem 0; flex: 1; }

.side-menu nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: 'Inter Leve';
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  margin-left: -3px;
}

.side-menu nav a:hover {
  color: var(--green);
  background: var(--green-light);
  border-left-color: var(--green);
}

.nav-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-icon svg { width: 18px; height: 18px; transition: stroke 0.2s; }
.side-menu nav a:hover .nav-icon svg { stroke: var(--green) !important; }


.side-menu-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(196,196,196,0.2);
  background: var(--blue-light);
}

.side-menu-footer .btn-acceder {
  width: 100%;
  padding: 0.83rem; /* aumentado ~10% */
  border-radius: 10px;
  font-size: 1.05rem; /* aumentado ~10% */
  text-align: center;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 4rem 2rem 0;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 77px;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.2);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand p {
  font-family: 'Inter Leve';
  font-size: 0.968rem;
  line-height: 1.7;
  max-width: 352px;
}

.footer-col p{
    font-family:'Inter Leve';
    font-size:.968rem;
    line-height:1.8;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col h4 {
  font-family: 'Glacial Indiference Negrita';
  color: white;
  font-size: 0.968rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-contact p{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:0;
}

.social-links { display: flex; gap: 0.6rem; }

.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
}

.social-link:hover { background: var(--blue); transform: translateY(-2px); }
.social-link:hover svg { stroke: white !important; }

.footer-col p { font-family: 'Inter Leve'; font-size: 0.968rem; line-height: 1.8; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--blue); }

.newsletter-form { 
  display: flex; 
  gap: 0.5rem; 
  margin-top: 1rem; 
  width:100%;
  justify-content:center;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: white;
  font-family: 'Inter Leve';
  font-size: 0.935rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form input:focus { border-color: var(--blue); }

.newsletter-form button {
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.99rem;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: #4aadd8; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
  font-family: 'Inter Leve';
  font-size: 0.858rem;
  color: rgba(255,255,255,0.3);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.large { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feedback-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .valores-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .side-menu { width: 100%; }
  .hero-cta { flex-direction: column; align-items: center; }
  section { padding: 4rem 1.25rem; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-switcher { top: 0.5rem; }
}

