/* Global Analytica — hoja de estilos */

:root {
  --navy: #1f2b37;
  --navy-dark: #171f29;
  --blue: #3f78b3;
  --blue-light: #65bfed;
  --blue-lighter: #abd4f2;
  --white: #ffffff;
  --off-white: #e9eef3;
  --text-muted: #c3cedb;
  --max-width: 1160px;
  --font-heading: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--off-white);
  background: var(--navy);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.5em 0;
  color: var(--white);
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

.brand img { height: 42px; width: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

.brand-text .brand-tag {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  color: var(--off-white);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--blue-light); }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--blue-light);
  color: var(--navy-dark);
}

.btn-primary:hover { background: var(--blue-lighter); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0.16;
}

.hero .container { position: relative; }

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span { display: block; }

.hero p.subtitle {
  font-size: 20px;
  color: var(--off-white);
  max-width: 720px;
  margin: 0 auto 40px;
  font-family: var(--font-heading);
  font-weight: 500;
}

.mission-box {
  border: 1px solid rgba(255,255,255,0.35);
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  text-align: left;
}

.mission-box .mission-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.35);
}

.mission-box p {
  padding: 24px;
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Sobre nosotros */
.about {
  background: var(--blue);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.about-image { min-height: 320px; background-size: cover; background-position: center; }

.about-content {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content h2 { font-size: 34px; }
.about-content h2 b { font-weight: 800; }

.about-content p {
  color: var(--off-white);
  font-size: 15px;
  max-width: 520px;
}

/* Quienes somos / equipo */
.team {
  position: relative;
  background: var(--navy-dark);
  padding: 70px 0;
  overflow: hidden;
}

.team-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.team .container { position: relative; }

.team > .container > h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.founder-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  margin-bottom: 56px;
  border: 1px solid rgba(255,255,255,0.15);
}

.founder-card .founder-photo {
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%);
  min-height: 340px;
}

.founder-card .founder-info {
  background: var(--blue);
  padding: 40px;
  text-align: center;
}

.founder-card .founder-info .role {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--off-white);
}

.founder-card .founder-info h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.founder-card .founder-info p {
  color: var(--off-white);
  font-size: 14px;
  text-align: left;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.team-member .photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  margin: 0 auto 16px;
  border: 3px solid var(--blue-light);
}

.team-member h4 { font-size: 18px; margin-bottom: 4px; }

.team-member .role {
  font-size: 13px;
  color: var(--blue-light);
  margin-bottom: 8px;
  font-weight: 700;
}

.team-member p.bio {
  font-size: 14px;
  color: var(--text-muted);
}

/* Servicios */
.services {
  position: relative;
  background: var(--blue);
  padding: 70px 0;
  overflow: hidden;
}

.services > .container { position: relative; }

.services h2 { font-size: 32px; margin-bottom: 44px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  max-width: 760px;
}

.service-item .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

.service-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 14px;
  color: var(--off-white);
  margin: 0;
}

.services-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 340px;
  opacity: 0.9;
  pointer-events: none;
}

/* Testimonios */
.testimonials {
  position: relative;
  background: var(--navy-dark);
  padding: 70px 0;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.testimonials .container { position: relative; }

.testimonials h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 44px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--blue);
  padding: 28px 24px;
  border-radius: 4px;
}

.testimonial-card .quote-mark {
  font-family: Georgia, serif;
  font-size: 46px;
  color: rgba(255,255,255,0.5);
  line-height: 0.5;
}

.testimonial-card p.quote {
  font-size: 14px;
  color: var(--white);
  min-height: 90px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.testimonial-card .author .photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.testimonial-card .author h4 {
  font-size: 14px;
  margin: 0;
}

/* Formulario */
.contact {
  position: relative;
  background: var(--navy);
  padding: 70px 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
}

.contact .container { position: relative; text-align: center; }

.contact h2 { font-size: 32px; }
.contact p.lead { color: var(--text-muted); margin-bottom: 36px; }

form.contact-form {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

form.contact-form .full { grid-column: 1 / -1; }

form.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: 2px;
}

form.contact-form textarea { min-height: 170px; resize: vertical; }

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}

form.contact-form button {
  background: var(--blue-lighter);
  color: var(--navy-dark);
  border: none;
  padding: 14px 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 2px;
  cursor: pointer;
  width: 100%;
}

form.contact-form button:hover { background: var(--white); }

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

.form-success {
  display: none;
  color: var(--blue-light);
  font-weight: 700;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.site-footer img { margin: 0 auto 14px; max-width: 220px; }

.site-footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Blog */
.page-header {
  padding: 60px 0 30px;
  text-align: center;
  background: var(--navy-dark);
}

.page-header h1 { font-size: 38px; }

.blog-list {
  padding: 50px 0 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.blog-card {
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card .thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.blog-card .content { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.blog-card h2 { font-size: 20px; margin-bottom: 10px; }

.blog-card p.excerpt {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.blog-card .meta {
  font-size: 12px;
  color: var(--blue-light);
  margin-top: 14px;
}

/* Post page */
.post {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 24px 90px;
}

.post .meta {
  color: var(--blue-light);
  font-size: 13px;
  margin-bottom: 6px;
}

.post h1 { font-size: 36px; margin-bottom: 14px; }

.post .byline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.post img.cover {
  border-radius: 6px;
  margin-bottom: 30px;
}

.post h2, .post h3 {
  margin-top: 34px;
  font-size: 22px;
}

.post p { color: var(--off-white); font-size: 16px; }

.post ul { color: var(--off-white); font-size: 16px; padding-left: 20px; }

.post blockquote {
  border-left: 3px solid var(--blue-light);
  padding-left: 18px;
  margin: 26px 0;
  color: var(--blue-lighter);
  font-style: italic;
  font-size: 17px;
}

.post .references {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  color: var(--text-muted);
}

.post .related {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.post .related h3 { font-size: 18px; }

.post .related a {
  color: var(--blue-light);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
  .about, .founder-card, .services-grid, .team-grid, .testimonial-grid, .blog-list {
    grid-template-columns: 1fr;
  }
  form.contact-form { grid-template-columns: 1fr; }
  .services-image { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 36px; }
  .mission-box { grid-template-columns: 1fr; }
  .mission-box .mission-title { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
}

@media (max-width: 900px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}
