/* ==============================
   ESTILOS ESPECÍFICOS MULTIPÁGINA
   Solo elementos únicos de otras páginas
============================== */

/* ==============================
   PAGE HERO (páginas internas)
============================== */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
}

.page-hero .inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(10, 36, 26, 0.5);
}

.page-hero p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-light);
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ==============================
   SIDEBAR INDEX
============================== */
.sidebar-index {
  position: fixed;
  left: 0;
  top: 150px;
  width: 250px;
  background: var(--primary-color);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-medium);
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-content h3 {
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link,
.sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all var(--transition);
  font-weight: 600;
  position: relative;
}

.sidebar-link i {
  color: var(--accent-color);
  width: 20px;
  text-align: center;
}

.sidebar-link:hover,
.sidebar-link:focus,
.sidebar-link.active {
  background: var(--secondary-color);
  transform: translateX(5px);
  outline: none;
}

.sidebar-sublink {
  padding-left: 2.5rem;
  font-weight: 400;
  font-size: 0.9rem;
}

.sidebar-sublink::before {
  content: '→';
  position: absolute;
  left: 1.5rem;
  color: var(--accent-color);
}

.sidebar-sublink:hover,
.sidebar-sublink:focus {
  background: rgba(144, 64, 62, 0.2);
  transform: translateX(3px);
}

@media (max-width: 1200px) {
  .sidebar-index {
    transform: translateX(-100%);
  }
  
  .sidebar-index:hover {
    transform: translateX(0);
  }
  
  .sidebar-index::after {
    content: '☰';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 1.5rem;
    cursor: pointer;
  }
}

@media (max-width: 900px) {
  .sidebar-index {
    display: none;
  }
}

/* ==============================
   LANGUAGE TOGGLE
============================== */
.language-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: var(--spacing-sm);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  background: var(--lang-bg);
  border: 2px solid transparent;
  border-radius: 25px;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.lang-btn:hover,
.lang-btn:focus {
  background: var(--lang-bg-hover);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  outline: none;
}

.lang-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-light);
}

.lang-btn .flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-btn .lang-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .language-toggle {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .lang-btn {
    padding: 0.4rem 0.6rem;
  }
  
  .lang-btn .lang-text {
    display: none;
  }
  
  .lang-btn .flag {
    font-size: 1.5rem;
  }
}

/* ==============================
   ABOUT PAGE - COMPONENTES ÚNICOS
============================== */
.about-detailed {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.about-intro {
  display: flex;
  justify-content: center;
}

.profile-section {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: center;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  background: var(--dark-bg);
}

.profile-quick-info {
  flex: 1;
  min-width: 250px;
}

.profile-quick-info h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-light);
}

.profile-quick-info .role {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--accent-color);
}

.profile-quick-info .location,
.profile-quick-info .education {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.profile-quick-info i {
  width: 20px;
  color: var(--accent-color);
}

.about-content,
.about-philosophy,
.about-stats,
.about-interests {
  background: var(--light-bg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.about-content h3,
.about-philosophy h3,
.about-stats h3,
.about-interests h3 {
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.about-content h3 i,
.about-philosophy h3 i,
.about-stats h3 i,
.about-interests h3 i {
  color: var(--accent-color);
}

.about-content p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

/* Philosophy Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.philosophy-item {
  background: var(--dark-bg);
  padding: var(--spacing-md);
  border-radius: 0.75rem;
  border-left: 4px solid var(--accent-color);
  transition: all var(--transition);
}

.philosophy-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.philosophy-item i {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--accent-color);
}

.philosophy-item h4,
.philosophy-item p {
  color: var(--text-light);
}

.philosophy-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.philosophy-item p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Stats Detailed Grid */
.stats-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.stat-detailed {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--dark-bg);
  border-radius: 0.75rem;
  transition: all var(--transition);
}

.stat-detailed:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.stat-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: var(--text-light);
  font-size: 1.5rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-info strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-color);
}

.stat-info > span {
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--text-light);
}

.stat-info p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
  color: var(--text-light);
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.interest-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--dark-bg);
  border-radius: 0.75rem;
  transition: all var(--transition);
}

.interest-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  background: var(--primary-color);
}

.interest-item i {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--accent-color);
}

.interest-item h4,
.interest-item p {
  color: var(--text-light);
}

.interest-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.interest-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ==============================
   HOME PAGE - COMPONENTES ÚNICOS
============================== */
.about-preview {
  max-width: 900px;
  margin: 0 auto;
}

/* ==============================
   PROJECTS PAGE - COMPONENTES ÚNICOS
============================== */
.project-card-detailed {
  margin-bottom: var(--spacing-xl);
}

.toggle-process {
  background: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.toggle-process:hover,
.toggle-process:focus {
  background: var(--secondary-color);
  color: var(--text-light);
}

.toggle-process.active {
  background: var(--secondary-color);
  color: var(--text-light);
}

.toggle-process.active i {
  transform: rotate(180deg);
}

/* ==============================
   HEADER CENTRADO (proyectos.html)
============================== */
#header.centered {
  justify-content: center;
}

#header.centered h1 {
  position: absolute;
  left: 2rem;
}

/* ==============================
   RESPONSIVE ESPECÍFICO
============================== */
@media (max-width: 900px) {
  .page-hero {
    min-height: 30vh;
    margin-top: 70px;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .about-profile-pic {
    width: 150px;
    height: 150px;
  }

  .philosophy-grid,
  .stats-detailed-grid,
  .interests-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .profile-quick-info h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .stat-info strong {
    font-size: 1.5rem;
  }

  .social-buttons {
    gap: 0.5rem;
  }

  .social-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* ==============================
   PRINT ESPECÍFICO
============================== */
@media print {
  .sidebar-index,
  .page-hero,
  .language-toggle {
    display: none;
  }

  .about-profile-pic {
    width: 120px;
    height: 120px;
  }
}