/* =========================================
   1. CONFIGURACIÓN BASE (Variables, Reset, Body)
   ========================================= */
:root {
  --primary-color: #2c3e50;
  --accent-color: #e67e22;
  --text-dark: #333333;
  --text-white: #ffffff;
  --bg-light: #f4f4f4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 80px;
}

h1, h2, h3, .logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   2. LAYOUT GENERAL (Header, Nav, Footer)
   ========================================= */
#main-header {
  background-color: var(--primary-color);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  height: 80px;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- LOGO --- */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-white);
  font-size: 1.5rem;
}

.logo-img-container {
  width: 50px;
  height: 50px;
  background: var(--text-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.logo-img-container img {
  width: 80%;
  height: auto;
}

/* --- MENÚ PRINCIPAL --- */
#main-menu > ul {
  display: flex;
  gap: 20px;
  align-items: center;
}

#main-menu > ul > li {
  position: relative;
}

#main-menu a {
  color: var(--text-white);
  font-weight: 700;
  padding: 10px;
  display: block;
  transition: color 0.3s;
}

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

.btn-contact {
  background-color: var(--accent-color);
  padding: 8px 20px !important;
  border-radius: 20px;
  color: white !important;
}

.btn-contact:hover {
  background-color: #d35400 !important;
}

/* --- SUBMENÚS (DROPDOWNS) --- */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 100;
}

.submenu li {
  width: 100%;
}

.submenu a {
  color: var(--text-dark) !important;
  padding: 12px 15px !important;
  border-bottom: 1px solid #eee;
  font-weight: 400 !important;
}

.submenu a:hover {
  background-color: #f9f9f9;
  color: var(--accent-color) !important;
}

.submenu.show {
  display: block;
}

.arrow {
  font-size: 0.8em;
  margin-left: 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero_desktop.jpg');
  
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
  padding: 80px 20px;
  height: 85vh;  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* =========================================
                  FOOTER 
   ========================================= */

#main-footer {
  background-color: #1a252f;
  color: #ecf0f1;
  padding-top: 60px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* --- TÍTULOS DEL FOOTER --- */
.footer-col h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

/* --- TEXTOS GENERALES --- */
.footer-col p {
  line-height: 1.6;
  color: #bdc3c7;
  margin-bottom: 12px;
}

/* --- LISTA DE NAVEGACIÓN (Columna Central) --- */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px; 
}

/* --- ALINEACIONES PARA ESCRITORIO --- */
@media (min-width: 768px) {
  .align-center {
    align-items: center;
    text-align: center;
  }
  .align-center h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .align-right {
    align-items: flex-end;
    text-align: right;
  }
  .align-right h3::after {
    left: auto;
    right: 0;
  }
}

/* --- ÍCONOS SOCIALES --- */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  color: #ecf0f1;
  display: inline-flex;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-4px);
}

/* --- BARRA INFERIOR COPYRIGHT --- */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #7f8c8d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   3. RESPONSIVE (Móviles / Tablets)
   ========================================= */
@media (max-width: 768px) {
  
  .menu-toggle {
    display: block;
  }

  #main-menu {
    position: absolute;
    top: 80px; 
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #main-menu.active {
    max-height: 100vh;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  #main-menu > ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
  }

  #main-menu > ul > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  #main-menu a {
    padding: 15px 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: rgba(0,0,0,0.1);
  }

  .submenu a {
    color: #ddd !important;
    padding-left: 40px !important;
  }

  /* --- HERO MÓVIL --- */
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero_mobile.jpg');
    height: 70vh; 
    background-attachment: scroll;
  }
}

/* =========================================
   3. COMPONENTES REUTILIZABLES (Botones, Tarjetas)
   ========================================= */

.models-preview {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.models-preview h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 40px;
}

.cards-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.model-card {
  background: white;
  flex: 1 1 250px;
  max-width: 350px;  
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.model-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

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

.model-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-card {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s;
  align-self: center;
}

.btn-card:hover {
  background-color: var(--accent-color);
  color: white;
}

/* =========================================
   4. SECCIONES ESPECÍFICAS (Historia, Videos)
   ========================================= */

.workshop-section {
  background-color: var(--primary-color); 
  color: white;
  padding: 60px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px; 
  color: var(--accent-color);
}

.workshop-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.workshop-item {
  background-color: rgba(255, 255, 255, 0.1); 
  padding: 30px;
  border-radius: 10px;
  flex: 1 1 250px;
  max-width: 350px;
  transition: transform 0.3s ease, background 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

.workshop-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.icon-box {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.workshop-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-white);
}

.workshop-item p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}
/* =========================================
   PÁGINAS INTERNAS (ESTILOS COMUNES)
   ========================================= */

.page-title-header {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 40px 0;
  text-align: center;
}

.page-title-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.split-section {
  padding: 80px 0;
}

.alt-bg {
  background-color: #f4f7f6; 
}

.split-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.split-container.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
}

.split-text h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.split-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.split-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.split-image img {
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
  max-height: 400px;
  object-fit: cover;
}

.img-caption {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

.cultural-icon-section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.full-width-image-container img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

/* =========================================
   RESPONSIVE PARA HISTORIA
   ========================================= */
@media (max-width: 768px) {
  .page-title-header h1 {
    font-size: 2.2rem;
  }

  .split-container {
    flex-direction: column;
    gap: 30px;
  }

  .split-container.reverse {
    flex-direction: column-reverse;
  }

  .split-image img {
    width: 100%;
    max-height: auto;
  }
}

/* =========================================
   PÁGINA DE MODELOS
   ========================================= */

.model-detail-section {
  padding: 60px 0;
}

.model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.model-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0;
}

.badge {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.model-content {
  display: flex;
  gap: 40px;
}

.model-img-large {
  flex: 1;
}

.model-img-large img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.model-info {
  flex: 1;
}

.model-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.tech-specs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.tech-specs th, 
.tech-specs td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.tech-specs th {
  background-color: #f9f9f9;
  color: var(--primary-color);
  width: 40%;
  font-weight: bold;
}

.tech-specs tr:last-child td,
.tech-specs tr:last-child th {
  border-bottom: none;
}

.separator {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  margin: 0;
}

@media (max-width: 768px) {
  .model-content {
    flex-direction: column;
  }
  
  .model-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.modern-era-section {
  padding: 60px 0 80px 0;
  background-color: #f4f7f6;
  text-align: center;
}

.modern-header {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.modern-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.modern-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.modern-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  flex: 1 1 250px;
  max-width: 350px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-top: 4px solid #bdc3c7;
}

.modern-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.modern-card p {
  font-size: 0.95rem;
  color: #666;
}

.modern-card.highlight {
  border-top-color: var(--accent-color);
  background-color: #fffaf0;
}

.modern-card.highlight h4 {
  color: var(--accent-color);
}

/* =========================================
   GALERÍA (USANDO CSS GRID)
   ========================================= */
.gallery-section {
  padding: 60px 0;
  background-color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.gallery-item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); 
  color: white;
  padding: 10px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}


/* =========================================
   SECCIÓN DE VIDEOS
   ========================================= */
.videos-section {
  padding: 60px 0;
  background-color: #f4f7f6;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.video-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; 
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.video-info p {
  font-size: 0.9rem;
  color: #666;
}

/* =========================================
   PÁGINA DE DOCUMENTACIÓN (MECÁNICA)
   ========================================= */

.docs-layout {
  display: flex;
  gap: 50px;
  padding: 60px 0;
  position: relative;
}

/* --- BARRA LATERAL (STICKY) --- */
.docs-sidebar {
  flex: 0 0 250px;
  position: sticky;
  top: 100px;
  height: fit-content;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent-color);
}

.docs-sidebar h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.docs-sidebar ul {
  list-style: none;
}

.docs-sidebar li {
  margin-bottom: 12px;
}

.docs-sidebar a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: block;
}

.docs-sidebar a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

/* --- CONTENIDO PRINCIPAL --- */
.docs-content {
  flex: 1;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.doc-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}

.doc-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.doc-section h3 {
  font-size: 1.4rem;
  color: var(--accent-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.doc-section p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #444;
  font-size: 1.05rem;
}

/* Imágenes dentro del texto */
.doc-image {
  margin: 30px 0;
  text-align: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.doc-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.doc-image .caption {
  display: block;
  margin-top: 10px;
  font-style: italic;
  color: #777;
  font-size: 0.9rem;
}

/* Cajas de Información y Advertencia */
.info-box, .warning-box {
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-box {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #0d47a1;
}

.warning-box {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  color: #e65100;
}

/* Listas personalizadas */
.step-list {
  padding-left: 20px;
}
.step-list li {
  margin-bottom: 10px;
  padding-left: 10px;
}

/* RESPONSIVE PARA DOCUMENTACIÓN */
@media (max-width: 900px) {
  .docs-layout {
    flex-direction: column;
  }

  .docs-sidebar {
    width: 100%;
    position: static;
    border-left: none;
    border-top: 4px solid var(--accent-color);
  }

  .docs-content {
    padding: 20px;
  }
}

/* =========================================
   SECCIÓN LAST EDITION Y CSS SLIDER
   ========================================= */

.gallery-divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 60px 0;
}

.last-edition-showcase {
  background-color: #f4f7f6;
  padding: 40px;
  border-radius: 12px;
  border-left: 5px solid var(--accent-color);
}

.showcase-header {
  margin-bottom: 30px;
  text-align: center;
}

.showcase-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.showcase-header p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto; 
}

.css-slider-wrapper {
  position: relative;
  width: 100%;
}

.css-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory; 
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) #e0e0e0;
}

.css-slider::-webkit-scrollbar {
  height: 8px;
}
.css-slider::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 4px;
}
.css-slider::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 4px;
}

.css-slider .slider-item {
  flex: 0 0 calc(40% - 20px); 
  min-width: 280px; 
  scroll-snap-align: center;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.css-slider .slider-item img {
  width: 100%;
  height: 250px;
  object-fit: cover; 
}

.css-slider .slider-item figcaption {
  padding: 15px;
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  border-top: 1px solid #eee;
}

.swipe-indicator {
  text-align: right;
  font-size: 0.85rem;
  color: #888;
  margin-top: 10px;
  font-style: italic;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .css-slider .slider-item {
    flex: 0 0 85%;
  }
  .last-edition-showcase {
    padding: 20px;
  }
}

/* =========================================
   PÁGINA DE MANUALES (DESCARGAS)
   ========================================= */

.manuals-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

.category-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  padding-left: 10px;
  border-left: 5px solid var(--accent-color);
}

.manuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.manual-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.manual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  border-color: #d1d1d1;
}

.manual-thumbnail {
  flex-shrink: 0;
  width: 70px;
  margin-right: 20px;
}

.manual-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
  border: 1px solid #e0e0e0;
}

.manual-info {
  flex-grow: 1;
}

.manual-info h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.manual-info p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Metadatos del archivo (PDF • Peso • Páginas) */
.file-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: #888;
  background-color: #f0f0f0;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
}

/* Botón de Descarga Específico */
.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #27ae60; 
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-download:hover {
  background-color: #219653;
  color: white;
}

/* Responsive para Manuales */
@media (max-width: 768px) {
  .manuals-grid {
    grid-template-columns: 1fr;
  }
  
  .manual-card {
    flex-direction: column;
    text-align: center;
  }
  
  .manual-thumbnail {
    width: 100px;
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .btn-download {
    margin-top: 20px;
    width: 100%;
    justify-content: center; 
  }
}

/* =========================================
   PÁGINA DE BLOG / NOVEDADES
   ========================================= */

.blog-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.featured-post {
  display: flex;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.featured-image {
  flex: 1;
  min-height: 300px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.post-category {
  background-color: var(--accent-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.featured-content h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.featured-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

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

@media (max-width: 900px) {
  .featured-post {
    flex-direction: column;
  }
  
  .featured-image {
    min-height: 250px;
  }
  
  .featured-content {
    padding: 30px 20px;
  }
  
  .featured-content h2 {
    font-size: 1.8rem;
  }
}

/* =========================================
   GRILLA DE ARTÍCULOS SECUNDARIOS (BLOG)
   ========================================= */

.recent-posts-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 60px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  display: inline-block;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-card-image {
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 25px;
  flex-grow: 1; 
}

.blog-card-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card-content p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

/* =========================================
   PÁGINA DE CONTACTO
   ========================================= */

.contact-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

.contact-wrapper {
  display: flex;
  gap: 50px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #444;
}

.info-list svg {
  color: var(--accent-color);
}

/* Contenedor del Formulario */
.contact-form-container {
  flex: 1;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(255, 152, 0, 0.2);
}

.btn-submit {
  background-color: var(--accent-color);
  color: white;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

.btn-submit:hover {
  background-color: #e68a00;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column; 
    padding: 20px;
  }
}
/* =========================================
   PÁGINA DE RESTAURACIÓN
   ========================================= */

.restoration-intro {
  padding: 60px 0 20px 0;
}

.text-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.restoration-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.restoration-intro p {
  font-size: 1.1rem;
  color: #555;
}

/* Grilla de Fases */
.restoration-stages {
  padding: 40px 0 60px 0;
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stage-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  border-top: 4px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.stage-card:hover {
  transform: translateY(-5px);
}

.stage-number {
  position: absolute;
  top: -15px;
  right: -10px;
  font-size: 6rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.03);
  z-index: 0;
  pointer-events: none;
}

.stage-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.stage-card p {
  font-size: 0.95rem;
  color: #666;
  position: relative;
  z-index: 1;
}

.rust-map-section {
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
}

.rust-content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
}

.rust-text {
  flex: 1;
}

.rust-text h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.rust-text p {
  color: #ccc;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #eee;
  line-height: 1.5;
}

.check-list svg {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 3px;
}

.check-list strong {
  color: white;
  display: block;
  margin-bottom: 3px;
}

.rust-image {
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .rust-content-wrapper {
    flex-direction: column;
  }
}
/* =========================================
   SECCIÓN DE PLAYLIST DE YOUTUBE
   ========================================= */

.restoration-playlist-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.playlist-header {
  margin-bottom: 40px;
}

.playlist-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.playlist-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   BOTÓN "SEGUIR LEYENDO" (TARJETAS DE BLOG)
   ========================================= */

.blog-card-content {
  display: flex;
  flex-direction: column;
  padding: 25px;
  flex-grow: 1;
}

.btn-read-more {
  margin-top: auto; 
  display: inline-block;
  color: var(--accent-color);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 15px;
  transition: color 0.3s ease;
}

.btn-read-more span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.btn-read-more:hover {
  color: var(--primary-color);
}

.btn-read-more:hover span {
  transform: translateX(5px);
}

/* =========================================
   PÁGINA DE ARTÍCULO INDIVIDUAL
   ========================================= */

.post-page {
  padding: 40px 0 80px 0;
  background-color: #fcfcfc;
}

.post-container {
  max-width: 800px;
  margin: 0 auto;
}

.btn-back {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent-color);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.btn-back:hover {
  color: var(--primary-color);
  transform: translateX(-5px);
}

/* Encabezado */
.post-header {
  margin-bottom: 30px;
  text-align: center;
}

.post-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin: 15px 0;
  line-height: 1.1;
}

.post-meta {
  color: #888;
  font-size: 0.95rem;
}

/* Imagen Principal */
.post-hero-image {
  margin-bottom: 40px;
}

.post-hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.post-hero-image figcaption {
  text-align: center;
  color: #777;
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 10px;
}

/* Cuerpo del Artículo */
.post-body p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
}

.post-body .lead-paragraph {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.post-body h2 {
  font-size: 2rem;
  margin: 50px 0 20px 0;
  color: var(--primary-color);
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
/* =========================================
   GALERÍA TÉCNICA (MANUALES)
   ========================================= */

.tech-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.tech-figure {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.tech-figure img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background-color: #fafafa;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.tech-figure img:hover {
  transform: scale(1.02);
}

.tech-figure figcaption {
  margin-top: auto;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  text-align: center;
  border-top: 1px dashed #ccc;
  padding-top: 15px;
}

.tech-figure figcaption strong {
  color: var(--primary-color);
  font-family: 'Oswald', sans-serif;
}

/* =========================================
   LIGHTBOX (PANTALLA COMPLETA)
   ========================================= */

#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

#lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
  cursor: zoom-in;
  transition: transform 0.3s ease-in-out;
}

#lightbox img.zoomed {
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: var(--accent-color);
}