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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: #efefef;
  color: #1b1b1b;
}

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

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

.container {
  width: 100%;
  margin: 0;
}

/* HEADER */
.header {
  background: rgba(255,255,255,1);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.35s ease;
}

.nav {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 46px 0 26px;
  transition: min-height 0.35s ease, padding 0.35s ease;
}

.header.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header.scrolled .nav {
  min-height: 86px;
}

.logo-wrap {
  width: 70%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.menu-wrap {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 118px;
  width: auto;
  object-fit: contain;
  transition: height 0.35s ease;
}

.header.scrolled .logo img {
  height: 82px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.menu a {
  font-size: 18px;
  color: #1b1b1b;
  padding-bottom: 6px;
  white-space: nowrap;
}

.menu a.active,
.menu a:hover {
  border-bottom: 1px solid #1b1b1b;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  height: calc(100vh - 140px);
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    url("../img/slider1.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero.slide-2 {
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.25)),
    url("../img/slider2.png");
}

.header.scrolled + .hero {
  height: calc(100vh - 86px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(180, 180, 180, 0.45);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 5;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 10px;
  height: 10px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.dot.active {
  background: #fff;
}

/* RESULTS */
.results-section {
  padding: 0 0 34px;
  background: #efefef;
}

.results-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 10px 70px 0;
}

.results-image img {
  width: 100%;
  max-width: 860px;
}

.results-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.results-date {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.4px;
}

.btn-primary {
  display: inline-block;
  background: #072f52;
  color: #fff;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: 0.2s ease;
}

.btn-primary:hover {
  background: #0d426f;
}

/* FEATURES */
.features {
  padding: 12px 0 70px;
  background: #ffffff;
}

.features .container {
  padding: 0 70px;
}

.features h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
}

.card {
  text-align: center;
}

.card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  margin-bottom: 22px;
}

.card h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
}

.card p {
  color: #5b5b5b;
  font-size: 16px;
  line-height: 1.8;
  max-width: 460px;
  margin: 0 auto;
}

.more-info {
  text-align: center;
  margin-top: 34px;
}

/* FOOTER */
.footer {
  padding: 68px 0 40px;
  background: #ffffff;
}

.footer-content {
  text-align: center;
  padding: 0 20px;
}

.footer-content h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 34px;
}

.footer-content p {
  font-size: 16px;
  color: #555;
}

/* CHAT */
.chat-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #072f52;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 1200;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .results-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .results-grid,
  .features .container {
    padding-left: 30px;
    padding-right: 30px;
  }

  .results-info {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav {
    min-height: 92px;
    padding: 0 16px;
  }

  .logo-wrap,
  .menu-wrap {
    width: auto;
  }

  .logo img {
    height: 92px;
    width: auto;
    object-fit: contain;
    transition: height 0.35s ease;
  }

  .header.scrolled .logo img {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    display: none;
    gap: 10px;
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    width: 100%;
    padding: 10px 0;
  }

  .hero {
    height: 340px;
  }

  .results-grid,
  .features .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .results-date {
    font-size: 20px;
  }

  .features h2 {
    font-size: 22px;
  }

  .card img {
    height: auto;
  }

  .chat-button {
    width: 58px;
    height: 58px;
    font-size: 24px;
    right: 16px;
    bottom: 16px;
  }
}

/* NOTICIAS */
.news-page {
  background: #ffffff;
  padding: 40px 0 80px;
}

.news-wrapper {
  width: min(1120px, 86%);
  margin: 0 auto;
}

.news-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  margin-left: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: 28px;
  padding: 38px 0;
  border-top: 1px solid #d8d8d8;
  justify-content: start;
}

.news-item img {
  width: 180px;
  height: 135px;
  object-fit: cover;
}

.news-content h2 {
  font-size: 26px;
  font-weight: 400;
  margin: 8px 0 14px;
  line-height: 1.2;
}

.news-date {
  font-size: 15px;
  color: #555;
  margin-bottom: 6px;
}

.news-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  max-width: 680px;
}

.news-content a {
  display: inline-block;
  margin-top: 18px;
  font-size: 18px;
  color: #0a2f52;
}

.news-content a:hover {
  text-decoration: underline;
}

/* CONTACTO */
.contact-page {
  background: #ffffff;
  padding: 40px 0 90px;
}

.contact-wrapper {
  width: min(1120px, 86%);
  margin: 0 auto;
}

.contact-top-text {
  font-size: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d8d8d8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.contact-info h1 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 42px;
}

.contact-info p {
  font-size: 17px;
  line-height: 1.7;
  color: #555;
  max-width: 430px;
}

.contact-form-box h2 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  background: #f7f7f7;
  padding: 18px 16px;
  font-size: 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: #333;
}

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

.attach-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 15px;
}

.attach-label {
  cursor: pointer;
  color: #0a2f52;
}

.send-btn {
  margin-top: 10px;
  border: 1px solid #0a2f52;
  background: transparent;
  color: #0a2f52;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.send-btn:hover {
  background: #0a2f52;
  color: #fff;
}

.captcha-note {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .news-wrapper {
    width: auto;
    max-width: none;
    margin-left: 24px;
    margin-right: 24px;
  }

  .news-item,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-item img {
    width: 100%;
    height: auto;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .news-wrapper,
  .contact-wrapper {
    width: min(94%, 700px);
  }

  .news-content h2,
  .contact-info h1,
  .contact-form-box h2 {
    font-size: 22px;
  }

  .news-content p,
  .contact-info p {
    font-size: 16px;
  }

  .attach-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* LINKS EN NOTICIAS */
.news-thumb-link {
  display: block;
}

.news-title-link {
  color: inherit;
  text-decoration: none;
}

.news-title-link:hover {
  text-decoration: underline;
}

/* ARTICULO INDIVIDUAL */
.article-page {
  background: #ffffff;
  padding: 40px 0 80px;
}

.article-wrapper {
  width: min(1180px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 780px) 320px;
  gap: 36px;
  align-items: start;
}

.article-main {
  padding-right: 34px;
  border-right: 1px solid #dddddd;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: #1f4567;
  font-size: 18px;
}

.article-title {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  color: #14395a;
  margin-bottom: 12px;
}

.article-date {
  font-size: 16px;
  color: #666;
  margin-bottom: 28px;
}

.article-main-image {
  width: 100%;
  max-width: 640px;
  margin-bottom: 28px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 18px;
  max-width: 700px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #555;
  margin: 26px 0 14px;
}

.article-body ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-body li {
  font-size: 17px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 4px;
}

.article-sidebar h2 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 26px;
  color: #333;
}

.recent-post {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
}

.recent-post img {
  width: 95px;
  height: 95px;
  object-fit: cover;
}

.recent-post h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 400;
  margin-bottom: 8px;
}

.recent-post p {
  font-size: 15px;
  color: #777;
}

@media (max-width: 980px) {
  .article-wrapper {
    grid-template-columns: 1fr;
  }

  .article-main {
    border-right: none;
    padding-right: 0;
  }

  .article-main-image {
    max-width: 100%;
  }
}