/* ============================================
   CPTM - Centro de Profesionales Técnicos de La Matanza
   Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,300&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --dark: #445659;
  --dark-deep: #2e3d3f;
  --dark-nav: #2c3e3f;
  --light: #f5f2ee;
  --white: #ffffff;
  --beige: #f0ede8;
  --gray-text: #6b7a7c;
  --gray-light: #9aacae;
  --accent: #e8a020;
  --accent-dark: #c98a10;
  --red-cptm: #c0392b;
  --border: rgba(68,86,89,0.15);
  --shadow: 0 4px 24px rgba(44,62,63,0.12);
  --shadow-hover: 0 8px 36px rgba(44,62,63,0.2);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --nav-height: 80px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(44,62,63,0.08);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img {
  height: 56px;
  width: auto;
  transition: opacity var(--transition);
}
.navbar-logo:hover img { opacity: 0.85; }
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navbar-menu a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all var(--transition);
  position: relative;
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}
.navbar-menu a:hover { color: var(--dark-deep); }
.navbar-menu a:hover::after,
.navbar-menu a.active::after { width: 70%; }
.navbar-menu a.active { color: var(--dark-deep); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--beige); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO BANNER / SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--beige);
}
.slide {
  display: none;
  width: 100%;
}
.slide.active { display: block; }
.slide img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  z-index: 10;
}
.slider-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.slider-btn.prev { left: 1.5rem; }
.slider-btn.next { right: 1.5rem; }
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dots span.active { background: var(--white); transform: scale(1.2); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================
   SECTIONS & CONTAINERS
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section {
  padding: 4rem 0;
}
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-beige {
  background: var(--beige);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 300;
  color: var(--dark);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-text);
  text-align: center;
  margin-bottom: 3rem;
}
.section-dark .section-subtitle { color: var(--gray-light); }

/* ============================================
   NOVEDADES / NEWS CARDS
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.news-card-img {
  height: 220px;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body {
  padding: 1.5rem;
}
.news-card-date {
  font-size: 0.78rem;
  color: var(--gray-text);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.news-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.7;
}
.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: gap var(--transition);
}
.news-card-link:hover { gap: 0.7rem; color: var(--dark-deep); }

/* ============================================
   SECCIONES GRID (home)
   ============================================ */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.section-card {
  background: var(--dark-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
}
.section-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.section-card-img {
  height: 190px;
  overflow: hidden;
}
.section-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: all 0.4s ease;
}
.section-card:hover .section-card-img img { filter: brightness(0.95); transform: scale(1.03); }
.section-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.section-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.section-card-desc {
  font-size: 0.84rem;
  color: var(--gray-light);
  line-height: 1.6;
}

/* ============================================
   SUBSCRIBE SECTION
   ============================================ */
.subscribe-section {
  padding: 4rem 0;
  text-align: center;
  background: var(--white);
}
.subscribe-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.subscribe-section p {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}
.subscribe-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.subscribe-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--beige);
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input:focus { border-color: var(--dark); }
.btn-primary {
  background: var(--dark);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-primary:hover { background: var(--dark-deep); transform: translateY(-1px); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.footer-brand-desc {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-contact {
  text-align: right;
}
.footer-contact p {
  font-size: 0.88rem;
  color: var(--gray-light);
  margin-bottom: 0.3rem;
}
.footer-contact a {
  color: var(--gray-light);
  transition: color var(--transition);
  font-size: 0.88rem;
}
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--gray-light);
  letter-spacing: 0.02em;
}
.footer-bottom-copy { }
.footer-credit {
  font-size: 0.75rem;
  color: rgba(154,172,174,0.6);
  font-style: italic;
  letter-spacing: 0.02em;
}
.footer-credit a {
  color: rgba(154,172,174,0.8);
  font-weight: 500;
  font-style: normal;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-credit a:hover { color: var(--accent); }

/* ============================================
   INNER PAGE CONTENT
   ============================================ */
.content-block {
  padding: 4rem 0;
}
.content-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.content-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.content-text p {
  color: var(--gray-text);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.92rem;
}
.content-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.content-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Dark content block */
.content-block-dark {
  background: var(--dark);
  color: var(--white);
  padding: 3.5rem 0;
}
.content-block-dark h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 2rem;
}
.list-advisory {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gray-light);
  font-size: 0.92rem;
}
.advisory-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.advisory-list li {
  color: var(--gray-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.advisory-list li::before {
  content: '★';
  color: var(--accent);
  font-size: 0.7rem;
}

/* Convenios */
.convenios-grid {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.convenio-logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.convenio-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.convenio-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Cursos grid */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.curso-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.curso-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.curso-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: brightness(0.85);
}
.curso-card-body { padding: 1.25rem; }
.curso-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.curso-card-body p {
  font-size: 0.84rem;
  color: var(--gray-light);
  line-height: 1.6;
}

/* Photo Gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.photo-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.photo-gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }

/* Contact form */
.contact-section {
  background: var(--dark);
  padding: 4rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--gray-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.contact-detail {
  margin-bottom: 1rem;
}
.contact-detail strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.contact-detail span, .contact-detail a {
  color: var(--gray-light);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--white); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--gray-text); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.btn-accent {
  background: var(--accent);
  color: var(--dark-deep);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition);
  align-self: flex-start;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Map */
.map-section {
  padding: 3rem 0 4rem;
}
.map-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
.map-info { display: flex; flex-direction: column; gap: 1.25rem; }
.map-detail strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 0.25rem;
}
.map-detail span { font-size: 0.9rem; color: var(--dark); }
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 320px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sobre nosotros */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 340px;
}
.about-img {
  position: relative;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(68,86,89,0.6), rgba(44,62,63,0.3));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.about-img-overlay span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.about-text {
  background: var(--beige);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================
   NOTICIAS SINGLE PAGE
   ============================================ */
.article-single {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.article-single h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-meta {
  font-size: 0.82rem;
  color: var(--gray-text);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.article-single img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.article-single .content p {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.back-link:hover { color: var(--dark); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .sections-grid { grid-template-columns: repeat(2, 1fr); }
  .content-two-col { gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .navbar-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
    gap: 0.25rem;
    z-index: 999;
  }
  .navbar-menu.open { display: flex; }
  .navbar-menu a { font-size: 0.9rem; padding: 0.75rem 1rem; width: 100%; }
  .hamburger { display: flex; }
  
  .sections-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-contact { text-align: center; }
  .content-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .map-grid { grid-template-columns: 1fr; }
  .about-block { grid-template-columns: 1fr; }
  .about-img { height: 240px; }
  .about-text { padding: 2rem; }
  .cursos-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-social { justify-content: center; }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ============================================
   SLIDER TRANSITIONS — crossfade elegante
   Proporción fija: 1200×420px (100% : 35%)
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  width: 100%;
  /* aspect-ratio basado en 1200x420 = 35% */
  aspect-ratio: 1200 / 420;
}
.slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Botones y dots se posicionan sobre el slider */
.slider-btn {
  z-index: 10;
}
.slider-dots {
  z-index: 10;
}
@media (max-width: 600px) {
  .hero-slider {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================
   WHATSAPP STICKY BUTTON
   ============================================ */
.whatsapp-sticky {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.2);
  animation: none;
}
.whatsapp-sticky svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 10px rgba(37,211,102,0); }
}

/* ============================================
   SECTION CARD TITLE REFINEMENT
   ============================================ */
.section-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.section-card-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--gray-light);
  line-height: 1.6;
}

/* News card title refinement */
.news-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.news-card-date {
  font-size: 0.73rem;
  color: var(--gray-text);
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Page hero refinement */
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 200;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Content text heading refinement */
.content-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Subscribe section heading refinement */
.subscribe-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Footer brand name refinement */
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}


/* ============================================
   GALERÍA DE SECCIONES — layout flexible
   4 fotos al lado del texto + resto abajo
   ============================================ */

/* Grilla 2x2 al lado del texto (fotos destacadas) */
.gallery-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.gallery-featured img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.gallery-featured img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* Galería extendida debajo — 4 columnas */
.gallery-extended {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.gallery-extended-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 1.25rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gallery-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
  z-index: 1;
  position: relative;
}

/* Lightbox simple */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid img { height: 130px; }
  .gallery-featured img { height: 140px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
}
