/* =========================================
   SELECTA PLUS — Main Stylesheet
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
/* ---- Variables ---- */
:root {
  --gold: #e9c46a;
  --white: #ffffff;
  --gray-text: #5a6e68;
  --text-dark: #1b2e3c;
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--text-dark); line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { font-size: clamp(0.9rem, 1.5vw, 1rem); color: var(--gray-text); }


/* ============================================================
   HEADER / NAV
   ============================================================ */
.main-header {
  background: var(--white);
  padding: 12px 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
.main-header.scrolled {
  padding: 8px 60px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}
.logo-container img,
.logo-container svg { width: 150px; height: auto; transition: var(--transition); }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #512C1E;
  padding: 6px 16px;
  border-radius: 24px;
  transition: var(--transition);
}
.main-nav a:hover { color: #D02636; background: transparent; }
.main-nav a.active { color: #D02636; font-weight: 500; }

/* Botón hamburguesa (solo visible en móvil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #512C1E;
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.nav-overlay.open { display: block; }


/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px;
  background: var(--white);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero-image-side {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-image-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
 
  
}
.hero-content {
  width: 40%;
  margin-left: 12%;
  padding: 60px 20px 60px 40px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}
.hero-title {
  font-family: 'Roboto', serif;
  font-size: 2rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
  opacity: 1;
  animation: fadeUp 0.8s 0.5s forwards;
  font-weight: 400;
}
.hero-title em { color: #B29355; font-family: 'Pacifico', cursive; font-style: normal; font-weight: 400; }


/* ============================================================
   BOTÓN PRIMARIO
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D02636;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 1;
  animation: fadeUp 0.8s 0.9s forwards;
  width: fit-content;
}
.btn-primary:hover {
  background: transparent;
  border-color: #D02636;
  color: #D02636;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,157,143,0.3);
}
/* Hover especial solo para el botón del hero — borde y texto blancos */
.btn-primary.btn-hero:hover {
  border-color: #ffffff;
  color: #ffffff;
}


/* ============================================================
   MISSION BANNER
   ============================================================ */
.mission-banner {
  background: #ffffff;
  padding: 72px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mission-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mission-left h2 {
  font-size: 2rem;
  color: #D02636;
  line-height: 1.2;
  margin-bottom: 32px;
  max-width: 700px;
}

.mission-left h2 em {
  font-family: 'Roboto', serif;
  font-style: normal;
  font-weight: 700 !important;
  font-size: 1.5rem;
}
/* ============================================================
   SPLIT BANNER
   ============================================================ */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}
.split-banner-image { overflow: hidden; }
.split-banner-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.split-banner-text {
  background: #c0273f;
  display: flex;
  align-items: center;
  padding: 60px;
  margin-left: -3px;
}
.split-banner-text p {
  font-family: 'Roboto', serif;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}
.split-banner-text p em {
  font-family: 'Pacifico', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: 2rem;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #211f1e;
  padding: 60px 80px 32px;
  text-align: center;
  color: rgba(255,255,255,0.75);
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}
.footer-logo-img {
  height: 70px;
  width: auto;
}
.footer-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
  font-style: normal;
  margin-top: 0px;
}
.footer-tagline a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-tagline a:hover { color: #D02636; }
.footer-social-label {
  font-size: 0.78rem;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.footer-social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.footer-social-btn:hover {
  background: #D02636;
  border-color: #D02636;
  color: white;
  transform: translateY(-3px);
}
.footer-social-btn svg { width: 20px; height: 20px; fill: currentColor; }
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }


/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
  width: 90%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-text);
}


/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .main-header {
    padding: 10px 20px;
    justify-content: space-between;
    gap: 0;
  }
  .main-header.scrolled {
    padding: 10px 20px;
  }
  .logo-container img,
  .logo-container svg { width: 130px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 100px 32px 32px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 999;
  }
  .main-nav.open { right: 0; }
  .main-nav a {
    width: 100%;
    padding: 14px 4px;
    font-size: 1.1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

.hero { min-height: unset; aspect-ratio: 4 / 3; position: relative; }
.hero-image-side { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image-side img { object-position: center center; }
.hero-content {
  width: 58%;
  max-width: 600px;
  margin-left: 0;
  padding: 24px 20px;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title { font-size: 1.1rem; margin-bottom: 12px; line-height: 1.6; }
.hero .btn-primary.btn-hero {
  padding: 8px 20px;
  font-size: 0.75rem;
}

  .mission-banner { padding: 48px 24px; }
  .mission-left h2 { font-size: 1.6rem; }

  .split-banner { grid-template-columns: 1fr; min-height: auto; }
  .split-banner-text { padding: 32px 24px; }
  .split-banner-text p { font-size: 1.15rem; }
  .split-banner-text p em { font-size: 1.4rem; }

  .footer { padding: 48px 24px 24px; }
  .footer-logo-img { height: 70px; }
  .footer-tagline { margin-top: -10px; }
}
@media (max-width: 480px) {
  .split-banner-text p { font-size: 1.05rem; }
  .split-banner-text p em { font-size: 1.3rem; }
  .hero-title { font-size: 0.95rem; }
  .footer-logo-img { height: 50px; }
  .footer-tagline { margin-top: -5px; }
}
