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

body {
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Header igual al de productos */
.header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.logo img {
    height: 100px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.back-home {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
    padding: 8px 16px;
    background: #f8f8f8;
    border-radius: 25px;
}

.back-home:hover {
    color: #dc3545;
    background: #fff5f0;
}

/* Contenedor principal */
.container {
    max-width: 500px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 25px;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    font-size: 15px;
    color: #666;
}

.tab.active {
    background: #dc3545;
    color: white;
}

/* Formulario */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.form {
    display: none;
}

.form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 13px;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8f8f8;
}

input:focus, select:focus {
    outline: none;
    border-color: #dc3545;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert i {
    font-size: 16px;
}

/* Grid para dos columnas */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.help-text {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

.help-text a {
    color: #dc3545;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Footer igual al de productos */
.footer {
    background: #1a1a1a;
    margin-top: 60px;
    width: 100%;
}

.footer-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 30px 20px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: #dc3545;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #dc3545;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #dc3545;
    transform: translateY(-3px);
}

.footer-logo img {
    height: 150px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-section p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #888;
    font-size: 12px;
}

.footer-bottom a {
    color: #dc3545;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 8px 12px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .back-home span {
        display: none;
    }
    
    .back-home {
        padding: 8px 12px;
    }
    
    .container {
        margin: 100px auto 40px;
        padding: 0 15px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content {
        padding: 25px 16px 20px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .footer-logo img {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 20px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .tab {
        padding: 12px;
        font-size: 14px;
    }
}
