/* =========================================
   ESTILOS GENERALES Y RESET
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
  background: #000;
  color: white;
  overflow-x: hidden;
  line-height: 1.6;
}

/* =========================================
   ESTILOS DE INDEX.HTML (ORIGINALES)
   ========================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  background: radial-gradient(circle at top, #1a233a 0%, #000000 70%);
}

.hero-text {
  max-width: 40%;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.ship-container {
  width: 45%;
  perspective: 1000px;
}

.ship {
  width: 100%;
  animation: float 6s ease-in-out infinite;
  transition: transform 0.1s linear;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.sections {
  padding: 80px 10%;
}

.section {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.section:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

.section-header {
  padding: 20px;
  font-size: 1.3rem;
  font-weight: bold;
}

.section-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.5s ease, padding 0.5s ease;
  opacity: 0.9;
}

.section.open .section-content {
  max-height: 300px;
  padding: 20px;
}

/* --- Botón "Tecnologías Empleadas" en Index --- */
.tech-link-wrapper {
  display: flex;
  justify-content: center;
  padding: 50px 0 20px 0; /* Un poco más de espacio arriba */
  position: relative;
}

/* Línea decorativa sutil detrás del botón */
.tech-link-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 200, 255, 0.3), transparent);
  z-index: 0;
}

.btn-tech {
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: #00d2ff; /* Color azul cian brillante */
  font-size: 1.1rem;
  border: 2px solid #00d2ff;
  padding: 15px 40px;
  border-radius: 4px; /* Bordes más rectos, más técnico */
  background: rgba(0,0,0,0.8);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.btn-tech:hover {
  background: #00d2ff;
  color: #000;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
  transform: scale(1.05);
}

.tech-icon {
  font-size: 1.4rem;
  animation: spin-slow 20s linear infinite;
  display: inline-block;
}

@keyframes spin-slow { 100% { transform: rotate(360deg); } }

/* --- Footer y Botones Admin --- */
.admin-controls {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 100px 20px;
  background: transparent;
}

.btn-access {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border-width: 3px;
  border-style: solid;
  background-color: #000;
  transition: all 0.2s ease-in-out;
  min-width: 300px;
  letter-spacing: 2px;
  position: relative;
  z-index: 10;
}

.wordpress-btn {
  color: #00FFFF;
  border-color: #00FFFF;
  box-shadow: 
    0 0 10px #00FFFF, 
    0 0 20px #00FFFF, 
    inset 0 0 10px rgba(0, 255, 255, 0.5);
  text-shadow: 0 0 10px #00FFFF;
}

.wordpress-btn:hover {
  background-color: #00FFFF;
  color: #000;
  box-shadow: 
    0 0 20px #00FFFF, 
    0 0 50px #00FFFF;
  transform: scale(1.05);
  cursor: pointer;
}

.roundcube-btn {
  color: #FF3333;
  border-color: #FF3333;
  box-shadow: 
    0 0 10px #FF3333, 
    0 0 20px #FF3333,
    inset 0 0 10px rgba(255, 51, 51, 0.5);
  text-shadow: 0 0 10px #FF3333;
}

.roundcube-btn:hover {
  background-color: #FF3333;
  color: #000;
  box-shadow: 
    0 0 20px #FF3333, 
    0 0 50px #FF3333;
  transform: scale(1.05);
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* =========================================
   ESTILOS DE TECNOLOGIAS.HTML (NUEVOS)
   ========================================= */

/* Fondo diferente para la página de tecnologías */
.tech-body {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.tech-container {
  max-width: 900px;
  width: 100%;
}

.tech-header {
  text-align: center;
  margin-bottom: 50px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
}

.tech-header h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
  /* Efecto de texto metálico/espacial */
  background: linear-gradient(to right, #ffffff, #a0cfff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(160, 207, 255, 0.3);
}

.tech-header p {
  color: #8899aa;
  font-size: 1rem;
  letter-spacing: 1.5px;
}

/* --- Estilos del Acordeón (Desplegables) --- */
.accordion-container {
  margin-bottom: 50px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(100, 200, 255, 0.15);
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Efecto al pasar el ratón por encima del bloque cerrado */
.accordion-item:hover {
  border-color: rgba(100, 200, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(100, 200, 255, 0.05);
}

.accordion-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #e0e0e0;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: rgba(100, 200, 255, 0.05);
  color: #fff;
}

.toggle-icon {
  font-size: 1.5rem;
  color: #00d2ff;
  transition: transform 0.3s ease;
}

/* Estilos cuando el desplegable está activo/abierto */
.accordion-item.active {
  border-color: #00d2ff;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
  background: rgba(0, 210, 255, 0.03);
}

.accordion-item.active .accordion-header {
  background: rgba(0, 210, 255, 0.1);
  color: #00d2ff;
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
}

/* Rotar el icono + para que sea una X */
.accordion-item.active .toggle-icon {
  transform: rotate(45deg);
}

.accordion-content {
  /* Altura máxima inicial 0 para ocultarlo */
  max-height: 0;
  padding: 0 25px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transición suave */
  color: #b0b0c0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Cuando está activo, damos suficiente altura máxima */
.accordion-item.active .accordion-content {
  max-height: 300px; /* Ajusta esto si tus textos son muy largos, pero con 6 líneas debería sobrar */
  padding: 20px 25px;
}

/* --- Botón de volver --- */
.tech-footer {
  text-align: center;
  margin-top: 20px;
}

.btn-back {
  color: #8899aa;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 10px 25px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-back:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}


/* =========================================
   MEDIA QUERIES (Adaptabilidad Móvil)
   ========================================= */
@media (max-width: 768px) {
  /* Index */
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-text { max-width: 100%; margin-bottom: 50px; }
  .ship-container { width: 80%; }
  .admin-controls { flex-direction: column; align-items: center; gap: 30px; }
  .btn-access { width: 100%; max-width: 350px; }
  
  /* Tecnologías */
  .tech-header h1 { font-size: 1.8rem; }
  .accordion-header { padding: 15px; font-size: 1rem; }
  .accordion-content p { font-size: 0.9rem; }
}