    :root {
            --primary: #3498db;
            --secondary: #2ecc71;
            --accent: #e74c3c;
            --dark: #2c3e50;
            --light: #ecf0f1;
            --switch-color: #9b59b6;
        }

    body {
      font-family: 'Segoe UI', sans-serif;
      background: #f4f8fb;
      color: #2c3e50;
      max-width: 1024px;
      margin: auto;
    }
            h1  {
  font-size: 1.4em;
  margin: 0;
  color: #fff;
  background-color: #686868;
  padding: 2px 4%;
}
        
        h1:after {
            content: "";
            display: block;
            height: 2px;
            background: linear-gradient(90deg, #fd0a0a, #11f973);
            border-radius: 2px;
        }
        
        h2 {
  font-size: 1.2em;
  color: #1670fd;
  /*! text-align: center; */
}
h3 {
  margin: 0;
  color: green;
  text-transform: uppercase;
  font-size: 1.1em;
  text-align: center;
  background-color: #f4f8fb;
}
    section {
  background: white;
  padding: 10px;
  margin-bottom: 1em;
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgba(255, 0, 0, 0.5);
  line-height: 1.5em;
  border-left: 3px solid #ff5050;
}
    code, pre {
  background: #252626;
  padding: 2px 9px;
  border-radius: 4px;
  color: white;
  font-size: 1.2em;
  margin: 0 5px;
}
    .toggle-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  float: right;
  margin: 1em 2%;
  font-weight: bold;
}
}
    .toggle-btn:hover {
      background: #2471a3;
    }
    
    
    svg {
      max-width: 100%;
    }
    
  ul {
  padding: 1em 3em;
  background-color: wheat;
  margin: 2em;
  border: 1px inset wheat;
  border-radius: 4px;
 }
 ul li,ol li {
  margin-bottom: 4px;
}
    
form {
  background-color: #d2fddf;
  margin: 10px;
  padding: 1em;
  border: 1px inset #a4ffa4;
  border-radius: 4px;
}
    .resolucion  {
  display: none;
  /*! margin: 3em; */
  padding: 10px;
  background: #d7ffdd;
  border-left: 4px solid #2980b9;
  border-radius: 1em;
}
    
 .clean {clear:both;}   
        /* ejercicio1.html: Estilos para el diagrama de red */
        .network-diagram {
            background-color: #f8fafc;
            border-radius: 15px;
            border: 1px solid #e2e8f0;
        }
        
        .topology-container {
            position: relative;
            min-height: 500px;
            margin: 10px 0;
        }
        
        .switch {
            width: 120px;
            height: 120px;
            background-color: var(--switch-color);
            border-radius: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-weight: bold;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            border: 3px solid white;
        }
        
        .switch:before {
            content: "Switch L2";
            position: absolute;
            bottom: -25px;
            font-size: 0.8em;
            color: var(--dark);
        }
        
        .device {
            width: 140px;
            text-align: center;
            position: absolute;
            z-index: 5;
        }
        
        .device-icon {
            width: 90px;
            height: 90px;
            background-color: var(--light);
            border-radius: 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 10px;
            color: var(--dark);
            font-size: 36px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border: 3px solid white;
            transition: transform 0.3s;
        }
        
        .device:hover .device-icon {
            transform: scale(1.1);
        }
        
        .pc .device-icon {
            background-color: #d6eaf8;
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .server .device-icon {
            background-color: #d5f5e3;
            color: var(--secondary);
            border-color: var(--secondary);
        }
        
        .device-label {
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .device-ip {
            font-size: 0.85em;
            color: #7f8c8d;
            background-color: #f8f9fa;
            padding: 3px 8px;
            border-radius: 12px;
            display: inline-block;
        }
        
        /* Posicionamiento de dispositivos */
        .pc1 {
            top: 20%;
            left: 20%;
        }
        
        .pc2 {
            top: 20%;
            right: 20%;
        }
        
        .pc3 {
            bottom: 20%;
            left: 20%;
        }
        
        .server {
            bottom: 20%;
            right: 20%;
        }
        
        /* Líneas de conexión */
        .connection {
            position: absolute;
            background-color: #bdc3c7;
            z-index: 1;
        }
        
        .horizontal {
            height: 2px;
            width: calc(50% - 60px);
        }
        
        .vertical {
            width: 2px;
            height: calc(50% - 60px);
        }
        
        .diagonal {
            width: 2px;
            transform-origin: top left;
        }
        
        /* Líneas específicas */
        .line1 {
            top: 55%;
            left: 20%;
            width: calc(30% - 60px);
            transform: rotate(45deg);
        }
        
        .line2 {
            top: 55%;
            right: 20%;
            width: calc(30% - 60px);
            transform: rotate(-45deg);
        }
        
        .line3 {
            top: 20%;
            left: 50%;
            height: calc(60% - 60px);
        }
        
        /* Indicadores de conexión */
        .connection-status {
            position: absolute;
            width: 12px;
            height: 12px;
            background-color: var(--secondary);
            border-radius: 50%;
            border: 2px solid white;
            z-index: 20;
        }
        
        .status1 { top: 45%; left: 40%; }
        .status2 { top: 45%; right: 40%; }
        .status3 { top: 70%; left: 40%; }
        .status4 { top: 70%; right: 40%; }
        
        /* Estilos para la tabla de configuración */
        .config-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .config-table th, .config-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .config-table th {
            background-color: var(--primary);
            color: white;
        }
        
        .config-table tr:nth-child(even) {
            background-color: #f8fafc;
        }
        
        .config-table tr:hover {
            background-color: #f1f5f9;
        }
        
        .badge {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8em;
            font-weight: bold;
        }
        
        .badge-success {
            background-color: var(--secondary);
            color: white;
        }
        
         /* Estilos para la documentación */
        .documentation {
            background-color: #f8fafc;
            border-radius: 10px;
            padding: 25px;
            margin-top: 30px;
            border-left: 4px solid var(--primary);
        }
        
        .requirements-list {
            list-style-type: none;
            padding: 0;
        }
        
        .requirement-item {
            padding: 12px 15px;
            /*! margin-bottom: 10px; */
            background-color: white;
            border-left: 4px solid var(--primary);
            border-radius: 4px;
            display: flex;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        
        .requirement-item:before {
            content: "✓";
            color: var(--secondary);
            font-weight: bold;
            margin-right: 10px;
        }
        
        @media (max-width: 768px) {
            .topology-container {
                min-height: 400px;
            }
            
            .device {
                width: 100px;
            }
            
            .device-icon {
                width: 70px;
                height: 70px;
                font-size: 28px;
            }
        }       
        
 /* Detalles técnicos */
        .tech-details {
            background: linear-gradient(135deg, #f8f9fa, #ecf0f1);
            border-radius: 15px;
            padding: 30px;
            margin-top: 50px;
            border-left: 5px solid var(--primary);
        }
        
        .detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }
        
        .detail-card {
            background-color: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            border-top: 4px solid var(--primary);
        }
        
        .detail-card h4 {
            color: var(--dark);
            margin-top: 0;
            border-bottom: 2px solid #eee;
            padding-bottom: 10px;
        }                          
        .volver {
            text-decoration: none;
            margin: 1em 0;
            font-size: 1.4em;
            color: white;
            border: 1px groove #3498db;
            padding: 2px 2em;
            background-color: #ff5353;
            float: right;
        }
