/* ================================================
   INSTITUTO SAN MARTÍN DE PORRES - Global Styles
   ================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2744;
  --primary-light: #2a5a8c;
  --accent: #2e7d5b;
  --accent-hover: #246a4c;
  --accent-light: #d4efe3;
  --green: #2e7d5b;
  --red: #c0392b;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section--dark .section-title::after {
  background: rgba(255,255,255,0.4);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  font-family: var(--font-main);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nav__logo img {
  height: 55px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: var(--gray-50);
}

/* Dropdown */
.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  color: var(--gray-700);
  transition: all var(--transition);
}

.nav__dropdown a:hover {
  background: var(--gray-50);
  color: var(--primary);
  padding-left: 1.5rem;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.nav__cta .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.nav__social {
  display: flex;
  gap: 0.5rem;
}

.nav__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.nav__social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
  background-size: 60px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero__title {
  font-size: 3.25rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (inner pages) */
.page-hero {
  padding: 10rem 1.5rem 5rem;
  min-height: 340px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.page-hero .hero__title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-hero .hero__subtitle {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
  justify-content: center;
}

.breadcrumb a {
  color: var(--white);
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  opacity: 0.5;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}

.feature-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-main);
  font-weight: 700;
}

.feature-card__text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Feature Cards with Photo ---------- */
.features-grid--photo {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card--photo {
  padding: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.feature-card--photo:hover {
  color: inherit;
}

.feature-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.feature-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card--photo:hover .feature-card__img img {
  transform: scale(1.08);
}

.feature-card__overlay {
  position: absolute;
  bottom: -20px;
  right: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border: 3px solid var(--white);
}

.feature-card__ico {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.feature-card__content {
  padding: 1.75rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-card__content .feature-card__text {
  flex: 1;
}

.feature-card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  display: inline-block;
  transition: all var(--transition);
}

.feature-card--photo:hover .feature-card__link {
  gap: 0.75rem;
  letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
  .features-grid--photo { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .features-grid--photo { grid-template-columns: 1fr; }
  .feature-card__img { height: 180px; }
}

/* ---------- History / About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--gray-700);
  font-size: 1rem;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ---------- Mission / Vision / Values (Tabs) ---------- */
.tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tabs__nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tabs__btn {
  padding: 0.75rem 2rem;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--gray-700);
}

.tabs__btn.active,
.tabs__btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tabs__panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tabs__panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Values Grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.value-item__icon {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.value-item strong {
  color: var(--primary);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.value-item p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Info Cards (Who we are) ---------- */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.info-card p {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ---------- Contact Info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.contact-item__icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-main);
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0;
}

.contact-item a {
  color: var(--primary-light);
  font-weight: 500;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

/* ---------- Levels Cards ---------- */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.level-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.level-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.level-card__header {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-align: center;
}

.level-card__header h3 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.level-card__header span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.level-card__body {
  padding: 1.5rem;
}

.level-card__body p {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.level-card__body .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

/* ---------- Content Page Layout ---------- */
.content-page {
  padding: 3rem 0 5rem;
}

.content-page__body {
  max-width: 850px;
  margin: 0 auto;
}

.content-page__body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.content-page__body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-light);
}

.content-page__body p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.8;
}

.content-page__body ul,
.content-page__body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-page__body li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  position: relative;
  color: var(--gray-700);
  line-height: 1.6;
}

.content-page__body ul li::before {
  content: '✦';
  color: var(--accent);
  position: absolute;
  left: -1.25rem;
  font-size: 0.7rem;
  top: 0.35rem;
}

.content-page__body ol {
  list-style: decimal;
}

/* ---------- Admission Highlights ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.highlight-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.highlight-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-main);
}

.highlight-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer__brand img {
  margin-left: 0;
  margin-right: 0;
}

.footer__brand h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.8;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-main);
  margin-bottom: 1.25rem;
  position: relative;
}

.footer h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.5rem;
}

.footer__links a {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.footer__contact p {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer__contact a {
  color: rgba(255,255,255,0.7);
}

.footer__contact a:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer__bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .nav__menu,
  .nav__cta,
  .nav__social {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
  }

  .nav__menu.open .nav__item {
    width: 100%;
  }

  .nav__menu.open .nav__link {
    padding: 0.75rem 1rem;
    display: block;
  }

  .nav__menu.open .nav__dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, visibility 0.3s;
  }

  .nav__menu.open .nav__dropdown.submenu-open {
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    margin-top: 0.25rem;
  }

  /* Flecha indicadora para ítems con submenú */
  .nav__menu.open .nav__item.has-dropdown > .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__menu.open .nav__item.has-dropdown > .nav__link::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gray-600);
    border-bottom: 2px solid var(--gray-600);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
  }

  .nav__menu.open .nav__item.has-dropdown.dropdown-active > .nav__link::after {
    transform: rotate(-135deg);
  }

  .nav__menu.open .nav__cta-mobile {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 70vh;
    padding: 7rem 1.25rem 3rem;
  }

  .hero__title { font-size: 2.25rem; }
  .hero__subtitle { font-size: 1rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tabs__btn { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: none;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}

/* ---------- Photo Slider / Carousel ---------- */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: grab;
  user-select: none;
}

.slider__track.dragging {
  cursor: grabbing;
  transition: none;
}

.slider__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slider__slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.slider__btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.slider__btn--prev { left: 1rem; }
.slider__btn--next { right: 1rem; }

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.slider__dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.slider__dot:hover {
  background: var(--accent-hover);
}

@media (max-width: 768px) {
  .slider__slide img { height: 300px; }
  .slider__btn { width: 38px; height: 38px; }
  .slider__btn--prev { left: 0.5rem; }
  .slider__btn--next { right: 0.5rem; }
}

@media (max-width: 480px) {
  .slider__slide img { height: 220px; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
