/* ==========================================
   ESTILOS GLOBALES PARA EL CUADERNILLO
   ========================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Contenedor principal */
.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Títulos */
h1 {
    color: #2d3436;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

h2 {
    color: #636e72;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-top: 30px;
}

h3 {
    color: #2d3436;
    margin-top: 25px;
}

/* Párrafos */
p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #2d3436;
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 15px 0;
}

/* Botones base */
button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Botón de peligro */
button.btn-danger, .btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

button.btn-danger:hover, .btn-danger:hover {
    background: linear-gradient(135deg, #d62c1a 0%, #a93226 100%);
}

/* Botón de éxito */
button.btn-success, .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
}

button.btn-success:hover, .btn-success:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

/* Inputs */
input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="url"],
input[type="number"],
textarea {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin: 5px 0;
}

input:focus,
textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

/* Listas */
ul {
    margin-top: 15px;
    padding-left: 25px;
}

li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Mensajes de estado */
.mensaje-exito {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 15px 0;
}

.mensaje-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
}

.mensaje-info {
    background: #cce8f4;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #b6d7e2;
    margin: 15px 0;
}

/* Cards/Tarjetas */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Contenedores flexibles */
.flex-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Espaciado */
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Texto centrado */
.text-center {
    text-align: center;
}

/* Enlaces de navegación */
.nav-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 5px;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
    color: #764ba2;
}

/* Código inline */
code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Bloques de código */
pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid #667eea;
}

pre code {
    background: none;
    color: #2d3436;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .main {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .flex-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

#dropzone {
  border: 2px dashed #ccc;
  padding: 10px;
  text-align: center;
  margin-top: 10px; 
}

#draggable  {
  width: 100px;
  height: 100px;
  background-color: #ffcc00;
  color: #ffffff;
  padding: 10px;
  cursor: move;
}