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

:root {
  --primary: #1a2744;
  --accent: #c96b32;
  --accent-light: #e8864a;
  --text: #333;
  --text-light: #6d7081;
  --bg: #fff;
  --bg-light: #f7f8fc;
  --bg-dark: #0f1a2e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav__logo img { height: 44px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav__links a:hover, .nav__links a.active { color: var(--accent-light); }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
}

.nav__lang img { width: 20px; height: 15px; border-radius: 2px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 120px 0 80px;
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover { background: var(--accent-light); transform: translateY(-2px); }

.btn--outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn--outline:hover { background: rgba(255,255,255,0.1); }

/* ===== FEATURES ===== */
.features {
  padding: 80px 0;
  background: var(--bg-light);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.feature-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  color: #fff;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-card p { font-size: 14px; color: var(--text-light); }

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p { color: var(--text-light); font-size: 16px; }

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.about__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about__image img { width: 100%; height: 400px; object-fit: cover; }

.about__text h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}

.about__text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 15px;
}

/* ===== DEPOSITO ===== */
.deposito {
  padding: 80px 0;
  background: var(--bg-light);
}

.deposito__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.deposito__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.deposito__image img { width: 100%; height: 400px; object-fit: cover; }

.deposito__text h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}

.deposito__text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 15px;
}

/* ===== CERT BADGE ===== */
.cert-badge {
  display: inline-block;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.cert-badge img { height: 120px; width: auto; }

/* ===== TEAM ===== */
.team {
  padding: 80px 0;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--bg-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.team-card h4 { font-size: 14px; color: var(--primary); }

/* ===== CONTACT ===== */
.contact {
  padding: 80px 0;
  background: var(--primary);
  color: #fff;
}

.contact .section-header h2 { color: #fff; }
.contact .section-header p { color: rgba(255,255,255,0.7); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact__form { display: flex; flex-direction: column; gap: 16px; }

.contact__form input,
.contact__form textarea {
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(255,255,255,0.5); }

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact__form textarea { min-height: 120px; resize: vertical; }

.contact__info h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.contact__info-item strong { color: #fff; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0 24px;
  text-align: center;
  font-size: 13px;
}

.footer__logo { height: 40px; margin: 0 auto 16px; opacity: 0.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

  .nav__links.open { display: flex; }

  .hamburger { display: flex; }

  .about__grid,
  .deposito__grid,
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .deposito__grid { direction: ltr; }

  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .team-card__photo { width: 80px; height: 80px; }
}

/* ===== HABILITACIONES PAGE ===== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; }

.hab-list { padding: 60px 0; }

.hab-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.hab-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.hab-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
}

.hab-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.hab-card .btn { margin-top: 8px; font-size: 13px; padding: 10px 24px; }

/* ===== RICARDO PAGE ===== */
.ricardo-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  color: #fff;
}

.ricardo-hero__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}

.ricardo-hero__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.2);
}

.ricardo-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.ricardo-hero p { color: rgba(255,255,255,0.7); font-size: 15px; }

.ricardo-content { padding: 60px 0; }

.ricardo-content .container { max-width: 800px; }

.ricardo-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.ricardo-content strong { color: var(--primary); }

.ricardo-content h2 {
  font-size: 22px;
  color: var(--primary);
  margin: 40px 0 20px;
}

@media (max-width: 768px) {
  .ricardo-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ricardo-hero__photo { margin: 0 auto; width: 150px; height: 150px; }
}
