﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

:root {
  --ease-out-soft: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* HERO */
.hero {
  height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 24px;
  transition: transform var(--ease-out-soft), filter var(--ease-out-soft);
}


.hero-buttons {
  display: flex;
  gap: 12px;
}

/* BUTTONS */
.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), background-color var(--ease-out-soft), color var(--ease-out-soft), border-color var(--ease-out-soft);
}

.btn-white {
  background: white;
  border: none;
  font-weight: 600;
  color: black;
}

.btn-outline {
  font-weight: 600;
  background: transparent;
  border: 1px solid white;
  color: white;
}

.btn-black {
  background: black;
  color: white;
  margin: 40px 0;
  border-radius: 12px;
  border: none;
}

/* SECTIONS */
.section {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 56px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: bold;
}

.section p {
  color: #777;
  margin-bottom: 16px;
}

/* EVENTS */
.events {
  position: relative;
  z-index: 0;
}

.events::before {
  content: "";
  position: absolute;
  left: 56px;
  right: 56px;
  top: 120px;
  height: 220px;
  border-radius: 32px;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
  z-index: -1;
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
}

.event-card {
  --event-offset: 0px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(var(--event-offset));
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), filter var(--ease-out-soft);
}

.event-card:nth-child(2) {
  --event-offset: 14px;
}

.event-card:nth-child(3) {
  --event-offset: -8px;
}

.event-card:nth-child(4) {
  --event-offset: 22px;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), filter var(--ease-out-soft);
}

/* PROMOTOR */
.promotor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promotor .icon {
  width: clamp(44px, 9vw, 56px);
  height: clamp(44px, 9vw, 56px);
}

.promotor .icon svg {
  width: 55%;
  height: 55%;
  stroke-width: 2;
}

.about-lead {
  max-width: 980px;
  line-height: 1.65;
  color: #5f5f5f;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.about-card {
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), border-color var(--ease-out-soft);
}

.about-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.about-card p {
  margin: 0;
  line-height: 1.6;
  color: #666;
}

.services-intro {
  max-width: 980px;
  line-height: 1.65;
  color: #5f5f5f;
}

.services .mission-panel {
  margin-bottom: 32px;
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.services-text {
  max-width: 960px;
}

.services-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "prev track next";
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.services-viewport {
  grid-area: track;
  width: min(100%, 820px);
  justify-self: center;
  overflow: hidden;
  min-width: 0;
}

.services-track {
  display: flex;
  gap: 24px;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), background-color var(--ease-out-soft), border-color var(--ease-out-soft);
}

.carousel-btn.prev {
  grid-area: prev;
}

.carousel-btn.next {
  grid-area: next;
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
  stroke: #111;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.service-card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), border-color var(--ease-out-soft);
  flex: 0 0 100%;
  max-width: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 56px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: #111;
}

.service-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.service-card p {
  margin-bottom: 0;
  color: #646464;
  line-height: 1.55;
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.service-card li {
  color: #4f4f4f;
  line-height: 1.45;
}

.service-closing {
  margin-top: 14px !important;
  color: #2e2e2e !important;
  font-weight: 600;
}

.institutional-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
}

.contact-panel,
.mission-panel {
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), border-color var(--ease-out-soft);
}

.institutional-intro {
  color: #5f5f5f;
  line-height: 1.65;
  margin-bottom: 14px;
}

.contact-group + .contact-group {
  margin-top: 18px;
}

.contact-group h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: #1f1f1f;
  background: #fff;
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), border-color var(--ease-out-soft);
}

.contact-item strong {
  font-size: 16px;
  line-height: 1.25;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #757575;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  transition: transform var(--ease-out-soft), background-color var(--ease-out-soft), color var(--ease-out-soft), box-shadow var(--ease-out-soft);
}

.social-link-dark {
  background: #111;
  color: #fff;
}

.commercial-note {
  margin-top: 20px;
  margin-bottom: 0 !important;
  padding: 14px 16px;
  border-radius: 12px;
  background: #111;
  color: #fff !important;
  line-height: 1.45;
}

.commercial-note strong {
  color: #fff;
}

.mission-panel p {
  color: #5f5f5f;
  line-height: 1.7;
}

.mission-panel p:last-child {
  margin-bottom: 0;
}

.card {
  border: 1px solid #ddd;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--ease-out-soft), box-shadow var(--ease-out-soft), border-color var(--ease-out-soft);
}

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

.card-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.icon svg {
  width: 20px;
  height: 20px;
  stroke: #111;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.green { background: #c7f3d2; }
.pink { background: #f7c6dc; }

/* FOOTER */
.footer {
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: 120px;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
}

.footer-grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px;
  color: white;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-logo {
  height: 40px;
  transition: transform var(--ease-out-soft), filter var(--ease-out-soft);
}

.footer-grid p {
  transition: color var(--ease-out-soft), transform var(--ease-out-soft);
}

.footer-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  color: #f1f1f1;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .hero:hover .logo {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  }

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

  .btn:active {
    transform: translateY(0);
  }

  .btn-white:hover {
    background: #f3f3f3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  }

  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .btn-black:hover {
    background: #111;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  }

  .event-card:hover {
    transform: translateY(calc(var(--event-offset) - 6px));
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.16);
  }

  .event-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.05);
  }

  .card:hover,
  .about-card:hover,
  .service-card:hover,
  .contact-panel:hover,
  .mission-panel:hover {
    transform: translateY(-4px);
    border-color: #cfcfcf;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .contact-item:hover {
    transform: translateY(-2px);
    border-color: #d5d5d5;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.06);
  }

  .social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    background: #111;
    color: #fff;
  }

  .social-link-dark:hover {
    background: #000;
  }

  .footer-logo:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  }

  .footer-grid p:hover {
    transform: translateX(2px);
    color: #f2f2f2;
  }

  .carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    background: #111;
    border-color: #111;
  }

  .carousel-btn:hover svg {
    stroke: #fff;
  }

  .carousel-btn:active {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* RESPONSIVO */
@media (max-width: 1024px) {
  .institutional-grid {
    grid-template-columns: 1fr;
  }

  .services-viewport {
    width: min(100%, 720px);
  }
}

@media (max-width: 768px) {

  .logo {
    width: min(82vw, 360px);
    height: auto;
  }

  .btn-white,  .btn-outline {
    padding: 13px 24px;
    border-radius: 12px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
    width: 100%;
    padding: 0 24px; 
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 420px; 
    text-align: center;
  }

 

  .section {
    padding: 0 24px;
  }

  .event-strip,
  .about-grid,
  .institutional-grid,
  .promotor-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-carousel {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "track track"
      "prev next";
  }

  .services-viewport {
    width: 100%;
  }

  .carousel-btn {
    justify-self: center;
  }

  .events::before {
    left: 24px;
    right: 24px;
    top: 170px;
    height: 180px;
  }

  .event-card,
  .event-card:nth-child(2),
  .event-card:nth-child(3),
  .event-card:nth-child(4) {
    --event-offset: 0px;
  }

  .footer-grid {
    text-align: left;
  }

  .footer-logo {
    height: 30px;
  }

  .section h2 {
    font-size: 28px;
    margin-bottom: 8px;
   
  }

  .btn-black {
    padding: 13px 24px;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .footer {
    height: 100%;
  }

  .footer-copy {
    position: relative;
    bottom: auto;
    padding: 8px 20px 18px;
  }
}
