/*
  TODOS LOS FONDOS E IMÁGENES SE CARGAN DESDE LA CARPETA /imagenes
  Puedes reemplazar cualquier archivo manteniendo el mismo nombre.
*/

:root {
  --bg: #06111c;
  --bg-soft: #0a2238;
  --bg-soft-2: #123555;
  --surface: rgba(9, 27, 44, 0.74);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #edf7f8;
  --text-soft: #b5cfd3;
  --title: #ffffff;
  --primary: #24b1ba;
  --primary-2: #41d3da;
  --secondary: #0b4e7a;
  --accent: #5b59c9;
  --dark-text: #143047;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1220px, calc(100% - 40px));
  --transition: 0.32s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(36, 177, 186, 0.15), transparent 24%),
    radial-gradient(circle at 90% 20%, rgba(91, 89, 201, 0.14), transparent 25%),
    var(--bg);
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dark-overlay {
  background:
    linear-gradient(180deg, rgba(6, 17, 28, 0.76), rgba(6, 17, 28, 0.86)),
    linear-gradient(90deg, rgba(4, 17, 30, 0.85), rgba(4, 17, 30, 0.5));
}

.light-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 25, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity var(--transition);
}

.site-header.scrolled::before,
.site-header.menu-open::before {
  opacity: 1;
}

.navbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo,
.footer-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.18);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.24rem;
  letter-spacing: 0.02em;
}

.brand-copy span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
  transition: color var(--transition), opacity var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #79ecf1;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('imagenes/puede.png');
}

.hero-overlay {
  background:
    linear-gradient(110deg, rgba(3, 14, 25, 0.94) 10%, rgba(5, 22, 38, 0.78) 48%, rgba(5, 18, 31, 0.45) 100%),
    radial-gradient(circle at 22% 18%, rgba(36, 177, 186, 0.2), transparent 24%);
}

.hero-grid,
.about-grid,
.director-grid,
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  padding: 140px 0 72px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.88rem;
  font-weight: 800;
  color: #91f1f5;
}

.hero h1,
.section-heading h2,
.director-copy h2,
.contact-copy h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--title);
}

.hero h1 {
  max-width: 11.5ch;
  font-size: clamp(2.8rem, 5.1vw, 4.95rem);
  text-wrap: balance;
}

.hero-text,
.section-lead,
.about-copy p,
.purpose-card p,
.service-card p,
.director-copy p,
.contact-card span,
.form-header p,
.footer-brand p {
  color: var(--text-soft);
  line-height: 1.75;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #052130;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 40px rgba(36, 177, 186, 0.24);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.btn.full {
  width: 100%;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.hero-points article,
.glass-card,
.purpose-card,
.service-card,
.contact-card,
.contact-form-card,
.director-copy,
.director-mini-card,
.visual-frame {
  backdrop-filter: blur(16px);
}

.hero-points article {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}

.hero-points strong,
.contact-card strong {
  display: block;
  color: #ffffff;
  margin-bottom: 8px;
}

.hero-points span {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}

.hero-card {
  position: relative;
  width: min(470px, 100%);
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-glow {
  position: absolute;
  inset: auto -10% -20% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(36, 177, 186, 0.28), transparent 68%);
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 26px;
}

.floating-badge {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(36, 58, 78, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
}

.badge-one { top: 72px; right: 0; }
.badge-two { bottom: 110px; left: 10px; }
.badge-three { bottom: 36px; right: 38px; }

.about-section {
  background-image: url('imagenes/manos.jpg');
}

.about-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.section-heading {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading.light h2,
.section-heading.light .section-kicker,
.section-heading.light .section-lead {
  color: #ffffff;
}

.section-heading h2,
.director-copy h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
}

.section-lead {
  margin: 18px 0 0;
  font-size: 1.04rem;
}

.glass-card,
.director-copy,
.contact-form-card,
.purpose-card,
.director-mini-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.glass-card,
.contact-form-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.about-copy {
  margin-top: 26px;
}

.about-copy p,
.director-copy p {
  margin: 0;
}

.about-copy p + p,
.director-copy p + p {
  margin-top: 16px;
}

.about-visual {
  position: relative;
  min-height: 560px;
}

.visual-frame {
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.visual-frame img {
  border-radius: 24px;
  width: 100%;
}

.visual-chip {
  position: absolute;
  max-width: 220px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 0.94rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.chip-a { top: 28px; left: -18px; background: rgba(36, 177, 186, 0.24); }
.chip-b { right: -12px; top: 180px; background: rgba(91, 89, 201, 0.24); }
.chip-c { left: 36px; bottom: 16px; background: rgba(6, 24, 40, 0.84); }

.purpose-section {
  background-image: url('imagenes/marcaagua.png');
  color: var(--dark-text);
}

.purpose-section .section-kicker,
.purpose-section .section-heading h2 {
  color: #0c3456;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.purpose-card {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(13, 74, 112, 0.1);
  color: var(--dark-text);
}

.card-media {
  margin: -32px -32px 26px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-icon,
.service-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 18px;
}

.card-icon {
  background: linear-gradient(135deg, rgba(36, 177, 186, 0.15), rgba(91, 89, 201, 0.12));
  color: #0b577f;
}

.card-icon svg,
.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.purpose-card h3,
.service-card h3,
.form-header h3 {
  margin: 0 0 14px;
}

.purpose-card h3 {
  color: #0e385b;
  font-size: 1.34rem;
}

.values-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #4f6574;
  line-height: 1.65;
}

.services-section {
  background-image: url('imagenes/proquantica.png'); 
  overflow: hidden;
}

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.service-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.service-card:hover,
.purpose-card:hover,
.contact-card:hover,
.director-mini-card:hover {
  transform: translateY(-6px);
}

.service-card:hover {
  background: linear-gradient(180deg, rgba(36, 177, 186, 0.13), rgba(255, 255, 255, 0.05));
  border-color: rgba(126, 232, 238, 0.28);
}

.service-media {
  margin: -26px -26px 22px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.service-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-icon {
  background: linear-gradient(135deg, rgba(36, 177, 186, 0.18), rgba(91, 89, 201, 0.16));
  color: #9cecf2;
}

.service-card h3 {
  font-size: 1.22rem;
  color: #ffffff;
}

.service-card:nth-child(5) {
  grid-column: 2 / span 1;
}

.director-section {
  background-image: url('imagenes/director-bg.svg');
}

.director-grid {
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
}

.director-profile {
  display: grid;
  gap: 18px;
}

.director-photo-frame {
  padding: 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(36, 177, 186, 0.12), rgba(91, 89, 201, 0.08));
  border: 1px solid rgba(10, 70, 106, 0.12);
  box-shadow: 0 24px 60px rgba(9, 34, 57, 0.12);
}

.director-photo-frame img {
  width: 100%;
  border-radius: 26px;
}

.director-mini-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(10, 70, 106, 0.12);
}

.director-mini-card strong,
.director-copy h2,
.director-role {
  color: #0d3758;
}

.director-mini-card span {
  display: block;
  margin-top: 8px;
  color: #516877;
  line-height: 1.65;
}

.director-copy {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(10, 70, 106, 0.12);
  box-shadow: 0 24px 60px rgba(9, 34, 57, 0.12);
}

.director-copy .section-kicker {
  color: #0b648d;
}

.director-copy p {
  color: #365267;
}

.director-role {
  margin: 10px 0 24px;
  font-size: 1.04rem;
  font-weight: 800;
}

.director-note {
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  background: rgba(36, 177, 186, 0.08);
}

.director-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.director-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #0c3457;
  background: rgba(11, 78, 122, 0.08);
  border: 1px solid rgba(11, 78, 122, 0.1);
  font-weight: 700;
}

.contact-section {
  background-image: url('imagenes/contact-bg.svg');
}

.contact-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
}

.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-card {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(124, 227, 233, 0.28);
}

.contact-form-card {
  position: relative;
  z-index: 1;
}

.form-header h3 {
  font-size: 1.5rem;
  color: #ffffff;
}

.form-header p {
  margin-top: 8px;
  margin-bottom: 24px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 700;
  color: #ffffff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 15px 16px;
  outline: none;
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(234, 246, 247, 0.55);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(124, 227, 233, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(36, 177, 186, 0.12);
}

.site-footer {
  background: #040d17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 40px;
}

.footer-content,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-content {
  justify-content: space-between;
}

.footer-brand strong,
.footer-right p {
  color: #ffffff;
}

.footer-brand p,
.footer-right p {
  margin: 0;
}

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

.reveal-scale {
  transform: scale(0.95);
}

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

@media (max-width: 1140px) {
  .hero-grid,
  .about-grid,
  .director-grid,
  .contact-grid,
  .purpose-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(5) {
    grid-column: auto;
  }

  .hero h1 {
    max-width: 12.5ch;
  }

  .about-visual,
  .hero-visual {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(5, 14, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    position: static;
    margin-top: 12px;
    justify-self: start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .section {
    padding: 86px 0;
  }

  .hero-grid {
    padding-top: 122px;
    padding-bottom: 50px;
  }

  .brand-copy strong {
    font-size: 1.04rem;
  }

  .brand-copy span {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    max-width: 11ch;
  }

  .section-heading h2,
  .director-copy h2,
  .contact-copy h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
  }

  .hero-text,
  .section-lead {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .glass-card,
  .purpose-card,
  .service-card,
  .contact-form-card,
  .director-copy,
  .director-mini-card,
  .contact-card {
    padding: 24px;
  }

  .card-media,
  .service-media {
    margin-left: -24px;
    margin-right: -24px;
    margin-top: -24px;
  }

  .visual-chip {
    position: static;
    margin-top: 12px;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .parallax-section {
    background-attachment: scroll;
  }
}
